Forum

Expert advisor gets removed of

Hi My Expert keeps on getting removed when i close my position If im running this expert with an open position it works great, but as soon as i close the position and open a new one, the expert freezes and the gets removed Why

Why doent this work?!?

In my mind this should work. But i get so many errors... Im trying to find the highest candle from current time to when i entered the deal. double Start; double TimeCurrent; double HighestCandel; double High[]; if ( HistorySelect (0, TimeTradeServer()) && (HistoryDealsTotal() > 0))

How does Ticket_Nuber work?

Hi all! If im Using HistoryDealGetDouble like https://www.mql5.com/en/docs/trading/historydealgetdouble and i wanna get the buy time of my last deal. What Ticket_Nuber does my last deal get? Is it Ticket_0

Highest Candel

Hi all! I wanna search for the highest price since i opened my position. https://www.youtube.com/watch?v=S7AiX4Qyvws Like he is doing but from current price/candel to my last open price . Can anyone help

How to get a Comment for my last MFE

Im trying to get a comment of my last MFE and i cant figure out how to do it. Ive done this. Probably all wrong but, please help. double OpenPrice; double High[]; ArraySetAsSeries(High,true); CopyHigh(_Symbol,PERIOD_M1,TICK_FLAG_ASK,PRICE_OPEN,High); OpenPrice=

My buy price Mgl5 langue?

Hi i wanna try something new that i havent seen anyone else doing. I wanna calculate my latest buyprice and subtract that with the highest price my trade position have been to. Lets say that i enter EUR/USD at 1.17785 then the price goes up to 1.17855 and then goes down to 1.12850 i want the