enum eStatusChart {LIVE, VISUAL, OPTIMIZER}; eStatusChart status_chart; // Export to CAProgress/Later. int Oninit(){ if ( !IsTesting() ) status_chart = LIVE; else if( IsVisualMode() ) status_chart = VISUAL; else{ status_chart = OPTIMIZER;
hmm - what if I run a test in non-VisualMode, your status_chart would assume OptimizeMode which is not the case.
I wanted to know if I have to write:
...
if ( IsTesting() || IsOptimization() ) { ..
or would it be enough to write:
... if ( IsTesting() ) { ..
as IsTesting() covers (?) visual and non-visualt tests and the optimization.
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Hi,
does anybody know how IsTesting() and IsOptimization() are connected:
1) Not connected: if IsOptimization()==true => IsTesting() == false ?
2) Connected: if IsOptimization()==true => IsTesting() == true (too) ?
Which one is correct?
Thanks Gooly