I am just starting to use my first GV code in MulitCharts, using MulitCharts' built-in functions - GVSetNamedDouble and GVGetNamedDouble. Codes are as follows:-
I plot the First one in a higher timeframe chart, 5-min chart; while put the Second on the 1-min chart. The Second one did update the numbers according with realtime data, but not on historical plots. IS IT RIGHT? OR Am I missing anything?{GV Set Volatility Value}
[LegacyColorValue = true];
Inputs:float Length( 14 );
Vars: int SetRtn1(0), float Vo(0);
Vo=Volatility( Length );
SetRtn1=GVSetNamedDouble("Vola",Vo );
Plot1( Vo, "Volatility" ) ;
{GV Get Volatility Value}
[LegacyColorValue = true];
inputs:
float ErrorCode( -1 ) ;
variables:
float RtnVal( 0 ) ;
RtnVal = GVGetNamedDouble("Vola", ErrorCode ) ;
if RtnVal <> ErrorCode then
Plot1( RtnVal, "Volatility" ) ;
If GV code using above functions can't really do historical plot, how could I backtest the code?
Another question: Is there any available GV tools that can be used to do the historical plot and with the ability to let us backtest? .... like ADE with EL Collection?
Could any GV expert comment?
Regards,
Sa