I am testing it right now as I saw your post and I can not find an error
Thank you for your disponibility.
Attached there is an image capture from the chart.
I noted that it don't happen always.
Hope you can fix it.
Is the ArrowOnlast set to true?
I tested it in somewhat similar conditions, and this is what I get (so it works OK here)
Also, does your broker have Sunday data (the 1 hour or 2 they usually have)? Since that might cause problems on daily data
I'm trying to set up an if statement to assume GBPUSD 1.5566 plus .0011 = 1.5577
OLD- if (trend > 0 && Close > (Close && Close > upper ) result = mode; //Long
OLD- if (trend < 0 && Close < (Close && Close < lower ) result = -mode; //Short
NEW-if(trend > 0 && (Close > (Close+(.0011*Point*10))) && Close > upper && Close < upper) result = mode;
NEW-if(trend < 0 && (Close < (Close-(.0011*Point*10))) && Close lower) result = -mode;
My goal is to not trigger the if statement until the Close is .0011 pips above/below the Close.
It compiles OK but is this the best way to accomplish my goal???? My broker is a 5 digit!
Thank you for your help/MT4-lesson
As far as I see all you have to do is to remove "Point*10" from multiplication (0.0011*Point*10 would be 0.0011*0.00001*10 in case of GBPUSD and that is not what you want)
Still looking for the script to open separate charts from metatrader. Can't find anywhere...
I haven't seen such either
To use normal pip distance calculation, maybe the better would be something like this :
double pipModifier=1; if (Digits==3 || Digits==5) pipModifier = 10;
double distanceToUse = pipDistance*Point*pipModifier;
That way it could be more "flexible" for usage
CCI prefiltered averages with floating levels
It seemed as a logical step to make a CCI pre-filtered averages with floating levels. It works as the rest of the floating levels indicators, so this one does not use "absolute levels" but uses percentages of the minimal maximal range for MinMaxPeriod bars as a criteria to find out levels
ps) updated version making it compatible with new mt4 builds posted here https://www.mql5.com/en/forum/general
The Ea entries don't appear to be utilizing the
if (trend > 0 && (Close > (Close+ 0.0011)) && Close > upper && Close > upper && Close < upper) result = mode;
if (trend < 0 && (Close < (Close- 0.0011)) && Close < lower && Close lower) result = -mode;
the 07:33 short entry is the exact reason I'm trying to use the 11 pip calculation to keep me out of the Fake trend. Should I be using a "MathAbs" or "MathMax" or some other Math (Close > (Close+ 0.0011))
Any suggestions would be welcomed