Forum

FxPro EA test [Unsupported filling mode].

Hi, I have coded a basic MT5 EA which is using the CTrade class to manage trades. I am currently testing this EA on FxPro MT5. When I open a trade using the ORDER_FILLING_IOC filling method, it is working fine with trade.PositionOpen. Now When I use the CTrade class with trade.PositionClose and any

MQL5 Closed orders pip/tick count (entry price missing)

Hi, I am currently migrating some of my tools from mq4 to mq5 and I am struggling to get the pip/tick count of closed orders. My only issue is to get the ENTRY PRICE of closed orders. Here is the piece of code that I am using datetime deal_close_time = 0 ; double

Fontsize option

Hello, Just a short question, I would like to add a font size option to the code bellow but I cannot manage to make it work, I tried the following code but it is not working: SetLabel ("iProfit12", DoubleToStr (tu/MathPow(10,DecPts()), DecPts()), ColorOnSign(tp), eiX0Row, eiOffsetY+2*eiStepY

History option on this indicator

Hello, The purpose of this indicator is to draw a trendline between the close of 2 specific candle. I have tried different thing to add history to this indicator without any success. Like: extern int NumberOfDays = 5; ... But no success. If anybody can help me that would be great, Thanks in advance