Topic: Coding Errors and How to fix
I Started This Topic to discuses the error raised when compiling indicators , people like me with no coding experience may face some difficulties to fix these errors even they appear to be simple things.
1st:
ERROR: Indicator compilation failed in file [Donchian One Band.cs]
Line 179 Column 38: A local variable named 'iBar' cannot be declared in this scope because it would give a different meaning to 'iBar', which is already used in a 'parent or current' scope to denote something else.
THE IDEA OF Indicator: to draw only one band ( if trend is up so draw lower band && if Down draw higher band but the previous err raised ,BUT when i looked into the original DC i find that the iBar already used twice without any problem
NB: i used the logic of two indicators ( DC original & Gann HiLo activator )
Donchian One Band attached
Thanks for help in advance