You generally have 2 possibilities:
a) you can implement indicator calculation into your code
b) you call this indicator from your EA externally with iCustom() command.
11011980:
i just came across this wonderful indicator on another website, it's perfect for closing trades without losing much pips,
to use it, A trade must be closed as soon as the value of the red histogram line is greater than the yellow line,but i need help on how to get the value of the yellow line and that of the red histogram.
What's wonderful about it. It's just Bollinger Bands using median price instead of close and put on a separate window.
The red buffer is 4, use iCustom(... 3,shift)
The Yellow is 3, use iCustom(...2,shift)
@fx1.net and WHRoeder
thanks for your suggestions,i really appreciate them.
after looking into the other codes on the site, i was able to write these:
Yellow line=iCustom(NULL,0,"Val_Bands",BandsPeriod,BandsDeviation,1,shift)
Red line=iCustom(NULL,0,"Val_Bands",BandsPeriod,BandsDeviation,3,shift)
I hope i'm right?
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Hi all,
i just came across this wonderful indicator on another website, it's perfect for closing trades without losing much pips,
but i need help on how i can add it to my EA code.
to use it, A trade must be closed as soon as the value of the red histogram line is greater than the yellow line,
but i need help on how to get the value of the yellow line and that of the red histogram.
Please any help will be appreciated.
the indicator has been attached. thank you.