Hello to all good people. Can you help me, i need to change this robot in mt5, be very thankful.
Attached File(s)
Pos_Expert_v01.mq4
30 KB
|
149 downloads
Chaos Creator
I will code your pivot EAs for no charge 23 replies
I will code your scalping EAs for no charge 163 replies
Oanda MT4 - Indicators and EAs not showing 2 replies
EAs and indicators relating to moutaki... 22 replies
InterbankFX has loaded its MT4 platform with custom EAs, indicators and scripts 1 reply
Disliked{quote} I did not have this effect. So, this is one of those cases when I can't fix something which doesn't happen on my computer and should not happen, because the code filters by Symbol(), so it alerts about the Symbol() of the chart it is working on. PS. Maybe you're talking about the fact that the Alert PopUp window displays all the alerts which happened during the MT4 session, and not only the last one? Well, that's not something we could change. That's a complaint to MetaQuotes Ltd.Ignored
Disliked{quote} no no no,its not about popup alert ,it is about push alert in mobile phone.Ignored
if(OrderSymbol()==_Symbol) if(Notify_OrderClosed){ if(_MobileNotification){SendNotification(Messages);} if(_EmailNotification){SendMail("Order changes Notification",Messages);} if(_AlertonPC){Alert(Messages);} }
if (Open_Symbol==_Symbol) if(Notify_New_Order){ if(_MobileNotification){SendNotification(Messages);} if(_EmailNotification){SendMail("Order changes Notification",Messages);} if(_AlertonPC){Alert(Messages);} }
//--- string Order_Type; int OrderType = 0; double OrderVolume = 0.0; double OrderPrice = 0.0; double OrderSwap = 0.0; double OrderProfit = 0.0; int total = PositionsTotal(); if(total > 10) total = 10; // Limit to max 10 trades for(int i = 0; i < PositionsTotal(); i++) { ulong ticket = PositionGetTicket(i); int Ydistance = 158 + (20 * i); string OrderSymbol = PositionGetString(POSITION_SYMBOL); long PositionTicket = PositionGetInteger(POSITION_TICKET); OrderType = (int)PositionGetInteger(POSITION_TYPE); OrderVolume = PositionGetDouble(POSITION_VOLUME); OrderPrice = PositionGetDouble(POSITION_PRICE_OPEN); OrderSwap = PositionGetDouble(POSITION_SWAP); OrderProfit = PositionGetDouble(POSITION_PROFIT); if (IntegerToString(OrderType) == IntegerToString(0)) { Order_Type = "Buy"; OrderType_Color = clrForestGreen; } else if (IntegerToString(OrderType) == IntegerToString(1)) { Order_Type = "Sell"; OrderType_Color = clrCrimson; } if (OrderSwap > 0) { OrderSwap_Color = clrForestGreen; } else if (OrderSwap < 0) { OrderSwap_Color = clrCrimson; } else { OrderSwap_Color = clrWhite; } if (OrderProfit > 0) { OrderProfit_Color = clrForestGreen; } else if (OrderProfit < 0) { OrderProfit_Color = clrCrimson; } else { OrderProfit_Color = clrWhite; } //--- w.WriteText("OrderSymbol_"+IntegerToString(i),0,1306,Ydistance,OrderSymbol,clrWhite,10,"Arial"); g.SetAnchor("OrderSymbol_"+IntegerToString(i),ANCHOR_CENTER); w.Redraw(); //--- w.WriteText("OrderType_"+IntegerToString(i),0,1411,Ydistance,Order_Type,OrderType_Color,10,"Arial"); g.SetAnchor("OrderType_"+IntegerToString(i),ANCHOR_CENTER); w.Redraw(); //--- w.WriteText("OrderVolume_"+IntegerToString(i),0,1515,Ydistance,DoubleToString(OrderVolume,2),clrWhite,10,"Arial"); g.SetAnchor("OrderVolume_"+IntegerToString(i),ANCHOR_CENTER); w.Redraw(); //--- w.WriteText("OrderPrice_"+IntegerToString(i),0,1622,Ydistance,DoubleToString(OrderPrice,(int)SymbolInfoInteger(OrderSymbol,SYMBOL_DIGITS)),clrWhite,10,"Arial"); g.SetAnchor("OrderPrice_"+IntegerToString(i),ANCHOR_CENTER); w.Redraw(); //--- w.WriteText("OrderSwap_"+IntegerToString(i),0,1725,Ydistance,DoubleToString(OrderSwap,2),OrderSwap_Color,10,"Arial"); g.SetAnchor("OrderSwap_"+IntegerToString(i),ANCHOR_CENTER); w.Redraw(); //--- w.WriteText("OrderProfit_"+IntegerToString(i),0,1788,Ydistance+8,DoubleToString(OrderProfit,2),OrderProfit_Color,10,"Arial"); g.SetAnchor("OrderProfit_"+IntegerToString(i),ANCHOR_LEFT_LOWER); w.Redraw(); //--- w.Button("OrderClose_"+IntegerToString(ticket)+"_"+IntegerToString(i),0,1865,Ydistance-8,23,18,"X",OrderProfit_Color); g.SetColor("OrderClose_"+IntegerToString(ticket)+"_"+IntegerToString(i),clrWhite); g.SetBorderColor("OrderClose_"+IntegerToString(ticket)+"_"+IntegerToString(i),OrderProfit_Color); g.SetFontSize("OrderClose_"+IntegerToString(ticket)+"_"+IntegerToString(i),9); }
for (int i = 0; i < PositionsTotal(); i++) { long PositionTicket = PositionGetInteger(POSITION_TICKET); ulong ticket = PositionGetTicket(i); string CloseName = "OrderClose_"+IntegerToString(ticket)+"_"+IntegerToString(i); int TicketNumber = (int)StringSubstr(CloseName,11,9); if(sparam==CloseName) { g.SetState(sparam,false); trade.PositionClose(ticket); w.Delete("OrderSymbol_"+IntegerToString(i)); w.Delete("OrderType_"+IntegerToString(i)); w.Delete("OrderVolume_"+IntegerToString(i)); w.Delete("OrderPrice_"+IntegerToString(i)); w.Delete("OrderSwap_"+IntegerToString(i)); w.Delete("OrderProfit_"+IntegerToString(i)); w.Delete("OrderClose_"+IntegerToString(ticket)+"_"+IntegerToString(i)); g.Redraw(); } }
DislikedHello dear traders and programmers I'm working on EA dashboard where I have this Trades Report indicator:{image} it's working almost great Info appears when I open a trade and when I click X button it closes, Only thing is that if I close the trade from bellow to top, that trade info is deleting, but if I delete a specific trade, let's say second from five, trade closes but info stays. Any idea how to fix it? Thanks in advanceIgnored
Disliked{quote}I see, well if you can't do that atleast help me with this MT4 version of the shved SR indicator instead: could you add a filter to make the indicator plot/show only Turncoat zones that were previously "Verified" zones? Verified means that they have atleast 2 test counts, like this {image} And DON'T show the turncoats that were previously "Untested", meaning that had only 1 test count, like this {image} {file}Ignored
DislikedHello dear traders and programmers I'm working on EA dashboard where I have this Trades Report indicator:{image} it's working almost great Info appears when I open a trade and when I click X button it closes, Only thing is that if I close the trade from bellow to top, that trade info is deleting, but if I delete a specific trade, let's say second from five, trade closes but info stays. Here's the code: OnTick() //--- string Order_Type; int OrderType = 0; double OrderVolume = 0.0; double OrderPrice = 0.0; double OrderSwap = 0.0; double...Ignored
Disliked{quote} Don't know if i can fix it, but upload the whole source code(the mq4 file) here and i will take a look at it.Ignored
DislikedGood afternoon, professionals. Please tell me which buffers are responsible for the arrows. As I understand is 14-15, but expert does not attract these buffers {file}Ignored
Disliked{quote} Not interested, don't feel like doing this... Ask someone else.Ignored
Disliked{quote} Best I just want to know though I know you can conjure it to come up is it possible to create arrow alert that will alert you to the start of trending on London and NEW YORK OPEN.WHICH WAY IS UP OR DOWN.. JUST CURIOUS..Predicting price direction can be tricky, y'know. Anyway how about arrows can it be done? Arrow that can quickly catch a couple of morning pips before NEW YORK. THANKSIgnored
Disliked{quote} The problem is overcomplification. Look at the for() loop in OnChartEvent(). Only the [X] button contains the ticket number. The objects are just deleted by "i". This doesn't make much sense. One way is to add the ticket number to all of the object names for the trade, and delete only the objects which contain the ticket number. Much easier is to simply delete all objects and recreate the table, best in the OnChartEvent(). Then, also, the table will be consistent, without gaps.Ignored
Disliked{quote} I can't check if it hangs. I recoded it so it shouldn't hang. {quote} I recoded it so it shouldn't conflict with other indicators. {quote} WTF??? This is an INDICATOR not an EA, so the OnTick() event function has no place in an indicator!!! https://docs.mql4.com/basis/function/events The OnChartEvent() event function which was applied didn't work, because it wasn't defined for any chart event. https://docs.mql4.com/constants/char...um_chartevents And there is no need for this function in this indicator, because...Ignored
Disliked{quote} In that case the logical conclusion is that it's a feature of the mobile alerts. The same function executes all the alerts. IOW, the commands to execute the individual types of alerts are inside the same brackets. For closed orders: if(OrderSymbol()==_Symbol) if(Notify_OrderClosed){ if(_MobileNotification){SendNotification(Messages);} if(_EmailNotification){SendMail("Order changes Notification",Messages);} if(_AlertonPC){Alert(Messages);} } For new placed orders: if (Open_Symbol==_Symbol) if(Notify_New_Order){ if(_MobileNotification){SendNotification(Messages);}...Ignored
DislikedGentlemen programmers, please correct the error in the indicator? {file}Ignored