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
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
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
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
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
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
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
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
I am trying to display two versions of a custom indicator (with differing lookback periods), on the same chart, but when I try to change the indicator width or line style in the indicator properties box, it just disapears off of the chart after
When we pass parameters into a user-defined function , we change the name of the variables being passed, but the values that the variable holds are obviously retained in the function. Why do we change the name of the variables when inside the UDF
I have written a few basic programs which work but are no doubt far from as efficient as they could be. I would like someone who has been around for a bit longer than I to critique and suggest possible improvements. Is there anywhere on this site
double DR[ 260 ]; for (j= 1 ; j<= 259 ; j++) { DR[j]= Close [j]- Open [j]; Sum=Sum+DR[j]; Count++; } In the above code, to the best of my knowledge, the loop should run for 259
This forum is a fantastic resource for programmers of all levels, from beginners looking to plug the gaps in their understanding to the adept who may still require help themselves from time to time. Unfortunately, there seems to be a lingering