READ-ONLY

The forum is now a read-only archive.

For bug reports & platform questions → [email protected]

Our community lives on Discord and YouTube — come join us!

What’s the meaning of “ask is rising for 2 bars”?

2 replies

rsantinikk

Subscriber, bbp_participant, customer, community, 9 replies.

Visit profile

4 years ago #277190

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!

0

Tomas Matejka

Administrator, sq-ultimate, 2 replies.

Visit profile

4 years ago #277192

Hello,

the rules is simple. It is the Ask price evaluated once per bar (on bar open) for last 2 bars (consecutive)

0

rsantinikk

Subscriber, bbp_participant, customer, community, 9 replies.

Visit profile

4 years ago #277200

ok, thank you!

0

Viewing 2 replies - 1 through 2 (of 2 total)