ammer.jens / Publications
Forum
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;
Timing issue with virtual and market SL
Hello! I have an EA which uses virtual SL (stop loss checked via code) to partially close positon when price drops and market SL (stop loss send with buy order). I set the market SL equal to the last virtual SL. I trade physical stocks (not CFDs) but my broker still allows sell orders (borrowing the
Ticket is not updated in Trade Window in the Strategy Tester
Good moring! The first Buy with Lot 250 is closed completely. Then there are two further Buys with Lot sizes 309 and 131 (309+131=440). My Account is non-hedging so buys are added/summed up. The last Buy receives ticket number 9. In the Trade window the open Position shows Lot=440 which is as