Forum

Dukascopy historical data for mt5?

Hi I was wondering if Dukascopy historical data works for mt5 and is it for every tick based on real ticks? Also if so what are the steps to download these bars and ticks? I tried tickstory but it was missing custom timeframes To download the ticks do I download "Candlestick: 1 Tick" ? and to

MT5 Backtest Different Brokers Different Results

Hi I have backtested my EA strategy on mt5 with different brokers and have obtained much different results for example profit will be 6000 on one broker, and with the other profit is 12000. I have used real ticks based on real ticks, and the tick quality is 100% on both, how can I get the most

Mt5 backtest history quality 0%

Does anyone know which brokers has the best data to backtest on in mt5? I am getting 0% for earlier years with a current broker thanks for the help

OrdersTotal() function not getting open orders on startup

Hi the OrdersTotal() function is not getting open orders on startup. I am trying to check for open orders in case of a lost internet connection or restart of the EA due to power issues. But the code below is returning 0 for open orders... int OnInit () { int totalOrders = OrdersTotal ();

resolved by self

resolved by self

Change MACD to all EMAs in MQL5

Hi does anyone know how to change the moving average types for the default built in MACD in mql5 to all EMAs, I am having difficulty changing it, thank you in advance

Custom MACD Histogram Not Accurate Needing One More Decimal Place: mql4

I have created a MACD histogram but it is only showing 4 decimal places such as 0.0013 and I would like 0.00130 so one more place or more. I have tried to use NormalizeDouble but no change... Does anyone know how to add a decimal place to get more accurate readings? Regards. double currentMACDLine=

MT4 Get sma price of candle open

Can anyone tell me how to get the sma price at candle open only, and I don't want the value to change. For example a new candle has opened and I have an sma20, I want to get the value of the sma20 at open only and not after it changes, not the normal sma20 price but only at candle open. Regards