Pseudocódigo:
LongEntrySignal = (((LaguerreRSI(Gráfico principal,0,1)[1] está caindo)
e (LowMonthly(Main chart)[2] está subindo por 3 barras));
Código MT5:
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" é compatível com "sqIsFalling(LAGUERRERSI_1, 2, false, 1)", ambos significando Indicator[1]<Indicator[2].
Mas:
"LowMonthly(Main chart)[2] is rising for 3 bars" é não coincidir com "sqIsRising("sqMonthly(NULL,0,\"Low\", 2)", 3, false, 0 + 1, 0)".
"LowMonthly(Main chart)[2] is rising for 3 bars": acho que isso significa LowMonth[2]>LowMonth[3]>LowMonth[4].
"sqIsRising("sqMonthly(NULL,0,\"Low\", 2)", 3, false, 0 + 1, 0)" : Eu testei no MT5, isso significa LowMonth[3]>LowMonth[4]>LowMonth[5]. Porque shift = 0+1.
Talvez o pseudocódigo deva ser alterado para "LowMonthly(Main chart)[2] está subindo para 3 barras em 1 barra atrás".
Será que meu entendimento está errado?