Bug: Lowest & Highest Indicator functions don’t work
3 replies
jastejp
6 years ago #117794
Hi,
There is a bug with the Lowest & Highest Indicator functions in EA Wizard. The call for functions sqGetLowest & sqGetHighest do not exist lower down in the code and the code doesn’t compile. I get this error below:
‘sqGetHighest’ – function not defined #RSI_Diverg_LE_v1.mq4
I found the functions sqLowest & sqHighest lower down in the code and when I edit the code with these functions it compiles.
This the example Bearish divergence Pseudo Source Code from in the Home section of EA Wizard:
IF (((MACD_Main( 12 , 26 , 20 , Close )[1] > IndicatorHighest( DivergencePeriod , 0 )(MACD_Main( 12 , 26 , 20 , Close )[2]))
My Pseudo Source Code format (relevant section copied from my EA code for Bullish divergence)
And ((RSI( PERIOD_H1 , RSI_period , Close )[1] < IndicatorLowest( Diverg_period , 0 )(RSI( PERIOD_H1 , RSI_period , Close )[2]))
In MT4 source code format created from SQ Wizard
&& ((iRSI(NULL, 60 , RSI_period , 0 , 1) < sqGetLowest( 2010697299 , Diverg_period, 0, signalShift))
&& ((iRSI(NULL, 60 , RSI_period , 0 , 1) < sqLowest( 2010697299 , Diverg_period, 0, signalShift))
tomas262
6 years ago #144835
Hello,
I will check those functions for possible fix
Once we release StrategyQuant 4 we will be also able to release new EA Wizard. We plan MT5 support for these products
Steve Green
6 years ago #197609
Will we be automatically upgraded?
tomas262
6 years ago #197646
Hello,
the sample divergence strategy compiles without errors and function are present. You might need to re-apply patch attached. Hope that helps
Viewing 3 replies - 1 through 3 (of 3 total)