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!

Pseudo Code does not match with MQL5 code.

1 replies

MuSa

Subscriber, bbp_participant, sq-ultimate, 21 replies.

Visit profile

4 years ago #279276

Pseudo Code:

LongEntrySignal = (((LaguerreRSI(Main chart,0.1)[1] is falling)
                            and (LowMonthly(Main chart)[2] is rising for 3 bars));
MT5 Code:
LongEntrySignal = ((sqIsFalling(LAGUERRERSI_1, 2, false, 1)
&& (sqIsRising(“sqMonthly(NULL,0,\”Low\”, 2)”, 3, false, 0 + 1, 0)));
=====================
“LaguerreRSI(Main chart,0.1)[1] is falling” is match with “sqIsFalling(LAGUERRERSI_1, 2, false, 1)”, both of them meaning Indicator[1]<Indicator[2].
But:
“LowMonthly(Main chart)[2] is rising for 3 bars” is not match with “sqIsRising(“sqMonthly(NULL,0,\”Low\”, 2)”, 3, false, 0 + 1, 0)”.
“LowMonthly(Main chart)[2] is rising for 3 bars” : I think it means LowMonth[2]>LowMonth[3]>LowMonth[4].
“sqIsRising(“sqMonthly(NULL,0,\”Low\”, 2)”, 3, false, 0 + 1, 0)” : I test it in MT5, it means LowMonth[3]>LowMonth[4]>LowMonth[5]. Because shift = 0+1.
Maybe Pseudo Code should change to “LowMonthly(Main chart)[2] is rising for 3 bars at 1bar ago.”
Is that my understanding is wrong?

0

Tomas Matejka

Administrator, sq-ultimate, 2 replies.

Visit profile

4 years ago #279314

Hello MuSa,

I have asked developers to add the shift information into the pseudo code. This should be completed into the next SQ update

0

Viewing 1 replies (of 1 total)