F8 or right click -> Properties. Bottom of the color tab is Stop Levels. Any color you'd like but it applies to both.
I like to see the stop levels after the order closed, so I put them on the chart
for(int pos = OrdersTotal() - 1; pos >= 0; pos--) if ( OrderSelect(pos, SELECT_BY_POS) // Only my orders w/ && OrderMagicNumber() == Magic.Number // my magic number && OrderSymbol() == Symbol() ){ // and period and symbol ... if (new.bar){ // Show where they started this bar. int dura = iBarShift(NULL,0, OrderOpenTime()); MakeMarker("SL", oo.ticket, dura, stop.cur, Color.Supprt); MakeMarker("TP", oo.ticket, dura, takeCur, Color.Resist); } ... //+------------------------------------------------------------------+ //| Level object creation function | //+------------------------------------------------------------------+ #define ARROW_NDASH 4 //#define ARROW_CIRCLEDOT 164 void MakeMarker( string name, int ticket, int barNum, double price, color obColor, int arrow=ARROW_NDASH ){ if (!Show.Objects) return; #define MAXOBJ 100 // Prevent Tester memory handler: tester string // stopped because not enough memory objName = StringConcatenate(name, "#", ticket%MAXOBJ, "-", barNum); if (!ObjectMove( objName, 0, TimeCurrent(), price +Bid.chart)){ if (!ObjectCreate( objName, OBJ_ARROW, WINDOW_MAIN, TimeCurrent(), price +Bid.chart)){ Alert( "ObjectCreate(", objName, "Arrow) failed: ", GetLastError()); return; } if (!ObjectSet( objName, OBJPROP_ARROWCODE, arrow )) Alert( "ObjectSet(", objName, "Arrow) [2] failed: ", GetLastError()); } if (!ObjectSet( objName, OBJPROP_COLOR, obColor )) Alert( "ObjectSet(", objName, "Color) [3] failed: ", GetLastError()); #define STD_TEXT_SIZE EMPTY else if (!ObjectSetText( objName, DoubleToStr(price, Digits), STD_TEXT_SIZE )) Alert("ObjectSetText(", objName, ") failed:", GetLastError()); return; } // MakeMarker
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Is ther anyway to change the color of the stop levels in mt4? they default to both red. I'd like to change the tp level to green.