
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
Jay,
iCustom is your best bet for getting data from an indicator into an EA
https://docs.mql4.com/indicators/iCustom
Just need to put the correct number in mode for the respective buffer. You would call icusotm three times each with a different number in for mode (0/1/2) to get the value of the three buffers.
Hope that helps
V
Hey V,
I read it thrice, i understand how to use and get the indicator values using the double variables and index numbers of the indicator, but how to write in the ea that buy when it is green and sell when it red?
Thanks,
J.
What is being returned to icustom? presumably it's variables that the indicator is then displaying as green for rising and red falling?
If so, get the data for the current bar, then again for the prev bar with shift and then compare the two answers to get direction.
Any help?
V
What is being returned to icustom? presumably it's variables that the indicator is then displaying as green for rising and red falling?
If so, get the data for the current bar, then again for the prev bar with shift and then compare the two answers to get direction.
Any help?
V
with Shift u get i+1 bars? or i-1 bars?
J.