Here the pseudo code generated by StrategyQuant X Pro build 135.868:
//——————————————————————–
// Trading rule: Trading signals (On Bar Open)
//——————————————————————–
LongEntrySignal = (Ask < Low(Main chart)[1]);
ShortEntrySignal = (Bid > High(Main chart)[1]);
LongExitSignal = (((Ask is rising for 2 bars)
and (Low(Main chart)[1] is falling for 4 bars))
and (Aroon(Main chart,AroonPeriod).Down[1] is falling for 4 bars));
ShortExitSignal = (((Bid is falling for 2 bars)
and (High(Main chart)[1] is rising for 4 bars))
and (Aroon(Main chart,AroonPeriod).Down[1] is rising for 4 bars));
—————————————————————————————
What’s the meaning of “ask is rising for 2 bars”?
In a bar there have been many levels of asks from low to high, haven’t they? Which ask does it refer to? Perhaps the last one (close)?
Thanks for your answer!