{
Bar0
if (Position.MarketPosition == MarketPosition.Long)
{
if (Close[0] < Position.AvgPrice + 50 * TickSize)
{
SetStopLoss(CalculationMode.Ticks, Position.AvgPrice);
EnterShort();
}
}
BAr1
if (Position.MarketPosition == MarketPosition.Short)
{
if (Close[0] > Position.AvgPrice + 50 * TickSize)
{
SetStopLoss(CalculationMode.Ticks, Position.AvgPrice);
EnterLong();
}
}
//conditions
if (CrossAbove(EMA(Close,Fast), EMA(Close,Slow), 1)
&& RSI(Period, Period)[0] > 50)
{
EnterShort(DefaultQuantity, "");
}
if (CrossBelow(EMA(Close,Fast), EMA(Close,Slow), 1)
&& RSI(Period, Smooth)[0] < 50)
{
EnterLong(DefaultQuantity, "");
}
}
end conditions
Anyone could help me to add multy time on this
if BAR 0 Starts functioning STOP SELLS in condtions only
if Bar 1 Starts functioning STOP BUYS in conditions only
When I do both at a same time keeps trading
Thanks
Comment