ammer.jens
ammer.jens
Friends 1
ammer.jens
Added topic 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
ammer.jens
Added topic 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
ammer.jens
Added topic 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
ammer.jens
Added topic 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
ammer.jens
Added topic 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
ammer.jens
Added topic 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
ammer.jens
Added topic 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
ammer.jens
Added topic 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
ammer.jens
Added topic 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
ammer.jens
Added topic Bid/Ask Price Line on Historical Data in the Strategy Tester
Hi, the two images show historical data from Walt Disney stock (physical stocks, not CFDs). According to the broker, the candlesticks are based on the last price only and include only last prices from the main trading sessions (not pre and after
ammer.jens
Added topic MT5 Tick Data (incl. Volume) compared to Exchange Data --> How reliable is backtesting?
Hello! the first part of the image shows 1-min OHLC and Volume data for BTC/USD downloaded from Binance website. Second part shows Tick Data for BTC downloaded via MT5 itself. Trading is via Crypto Exchanges and not via CFDs. What stands out for the
ammer.jens
Added topic String comparison
Good morning, I compare times 'hh:mm' in an if-clause as follows: if ( "14:35" > "11:00" ) { // ... do something } I tried a various amount of different times and MQL5 seems to compare it correctly. I am just wondering how the comparison is made
ammer.jens
Added topic How to get Error Descriptions of GetLastError() and Example of how to use Return Codes of the Trade Server
Hello, as stated in the Subject is there a way to receive the error descriptions ( https://www.mql5.com/en/docs/constants/errorswarnings/errorcodes ) of GetLastError()? I also would like to use Trade Server Return Codes but I have no idea
ammer.jens
Added topic BID, ASK and LAST price. Which to use best for different siutations
Hi to everybody. I am new to MQL5 and trading. There are two things I am not quite sure if understood correctly: Is it correct for stocks to buy at the ask price and sell at the bid price? I trade via NASDAQ stock exchange. I found different sites on
ammer.jens
Registered at MQL5.community