Graham from Brisbane / Publications
Forum
How can I draw a simple moving average on a newly created chart?
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 ( "AUDUSD.a" , 60 ); // Open the chart of interest on the
SymbolInfoMarginRate - I can't understand it
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 these forums and googled until my mouse finger is
Clear the Alert Panel
Hi, Have the developers found a way to clear the popup alert window without restarting the terminal yet? Cheers
How include date and time in a csv file handle
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 | TIME_MINUTES )+ " Result.csv" ; Alert ( "_filetname is "
How write to a CSV from an array, but append each value to the END of the line, NOT the next line
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. #property strict string _sym[] = { "AUDCAD.a"
Drop down list for timeframe
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 ENUM_TIMEFRAME { M1, // One minute M5
Stop Trading Between Times
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 stuck. I just can't get my head around the logic
Ticket number as a GlobalVariable
Hi, I'm not sure if this will work GlobalVariableSet (_ticketshort, OrderSend ( "XAUUSD" , OP_SELL ,PositionVolume, Bid , 0 , 0 , 0 , "" , 0 , 0 , clrNONE )); and later, if ( OrderSelect ( GlobalVariableGet (_ticketshort), SELECT_BY_TICKET )) { etc.. } Can I make the ticket number a GlobalVariable
Switch to Disable Autotrading on Startup
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 incorrect removal proceedure. This nearly always
Drag and Drop function
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? Regards ... G-fer