AryaN
// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/
// © sandipkindo

//@version=5
strategy("My strategyP", overlay=true, margin_long=100, margin_short=100)

longCondition = ta.crossover(ta.ema(close, 5), ta.ema(close, 10))
if (longCondition)
    strategy.entry("Buy", strategy.long)

shortCondition = ta.crossunder(ta.ema(close, 6), ta.ema(close, 11))
if (shortCondition)
    strategy.entry("Sell" , strategy.short)
