Great exit indicator attached

 

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.

Files:
val_bands.mq4  7 kb
 

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?

 
To be honest, I don't see ANY benefit on this indicator... Is there any better exit indicator for m15 chart?
 
I've been looking at TSL = Median(n, Low) Seems to stay away from spikes but closes up quickly on a reversal.
Reason: