BoS/CHoCH indicator

205
I made a BoS/CHoCH indicator whatever it's called because I could not find any valuable with code and everything

I hope all works as it should

you can filter only if you want a big retracement before the signal (with the setting "Height")

you need to access the setting in an EA this way :

Code: Select all

double b1;
double s1;

double b  = iCustom(NULL,0,IndiName,bars,ATRDistMul,ATRDistMulHeight,VolatilityType,bbH,bbL,hhmin,llmin,  0, i+1);
double b_ = iCustom(NULL,0,IndiName,bars,ATRDistMul,ATRDistMulHeight,VolatilityType,bbH,bbL,hhmin,llmin,  0, i);
if (b > 0 && b < EMPTY_VALUE)
if (b_ <= 0 || b_ >= EMPTY_VALUE)
   b1 = b;
    

double s  = iCustom(NULL,0,IndiName,bars,ATRDistMul,ATRDistMulHeight,VolatilityType,bbH,bbL,hhmin,llmin,  1, i+1);
double s_ = iCustom(NULL,0,IndiName,bars,ATRDistMul,ATRDistMulHeight,VolatilityType,bbH,bbL,hhmin,llmin,  1, i);
if (s > 0 && s < EMPTY_VALUE)
if (s_ <= 0 || s_ >= EMPTY_VALUE)
   s1 = s;
otherwise you can have some future reading Jeff
These users thanked the author ionone for the post (total 5):
eduarescobar, Jimmy, DVanAssen, budhi1976, SijjiN
Scalping the Century TimeFrame since 1999


Re: BoS/CHoCH indicator

206
ionone wrote: Sat Aug 03, 2024 3:51 am I made a BoS/CHoCH indicator whatever it's called because I could not find any valuable with code and everything

I hope all works as it should

you can fil
Jeff
by the way it will not wait for signal bar to be closed to issue a signal : the signal is isued as soon as the level is crossed (shifted by entry vshift)
These users thanked the author ionone for the post:
eduarescobar
Scalping the Century TimeFrame since 1999

Re: Smart Money Concept (SMC) indicators for MT4

208
I added another "bbLeft" possibility that way simply replacing the twice the length by any number of bars you need
this is called "bbLeft 2". This is closer to what I wanted to do originally in version 110, but I got sidetracked lol
be careful if you use lower bbH and bbL values you need to lower hhmin and llmin as well otherwise you won't get any signals
These users thanked the author ionone for the post (total 4):
specialkey, SijjiN, Jozo, Nabs
Scalping the Century TimeFrame since 1999