DislikedS = GREEN - OUT = GREEN use CTR EA2 (Go with trend ie In uptend Buy , in down trend sell)
is this correct
thank youIgnored
out green means that if u're in an UT than ma3 h4 is really close to bb h4 down, so it's almost impossible to have S green and OUT green, because S green in an uptrend means that bid is > bbh1 up and bid > bbh4 up, so if this is verified OUT green is not verified!
so take a look at the condition in the code!
if(Operation==1) {
//Primary SELL
if(Bid <= MA82 && Bid <= MA22 && Bid >= BBH1mid && (MathAbs(BBH1up-Bid)/PointValue<=50))
sLog = StringConcatenate(sLog,ColorPrimaryGood,";"); //2=green indicator mean near
else if (Bid<= MA82 && Bid <= MA22 && Bid >= BBH1mid && (MathAbs(BBH1up-Bid)/PointValue > 50))
sLog = StringConcatenate(sLog, ColorPrimaryNear,";"); //1=yellow indicator mean over
else
sLog = StringConcatenate(sLog, ColorPrimaryNo,";"); //0=no indicator
//CTR BUY
if(Bid <= MA82 && Bid <= BB10down && Bid <=BBH1down && MA3H1L <= BBH1down )
sLog = StringConcatenate(sLog,ColorSecondaryGood, ";"); //2=green indicator mean under
else if (Bid <= MA82 && Bid <= MA22 && Bid <= BB10down)
sLog = StringConcatenate(sLog, ColorSecondaryNear, ";"); //1=yellow indicator mean near
else
sLog = StringConcatenate(sLog, ColorSecondaryNo, ";"); //0=no indicator
} else
if(Operation==-1) {
//Primary BUY
if(Bid >= MA82 && Bid >= MA22 && Bid <= BBH1mid && (MathAbs(BBH1down-Bid)/PointValue <= 50))
sLog = StringConcatenate(sLog, ColorPrimaryGood, ";"); //2=green indicator mean under
else if (Bid >= MA82 && Bid >= MA22 && Bid <= BBH1mid && (MathAbs(BBH1down-Bid)/PointValue > 50))
sLog = StringConcatenate(sLog, ColorPrimaryNear,";"); //1=yellow indicator mean near
else
sLog = StringConcatenate(sLog, ColorPrimaryNo,";"); //0=no indicator
//CTR SELL
if(Bid > MA82 && Bid >= BB10up && Bid >=BBH1up && MA3H1H >= BBH1up )
sLog = StringConcatenate(sLog, ColorSecondaryGood,";"); //2=green indicator mean near
else if (Bid >= MA82 && Bid >= MA22 && Bid >= BB10up)
sLog = StringConcatenate(sLog, ColorSecondaryNear,";"); //1=yellow indicator mean over
else
sLog = StringConcatenate(sLog, ColorSecondaryNo, ";"); //0=no indicator
and these are for in and out
double dDistanceUp = MathAbs(MA310-BB10up)/PointValue;
double dDistanceDown=MathAbs(MA310-BB10down)/PointValue;
double ddDistUp = MathAbs(MA3H1H -BBH1up)/PointValue;
double ddDistDown = MathAbs(MA3H1L -BBH1down)/PointValue;
if(Operation==-1) {
//Column 5
if((Bid > MA82 && Bid< MA22) ) { //inside
if(dDistanceUp<=50)
sLog = StringConcatenate(sLog,ColorInside,";"); //Green
else if(dDistanceUp>50 && dDistanceUp<250)
sLog = StringConcatenate(sLog,ColorInOutNear,";"); //Yellow
else
sLog = StringConcatenate(sLog,ColorInOutNo,";"); //Nothing
} else
sLog = StringConcatenate(sLog,ColorInOutNo,";"); //Nothing
//Column 6 outside
if((Bid>MA82 && Bid > MA22) ) {
if(dDistanceDown<=50)
sLog = StringConcatenate(sLog,ColorOutside,";"); //Green
else if(dDistanceDown>50 && dDistanceDown<250)
sLog = StringConcatenate(sLog,ColorInOutNear,";"); //Yellow
else
sLog = StringConcatenate(sLog,ColorInOutNo,";"); //Nothing
} else
sLog = StringConcatenate(sLog,ColorInOutNo,";"); //Nothing
//Column 7
sLog = StringConcatenate(sLog,MathMin(ddDistDown*2,100),";");
} else
if(Operation==1) {
//Column 5
if(Bid < MA82 && Bid> MA22) { //inside
if(dDistanceDown<=50)
sLog = StringConcatenate(sLog,ColorInside,";"); //Green
else if(dDistanceDown>50 && dDistanceDown<250)
sLog = StringConcatenate(sLog,ColorInOutNear,";"); //Yellow
else
sLog = StringConcatenate(sLog,ColorInOutNo,";"); //Nothing
} else
sLog = StringConcatenate(sLog,ColorInOutNo,";"); //Nothing
//Column 6 outside
if(Bid < MA82 && Bid< MA22) {
if(dDistanceUp<=50)
sLog = StringConcatenate(sLog,ColorOutside,";"); //Green
else if(dDistanceUp>50 && dDistanceUp<250)
sLog = StringConcatenate(sLog,ColorInOutNear,";"); //Yellow
else
sLog = StringConcatenate(sLog,ColorInOutNo,";"); //Nothing
} else
sLog = StringConcatenate(sLog,ColorInOutNo,";"); //Nothing
//Column 7
sLog = StringConcatenate(sLog,MathMin(ddDistUp*2,100),";");
it's all here!