Hi,
as far as I can get from your description you are trying to use a custom indicator (one that does not come with MT4 by default; one that you obtained from somewhere else) from an EA ? IF so, you need to look at the iCustom() function here: https://docs.mql4.com/indicators/iCustom
This function will allow you to get the value of the indicator (of the selected band) at the selected bar (shift).
You can select any one of the lines by changing the "mode" parameter...
thank you
Automated (automatedfx@gmail.com)
--
my recent grid trading:
http://fx-grid2.forexmosaic.com/ - 8621 pips in 7 weeks
http://fx-grid3.forexmosaic.com/ - 2068 pips in 3 weeks
Hi There,
I want to use the Bollinger Bands indicator for MetaTrador4 that is just called 'BANDS' as this indicator allows me to input numbers that Bollinger Bands wont.
1. I want to know know the code that will enable me to remove the centre band as when I add 'BANDS' to my charts, three bands rather than just the two desired
bands appear.
2 The second problem is I have no idea how to input the code into MQL4 and I'm finding it all a bit confusing. Can anyone help me out and tell me what I should do? Presumably I would need to 'cut and paste' the code into somwhere.
I've tried to sort this myself but can't so any help would be very much appreciated.
Bigwilkez
I'm new at this too but I'm hoping I can start giving back :).... As I understand you, you are attaching the customer indicator Bands rather than the indicator Bollinger bands and you only want to see 2 of the 3 lines on your chart.... 2 options that I can see... either change the display colour to none in the properties box... I think the middle line is the top in the list.... or modify the code by changing the line
SetIndexStyle(0,DRAW_LINE);
to
SetIndexStyle(0,DRAW_NONE);
Save it as mybands or something and compile it.
As I said, I'm a newbie too but I'm sure someone with experience will correct me if I'm wrong.
of th
- 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 There,
I want to use the Bollinger Bands indicator for MetaTrador4 that is just called 'BANDS' as this indicator allows me to input numbers that Bollinger Bands wont.
1. I want to know know the code that will enable me to remove the centre band as when I add 'BANDS' to my charts, three bands rather than just the two desired
bands appear.
2 The second problem is I have no idea how to input the code into MQL4 and I'm finding it all a bit confusing. Can anyone help me out and tell me what I should do? Presumably I would need to 'cut and paste' the code into somwhere.
I've tried to sort this myself but can't so any help would be very much appreciated.
Bigwilkez