Example condition running OnBarClose
// Cross over trigger
&& (SMA1[1] < SMA2[1])
&& (SMA1[0] > SMA2[0])
&& (StocktasticRSI[0] >= .50
the expected is if RSI on last bar closed was >= 0.50 and the CrossOver occurred on the last bar ENTER LONG MARKET ORDER
WHAT is happening is Cross over occurs but the RSI condition is < .50 and a random number of bars later the (SMA1[0] > SMA2[0]) is still true and the RSI crosses over .50, then it takes the trade but it has been multiple bars since the SMA Cross over
THIS IS NOT THE EXPECTED TRADE
Thanks
Comment