Forum

doesnt show anything in [CalendarValueHistory]

When i try this code to get the number of events; It doesnt give any results in strategy tester but it works in real data. Why doesnt it give any data in the backtest? How can i fix my code? Thanks void OnTick () { datetime start_of_day = iTime ( _Symbol , PERIOD_D1 , 0 ); datetime end_of_day =

backtest shows swap for islamic (swap-free) accounts

Hi guys, I have my own EA to test it in my broker. While testing, it shows swap fee but it wasnt showing before. It happened after updating mt5. How can i fix it? Is there any idea

I send Slippage 0 but my broker results my position with big slippage

Hi, MqlTradeRequest request; MqlTradeResult result; ZeroMemory (request); ZeroMemory (result); request.action = TRADE_ACTION_DEAL ; request.type = ORDER_TYPE_BUY ; request.symbol = _Symbol ; request.volume = NormalizeDouble (buy_volume, _Digits ); double price = SymbolInfoDouble (