You can't directly determine the color using iCustom().
You can only retrieve the values of any of the 8 possible indicator indexes.
You may or may not be able to infer the color from that data.
double iCustom( string symbol, int timeframe, string name, ..., int mode, int shift)Indicator is probably using buffer0 for one color buffer1 for the other. Print out the two modes (0/1) to see which color is which and what value means empty
Thank you for helping me, i will try it now.
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
Hello,
I am trying to create this EA but not very successful. Can please someone help me?
I would like to use this custome indicatior in my EA. This indicator is HMA, which changes its color.
(Blue for Long entry and Red for short entry)
I would like to use 2 lines of HMA with different periods to create entries for trades.
When they are both Blue, enter for long trades. When they are both Red, enter for short trades.
Thank you very much!!