IF CrossAbove(MFI (Close,(8)),10,1) then go Long.
IF CrossBelow(Close,SMA (Close,(5),1) then Exit Long.
So if the MFI(8) crosses above 10 we enter. In the same bar, if the current price climbs and then falls below the SMA(5) we exit. But if we're still in the same bar, then after the exit it will go in and out many times since both conditions continue to be met based on CrossAbove/Below lasting throughout the whole bar. Is there a way to create a condition for crossing that will not last the entire bar?
Thanks!
Comment