Hi All, I've searched everywhere for the answer to how to draw a MA on a newly opened chart . The chart opens as expected, but no MA. Here is the code, but I'm missing something somewhere. void OnStart () { long _longchart = ChartOpen (
Hi, I'm trying to find how much margin is required to open a buy a standard lot of different forex pairs/share CFDs/ etc.in MQL5. I think I might be heading in the right direction, but there's a good chance I'm miles out. Anyhow ...... I have trolled
Hi All, I hope somebody out there can help me. I want to add the date and time to my csv file handle, so that my filename will be something like 2022.12.08 10:40 Result.csv If I do this:- string _filename=TimeToStr( TimeLocal (), TIME_DATE |
Hi All, I want to add the contents of an array to a csv file, but I want to append each value to the end on the current line, not to the next line. Here is the code which works perfectly, except for the positioning of the output in the CSV file
Hi all, The MT4 code below presents allows me to set the time frame for the current chart by way of a drop down list. Unfortunately, it doesn't work with MT5. Would somebody please point me in the right direction. regards .... enum
Hi All, I've searched all over the forum, but I can't find a way around my problem, which is to prevent my EA from continuing to trade between two times. I can do this between two hours (Hour()), but when it comes to times that include minutes, I get
Hi All, hope you can help me. I have found that if my terminal is shut down by way of power crash or accidental click on the terminal x button, the EA that I was running at the time continues to run when I reopen the terminal, probably due to the
Hi all ... It's easy enough to create a horizontal line, but I would like to add the ability to drag and drop the line into a new position on the chart and return it's position. I'm wish to use the returned value as a stop loss value . Any ideas
Hi All, Having a little (ok, a lot) of trouble with iTime functions . I'm trying to determine the closing price of a bar that opened at a particular server time today . I assume I need to get the shift to the bar, and than query the closing price. My
Hi all .... I'm absolutely hopeless when it comes to arrays, sort of a brain freeze, so I hope to get some help here. To really simplify, I am trying to add an orders ticket number to an array whenever a new order is opened. For example, the first