
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
if you want to give custom values for EMA (for any MA for that matter) use iMAOnArray()
https://docs.mql4.com/indicators/imaonarrayWhy does that code not work?
If anyone knows why this code does not work please let me know.. .
Bah just stumbled upon https://book.mql4.com/samples/icustom it looks like buffers are the issue, didn't really get that before posting.
Missed that page. Thanks for helping me out hopefully ill sort this out soon
Why does that code not work?
Set the array as series.
still way off
still way off
did you try it on 1 min chart?, because you have set the normal iMA() to 1 min.. and the value of Close[] gives the close prices of the current time frame
did you try it on 1 min chart?, because you have set the normal iMA() to 1 min.. and the value of Close[] gives the close prices of the current time frame
1m frame , yes ..
what are the values you get?
what are the values you get?
heres a screen
imaonarray is name of indicator on my computer.. .same exact code as above. .
Why oh why does this previous code not just work, its got the buffered array and everything. Looks like I need to assign a value for every bar counted or something like that. .
Following MQL source doesn't set as series at all and works however I need to change the first value to a custom one so I can see in the future:
So Im just running these 2 side by side trying to replicate the exact value of the normal one (second one posted), still no luck. Looks like its the bars counted thingheres a screen
imaonarray is name of indicator on my computer.. .same exact code as above. .
instead of copying the each Close value, try using this
Or just use