Forum

Is there a similar RefreshRates()??

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 the server? Maybe SymbolIsSynchronized or SymbolInfoTick

How limit the number of bars which an indicator??

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 large amount of bars in charts and the terminal

Solution for a stupid question?

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 time. Now I'm writting one EA that open several

How work with requotes?

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 pairs). I've coded a maximum slippage of 10. I get this

Order Open and close date???

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

Account report in points

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 Points'

My Manage equity loop dosen't work

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. Thanks for your help. This is the code: void Manage

IsTradeAllowe()

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 " ) ; }

Best optimization way??

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: Start 1, End 41, Steps: 1 Sensibility: Start 1, End

A simple question about testing with open prices

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