I need help to build a strategy based on price action. Time frame 5 minutes. I open a buy position at each open price of the 5 min candle. My target is 10 pips. If this condition is not met, I want to exit with a stop loss of 2 times the target price. If the candle does not meet this target also, i exit at the close price of the candle.
Can you help me in coding this logic?
Can you help me in coding this logic?