- Need simple help to fix my EA, how to prevent re-entry on same bar?
- What's wrong with this simple code?
- What's wrong with my simple code?
extern int ExtDepth=12; extern int ExtDeviation=5; extern int ExtBackstep=3; for (int i=0; i < 100; i++) { double ZZ = iCustom(NULL, 0, "ZigZag", ExtDepth, ExtDeviation, ExtBackstep, 0, i); Print("ZZ: ", i, " ", ZZ); }
RickD:
extern int ExtDepth=12; extern int ExtDeviation=5; extern int ExtBackstep=3; for (int i=0; i < 100; i++) { double ZZ = iCustom(NULL, 0, "ZigZag", ExtDepth, ExtDeviation, ExtBackstep, 0, i); Print("ZZ: ", i, " ", ZZ); }
RickD,
I thank you sincerely. But what you posted does not help me. Am I not as/more smart as/than you expected? Don't know, could you please clarify your view? I tried your code but.. nothing clearer.
Thank you nonetheless,
SA
for ( int i = Bars ; i >=0; i -- )
DxdCn:
for ( int i = Bars ; i >=0; i -- )
for ( int i = Bars ; i >=0; i -- )
OK. THANK YOU ALL. Thanks Rick and Thanks DxdCn. Now the matter is getting clearer and clearer. I guess it was a trick due to the direction of counter increments.
SA

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