dakr2019 / Publications
Forum
Tick data has no values for last and volume
Hi, Just downloaded tick data using MT5 (Ctrl U) on a few pairs. The tick data only contains date, time, bid and ask values. No data for last price and volume. Can someone please enlighten me why last price is not given? Thanks
Forex options and futures
Hi, Can someone suggest a broker that allows trading of forex options and futures, and where can I source some historical data? My broker is Pepperstone and they don't seem to have forex derivatives
Modifying filled order
Hi, I can't seem to be able to modify an order. Example below. Put in a pending Buy Limit order Buy order is filled Next I want to modify the TP/SL based on more recent price movement using OrderModify but this didn't work. Am I allowed to use OrderModify on filled orders with open positions? I
Strategy tester and trading history
Is there an easy way to get the trading history (buy, sell prices, volum) at the end of strategy tester run? I browsed around the forum and the solution seems to be to write to a text file in the EA. Is there a built in functionality or easier way? Thanks
Order fill time in MQL5
I'm getting a bit frustrated on how to get order fill time in MQL5. Used the following just to get the information from the last order. HistorySelect ( 0 , TimeCurrent ()); ulong first_order,last_order,orders= HistoryOrdersTotal (); last_order= HistoryOrderGetTicket ( 0 ); datetime ordertimedone =
Newbie question what is Buy Limit
Hi, I have been experimenting with using OrderSend and the CTrade class to submit orders. As an example I want to submit a buy order at a specific price regardless which direction the price is moving. When I tested the Buy method it doesn't always observe the price specified in the order and can use
Event handling for bar completion
Hi, Is there a way to execute some code immediately upon completion of a bar? I'm currently using OnTick but this means that the price would have already changed since the completion of the last bar. I want to trigger an event as soon as the closing price is recorded for the last bar, i.e. before
Downloaded data doesn't match compared to code debugging
Hi, I'm finding that the data downloaded from MT5 doesn't match when stepping through during debugging. Example below. Data downloaded from MT5 as follows: Ctrl U > Bars > EURUSD M1 > date range 03 Apr 2019 to 5 Apr 2091 Code I have as follows: int lastbarcount= 0 ; void OnTick () { if ( Bars (