Forum

Select Deal (by ticket) in MQL5

Is it possible to select a deal by ticket in MQL5 using CDeal? Documentation: Ticket (Get method) Gets the deal ticket. ulong Ticket () const Return Value Deal ticket. Ticket (Set method) Select the position for further work. void Ticket ( ulong ticket // ticket ) Parameters ticket

Plots vs. Buffers

It may seem like a silly question but I haven't actually seen any explanation of this anywhere - what is the difference between an indicator plot and an indicator buffer in MQL5

Low Quality Broker Data on MT5

There are dozens of topics on this forum related to MT5 native historical data vs MT4 external imported data, but I think that this issue is a bit more specific to longer term backtesting and therefore warrants it's own thread; If you develop strategies for lower timeframes and are only looking to

Can Identical Settings Provide Different Backtesting Results?

Assuming that the backtesting is done at a fixed spread, from date X to date Y, with tick data, and that the platform is not connected to the internet from the start to the end of the tests (to avoid the quote currency exchange rate differential at different points of the test), is there any reason

Open Prices Only Effect on Active SL & TP

There have been similar topics discussed on here but I haven't seen one where this specific question has been fully answered. When using the open prices only method in the strategy tester , if a stop loss and take profit were set on the previous bar, and the market trades at or below the stop loss

P/L Appears To Be Incorrect

This trade incurred a loss of 1 pip on a 1 lot. The loss should therefore equal -10.00 (the spread) , however the loss appears as -7.56 in Account History. There are no commission, tax or swap charges on the trade, so how is it possible for the loss to equal this amount? Order Time Type Size Symbol

EA Not Working in Strategy Tester

I am using the Strategy Tester for the first time and just wanted to test a basic EA to get a feel for the function, but am having some trouble in getting my EA to actually work on there. I have downloaded the required data from the History Centre and have used the Strategy Tester to test the

Must every individual object on the chart have its own unique name?

I want my EA to print arrows on the chart to indicate where a trade was opened/closed. Is there anyway that we can draw multiple of the same object at different points in the chart? For example I might want to create an arrow on the current bar: Created = ObjectCreate ( ChartID (), "Sell_Arrow"

Adding Stop Loss to Open Trade

If a trade has been opened without a stop loss , but later on the necessity to add a stop to the open trade arises, what is the best way to deal with this situation? Is it to use OrderModify: OrderModify (Ticket,Open_Price,Stop_Loss, 0 , 0 , clrNONE ); and if so, how will the program know if the

Cannot Open File - iCustom Error

I am trying to return a value from an indicator buffer via iCustom, but I keep getting the error 'cannot open file': '2018.09.17 11:09:53.368 cannot open file 'C:\Users\ryanw\AppData\Roaming\MetaQuotes\Terminal\1DAFD9A7C67DC84FE37EAA1FC1E5CF75\MQL4\indicators\ADX & ADXR.ex4' [2]' I have declared the