- www.mql5.com
Thanks for your helpful answer, I try running the Expert "LondonBreak" using following code, after running the code, the expert is every time attached to the chart, but the expert is in de-active mode, with a red icon next to the Expert's name on the chart, can you perhaps guess what my mistake is:
void OnStart(void) { MqlParam Params[5]; string sec = "NZDUSD"; int period = PERIOD_H1; Params[0].string_value = "Experts\\LondonBreak.ex5"; Params[1].type = TYPE_DOUBLE; Params[1].double_value = .1; Params[2].integer_value = 400; Params[3].integer_value = 300; Params[4].integer_value = 4; EXPERT::Run(ChartOpen(sec, period), Params); }
Thanks for your helpful answer, I try running the Expert "LondonBreak" using following code, after running the code, the expert is every time attached to the chart, but the expert is in de-active mode, with a red icon next to the Expert's name on the chart, can you perhaps guess what my mistake is:
Unfortunately, I can not check your situation, because I do not have this EA.
Try this before starting the EA.
- www.metatrader5.com
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Hello,
Using MQL5 script, can I open a chart windows of different instruments in MT5 and attach an EA to that chart? The EA has certain INPUT variables that I need to adjust via the script for each window.
Kind regards,