WHRoeder:
Post the real code because that won't compile
- Why are your buffer values dependent on future values?
- Do your lookbacks correctly.
Sorry its an verry big function my_func. That dosent matter here it returns valid numbers
on 1. Fixed that. compile error.
on 2. > because i am an Idiot ;)
on 4. Thats not what i want to do. I just want to draw these two lines in the fly while ea is working without having this inside an seperate indicator.
i simply want to draw two lines by the values my_func is giving me.
Thanks for Your help Sir!
Post the real code because that won't compile double my_func(int ind_0 ,double zz_val, double value_2) { result=Close[i-1] + zz_val No such variable "i" return(result) ; 'return' semicolon expected }
- Why are your buffer values dependent on future values?
- Do your lookbacks correctly.
- I tried so simply adopt this buffer arrays into my ea, which leads into "Array out of range".Is there an Easy way to get this done?Don't do that. Just get the value of the indicator. Detailed explanation of iCustom - MQL4 forum
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
Dear Community.
At first let me thank you for all those helping hands posts of other topics which made me learn a lot here.
Iam using following "simple" indicator in MT4
I want the "drawings" made inside my ea. So if i change values it recalculates the history_data
So both, optic and ea behavior are matching. I tried so simply adopt this buffer arrays into my ea, which leads into "Array out of range".
Is there an Easy way to get this done? It should take action on new bar creation. Inside existing EA there is allready an logic wich does only once per bar:
last_bars = Bars; and if (last_bars != Bars){....}
Thanks!
derdigge