DislikedHas anyone actually seen price move in either the green or red zone?Ignored
Autop Dynamic Grid EA - Enhanced version of Auto-Profit 3.0 769 replies
Dynamic TakeProfit & Dynamic StopLoss EA/AI/Algorithm 0 replies
Dynamic Fibonacci Grid - interactive trading 279 replies
DislikedI would like to know, what is the easiest way to calculate the trend strength, based on the MA. I've implemented the daily pivot lines and the time frame labels today. I would like to move on to indicate the trend's strength.Ignored
int _bsl[NSL] = {10, 16, 26, 42, 68, 111, 179, 290, 470, 760}; // time shades distance : 9, 16, 26, 42, 68, 110, 178, 246
DislikedSo, here comes my approach: - Added time frames - Fibonacci levels are marked with colored background - Non visible MA in transparent rectangle woth prices - Moving average arrows with colors - Blue fast,Yellow middle, Black slow MA Arrow direction is based on ADX indicator. Arrow size according to the trend strength in four steps (sizes). -Daily pivot point, 3 supports and 3 resistance levels. I think it's the most I could make for now, it's my 4th day of programming in mql4... {file}Ignored
if(i==0){ if(fml[tf][i] >= price) col=DiamondWeakDirection0; else col=DiamondWeakDirection1; ObjectSet(objName, OBJPROP_COLOR, col); ObjectSetInteger(NULL,objName, OBJPROP_FONTSIZE,13); ObjectSetString(NULL,objName, OBJPROP_FONT, "Wingdings"); ObjectSetText(objName,"u"); ObjectSet(objName, OBJPROP_TIME1, curTime+shift+tf*spacing+10*xUnit); ObjectSet(objName, OBJPROP_PRICE1, fml[tf][i]);
DislikedTry to use the OBJPROP_BACK on the other elements.That will put everything on the background. But there will be a color interference since it is using XOR to mask the background. I couldn't find a way of Z ordering the objects and even I've tried to draw the MA as the last item, seems mt4 draws objects on an arbitary order.Ignored
for(i=0; i<NMA; i++) { objName = uniqueid + "fml_bar_" + tf + "_" + i; // horizontal momentum lines ObjectCreate(objName, OBJ_TEXT, 0, 0, 0, 0, 0); ObjectSetInteger(NULL,objName, OBJPROP_ANCHOR,ANCHOR_CENTER); ObjectSet(objName, OBJPROP_COLOR, Black); ObjectSet(objName, OBJPROP_BACK, false); ObjectSetInteger(NULL,objName,OBJPROP_FONTSIZE,7); ObjectSet(objName, OBJPROP_WIDTH, 0); if(i<2 || i == NMA-1) ObjectSet(objName, OBJPROP_WIDTH, 1);
if(i==0){ if(fml[tf][i] >= price) col=DiamondWeakDirection0; else col=DiamondWeakDirection1; ObjectSet(objName, OBJPROP_COLOR, col); ObjectSet(objName, OBJPROP_BACK, false); ObjectSetInteger(NULL,objName, OBJPROP_FONTSIZE,13); ObjectSetString(NULL,objName, OBJPROP_FONT, "Wingdings"); ObjectSetText(objName,"u"); ObjectSet(objName, OBJPROP_TIME1, curTime+shift+tf*spacing+10*xUnit); ObjectSet(objName, OBJPROP_PRICE1, fml[tf][i]);
DislikedTry to use the OBJPROP_BACK on the other elements.That will put everything on the background. But there will be a color interference since it is using XOR to mask the background. I couldn't find a way of Z ordering the objects and even I've tried to draw the MA as the last item, seems mt4 draws objects on an arbitary order.Ignored
Disliked{quote} what would be the code to shade a level of fibo?, without add wingding and webdings.. I mean an OBJECT. *Like the image below. {image}Ignored
Disliked{quote} I'm afraid you can't. I suggest to draw the background first, than in a separate loop draw the moving averages and in a third loop draw the labels.Ignored