I'm working on mql4 to mql5 upgrade. I used RefreshRates() before sending an order to avoid worng data (specially Bid and Ask). The use of RefreshRates() solved eventual errors due incorrect quotes. If there anyway to request fresh data from
Hi!! I expect the title match my question...sometimes english is a little hard for me. The question is that I have a custom indi, my first cusotm indi. The indi is showed in a separated window and is showed for all bars in charts. Sometimes I have a
Hi!! I've been looking for a solution for my problem but I've not found it. I think this is an stupid question from a non programmer like me :)) I've never had this problem before because always I've written EA with only one position at the same
Is possible get the order open and close date?? In documentation section I only see oreder open and close time. I need order open date in format: yyyy.mm.dd or similar. Thanks
Hi!! I'm looking for something to get a sumary report in points by symbol. I'm found this on code base but I can´t choose an specific period of time. Any suggestion to change this code?? Sumarey report in points from codebase: 'Summary Report In
I use this code into start() loop and I get "Trade not allowed" every time. Any suggestion? bool trade = IsTradeAllowed () ; if ( ! trade ){ Print ( " Trade not allowed " ) ; }
Hi!! I have some questions about optimization process. This is my case, I have to optimize two parameters: Period: 1 unit steps Sensibility: 0.001 steps. Currently I run optimization test for the two parameters at the same time in this way: Period
Hi!! One more time I'm here to learn from you ;) I've writen a loop to manage profit. I want to close all open orders from all pairs open by an EA if equity is more or less than a percent of balance......but dosen't work. The loop is into the EA
Well, my simple question is the next: My EA use only open and close price, so is goog use the strategy tester in Open price only ? Use this mode of Strategy Tester is pretty faster
Hi!! Maybe you can help me. I'm writting my own EA. All seems ok in backtest but when I run it in forward I get some errors because of requotes. Curiously I've got this errors 3 times and the 3 times has been on GBPUSD (I'm testing the EA in 20
When I attach this code to a chart I get this messages: Uninit reason 1 Uninit reason 5 What does mean that? The code is only my learning lessons, I think ths code can be a good template, but that error messages........I don't know why. Bellow the
Hi!! I've been trying code a RSI protect. Something like this logic: if RSI>90 and orderType=buy and orderprofit>=x pips, move SL to +x pips. This has to be easy to code but I'm newbie and I can't get the code I want. any help
Hi!! I've developed my first EA. The EA send pending orders at a determinated level, my problem is that the EA send a order every time that the price hit the level. I want to send only 1 buy and one sell order per sesion. Trading hours is including