Hi guys.
I am trying to code indicator that will alert me only in Fib area. But I am getting only alert from first part before "else" I am not receiveing any email if price break above 62%. Please can anyone tell m e what I do wrong?
Many thx for help
if(mPriceDistance > mGap*pips) // check if range is bigger than some amount of pips because we are looking only for big Fibs
if(mPriceRange != mPriceDistance) // only if mPriceDistance is not same then cont
{
if((Open[0] < (Low[LowCandle] + mPriceDistance*0.5)) && (Open[0] > (Low[LowCandle] + mPriceDistance*0.62))) // check for price open above 50% Fib
if(Time[0] > mAlertTime)
{
Alert(Symbol() + " Buy Fib Zone !! ");
PlaySound("Alert.wav");
mAlertTime = Time[0];
string mStr = Symbol() + " " + Period() + "m " + TimeHour(Time[0]) + ":" + TimeMinute(Time[0]);
string mMessStr = Symbol() + " " + Period() + " NSND candle on Doji " ;
//SendMail(mMessStr, mStr);
// DrawLine(Aqua);
DrawHline1(Low[LowCandle] + mPriceDistance*0.5 , Low[LowCandle] + mPriceDistance*0.62);
DrawLine(HighCandle);
DrawLine1(LowCandle);
//DrawLine2(2);
}
}
else
{
if(Open[0] < (Low[LowCandle] + mPriceDistance*0.62)) // if price is above save that mPriceDistance to mPriceRange and wait for fresh new mPriceDistance
mPriceRange = mPriceDistance;
mStr = Symbol() + " " + Period() + "m " + TimeHour(Time[0]) + ":" + TimeMinute(Time[0]);
mMessStr = Symbol() + " " + Period() + " Fib Above 62% Buy Setup"+ mPriceRange ;
}
I am trying to code indicator that will alert me only in Fib area. But I am getting only alert from first part before "else" I am not receiveing any email if price break above 62%. Please can anyone tell m e what I do wrong?
Many thx for help
if(mPriceDistance > mGap*pips) // check if range is bigger than some amount of pips because we are looking only for big Fibs
if(mPriceRange != mPriceDistance) // only if mPriceDistance is not same then cont
{
if((Open[0] < (Low[LowCandle] + mPriceDistance*0.5)) && (Open[0] > (Low[LowCandle] + mPriceDistance*0.62))) // check for price open above 50% Fib
if(Time[0] > mAlertTime)
{
Alert(Symbol() + " Buy Fib Zone !! ");
PlaySound("Alert.wav");
mAlertTime = Time[0];
string mStr = Symbol() + " " + Period() + "m " + TimeHour(Time[0]) + ":" + TimeMinute(Time[0]);
string mMessStr = Symbol() + " " + Period() + " NSND candle on Doji " ;
//SendMail(mMessStr, mStr);
// DrawLine(Aqua);
DrawHline1(Low[LowCandle] + mPriceDistance*0.5 , Low[LowCandle] + mPriceDistance*0.62);
DrawLine(HighCandle);
DrawLine1(LowCandle);
//DrawLine2(2);
}
}
else
{
if(Open[0] < (Low[LowCandle] + mPriceDistance*0.62)) // if price is above save that mPriceDistance to mPriceRange and wait for fresh new mPriceDistance
mPriceRange = mPriceDistance;
mStr = Symbol() + " " + Period() + "m " + TimeHour(Time[0]) + ":" + TimeMinute(Time[0]);
mMessStr = Symbol() + " " + Period() + " Fib Above 62% Buy Setup"+ mPriceRange ;
}