Attachments forums

List of attachments posted on this forum.


All files on forums: 153316

BoS/CHoCH indicator

ionone, Sat Aug 03, 2024 3:47 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 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
All files in topic