Hello Good People,
I've been trying to use MA_AngleZeroSigMA in my EA for a while with no success. My code uses a total of 7 indicators with a filter region. All indicators work perfectly and take trades excerpt MA_AngleZeroSigMA. I had to make slight repairs to MA_AngleZeroSigMA indicator and another. I'll attach the code section for the repair and the EA section. Thank you so much for your help.
what errors? or are you having trouble getting indicator values? i'v seen that when you're expecting a 0 price you get 2147483647.0 instead which doesn't show up in the data window.
i was able to compile expect for commented out things, of course a few things were inaccurate.
void MAAZSigMA() { //FilterCalc(); //if (Filter == True) return; double MAAZSigMACurrUp = iCustom(NULL,0,"MA_AngleZeroSigMA",MAPeriod,MA_MODE,MA_PRICE,AngleTreshold,StartMAShift,EndMAShift,SigMA_Period,SigMA_mode,0,0); double MAAZSigMAPrevUp = iCustom(NULL,0,"MA_AngleZeroSigMA",MAPeriod,MA_MODE,MA_PRICE,AngleTreshold,StartMAShift,EndMAShift,SigMA_Period,SigMA_mode,0,1); double MAAZSigMACurrDown = iCustom(NULL,0,"MA_AngleZeroSigMA",MAPeriod,MA_MODE,MA_PRICE,AngleTreshold,StartMAShift,EndMAShift,SigMA_Period,SigMA_mode,1,0); double MAAZSigMAPrevDown = iCustom(NULL,0,"MA_AngleZeroSigMA",MAPeriod,MA_MODE,MA_PRICE,AngleTreshold,StartMAShift,EndMAShift,SigMA_Period,SigMA_mode,1,1); double MAAZSigMACurrAngle = iCustom(NULL,0,"MA_AngleZeroSigMA",MAPeriod,MA_MODE,MA_PRICE,AngleTreshold,StartMAShift,EndMAShift,SigMA_Period,SigMA_mode,4,0); if ((MAAZSigMACurrUp == 0 || MAAZSigMAPrevUp == 0) || (MAAZSigMACurrDown == 0 || MAAZSigMAPrevDown == 0)) return; if ((MAAZSigMACurrUp > MAAZSigMAPrevUp) || (MAAZSigMACurrDown > MAAZSigMAPrevDown)) { //MAAZSigMABuy = True; } if ((MAAZSigMACurrUp < MAAZSigMAPrevUp) || (MAAZSigMACurrDown < MAAZSigMAPrevDown)) { //MAAZSigMASell = True; } }
what errors? or are you having trouble getting indicator values? i'v seen that when you're expecting a 0 price you get 2147483647.0 instead which doesn't show up in the data window.
i was able to compile expect for commented out things, of course a few things were inaccurate.
So sorry for the late reply. I was having issues getting indicator values. For some reason it only gives values for the MAAZSigMACurrAngle after i added the code below.
From the looks of your code, you removed the String quote marks. I guess that is sensible and will try it out but i don't think that is the problem because the angle works. Hmm, That number should mean EMPTY_VALUE and that the indicator is faulty and isn't passing values to the other buffers? If that is the case, it shouldn't show when it is loaded in the chart, right?
|| (SigMATradelong = True && MAAZSigMACurrAngle > AngleThreshold) || (SigMATradelong = True && MAAZSigMACurrAngle < -AngleThreshold)
I tried looking online for solutions but it seems like no one is interested in this indicator even though it has a lot of potential.
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Hello Good People,
I've been trying to use MA_AngleZeroSigMA in my EA for a while with no success. My code uses a total of 7 indicators with a filter region. All indicators work perfectly and take trades excerpt MA_AngleZeroSigMA. I had to make slight repairs to MA_AngleZeroSigMA indicator and another. I'll attach the code section for the repair and the EA section. Thank you so much for your help.