Forum

Discrepancy in Strategy Tester Spread for EURUSD on M1

Hello, I have just noticed a discrepancy in the Strategy Tester when examining the spread for EURUSD on the M1 timeframe. In the chart, I have both the Bid and Ask lines displayed. I also have the Market Watch window and the Data Window open. Here’s the

Need Help with Forex Trading Times and Spread Variations

Hi everyone, I've been struggling a bit with understanding the Forex trading times and spread variations, and I'm hoping some of you experts can help me out. My broker's website states that "server time and charts are GMT + 2 or GMT + 3 (when daylight savings is in effect)." The broker also

Inquiry on Executing Buy Limit and Buy Stop Orders at a Specific Maximum Price

Hello, I trade trends. In this case, I trade out of the correction phase, but only when the price has already moved somewhat in the direction of the trend. Let’s say the correction phase of an uptrend is over and the price is already rising again and is currently at 1.0700 in EURUSD . Now I want to

MT5 time filter for chart and strategy tester

Hello, I trade the SP500 and NASDAQ100 with Futures. However, I only want to trade during the regular exchange opening times . Using code to restrict the EA to these times is implemented but I am wondering whether it is possible to configure the chart itself to only show bars during the regular

Display Heiken Ashi Candles Higher Timeframe On Main Chart

Hi, I searched through the entire forum and used google to find an example of an indicator that displays Heiken Ashi candles from higher timeframes onto the current main window of the chart. For example, I use the MQL5 standard Heiken_Ashi.ex5 indicator on the M1 timeframe to display the bars. Now

Wait/Pause code until limit order becomes open position

Hello, I use limit orders. Since it might take some time for these orders to get filled and become an open position, I want to wait/pause code until the limit order has been filled and becomes an open position to then collect the open price and open time etc. for this position. #include

Tester: cannot add tick event (events' array size is 35782656)

Hello, sometimes the strategy tester stops short before completing the backtest. Then, after a couple of minutes it throws the following error: CS 2 11 : 43 : 38.525 Tester cannot add tick event (events' array size is 35782656 ) CS 0 11 : 43 : 38.589 Tester DIS,Daily

Historical Data do not match the ones received in Strategy Tester

Hello, the screenshot shows historical data (right hand side) for Disney Stock exported from MT5. For the date 08.11.2016 17:17:00 - 17:17:59 there are a lot of ticks (BID,ASK,LAST) available. If you compare it to the print out of the Strategy Tester (left hand side) one sees that only some of the

APR, APY and annualized return

Hello, I am slightly confused regarding the APR, APY and the annualized return based on an exact number of days. Assuming a starting balance of 10.000 USD after 1500 days (approx. 4.1 years) the balance increased to 35.000 USD. This is an increase of 250%. I calculate the exact (based on 1500 days)

OrderCheck() returns nothing in Strategy Tester

Hello, I want to check on margin before opening a trade and was thus using the OrderCheck() function as follows but it always returns zero for all values? Is this function not working in Strategy Tester ? MqlTradeRequest TradeRequest; MqlTradeCheckResult TradeCheckResult;