I am trying to build a code for a reverse that occurs only if the algorithm enter one bar after the trigger and, in the same bar, it hits the stop. I can set up the reverse but I and not sure how to identify which way the reverse is once the market fills the stop orders.
if (barNumberOfLongEntries != 0)
if ( barNumberOfLongEntries == 1 && BarsSinceExitExecution() == 0)
WOuld you help me please?
Comment