I am trying to backtest a strategy that consists in the following:
e-mini SeP daily bars chart whith 3 indicators: EMA(4), EMA(8) and SMA(18)
The conditions for a long possition are: If close Price>EMA(4)>EMA(8)>SMA(18), for 3 consecutive candles. Execute a long position in the 4th candle opening Price.
The stop is equal to the profit and its triggered when the Price crosses the SMA(18) line.
The conditions for the short position are the exact oposite.
I have already made a strategy that plots a Green triangle up or a red triangle down, when the conditions are filled, but i dont know how to count the triangles and execute the order in the fourth triangle.
If anyone can assist me, i will be glad
Best regards
Joăo from Portugal

Comment