The following is a snip of MT4 code generated. Notice LongEntry uses 5, but short entry uses variable QQEValue1sF. Same in Pseudo code.
if (sqIsBarOpen()) {
// init signals only on bar open
LongEntrySignal = ((sqQQE(NULL,0, QQEValue1RSIPeriod, 5, 4.236, 0, 2)<sqQQE(NULL,0, QQEValue1RSIPeriod, 5, 4.236, 1, 2))
&& (sqGetValue("NULL",0, PRICE_CLOSE, 1) < sqBands(NULL,0, BBBarClosesPeriod, 1.9, 0, PRICE_CLOSE, 1, 1)));
ShortEntrySignal = ((sqQQE(NULL,0, QQEValue1RSIPeriod, QQEValue1sF, 4.236, 0, 2)>sqQQE(NULL,0, QQEValue1RSIPeriod, QQEValue1sF, 4.236, 1, 2))
&& (sqGetValue("NULL",0, PRICE_CLOSE, 1) > sqBands(NULL,0, BBBarClosesPeriod, 1.9, 0, PRICE_CLOSE, 0, 1)));
LongExitSignal = false;
ShortExitSignal = false;
}
Best regards,
Tomas