[Archive!] Any rookie question, so as not to clutter up the forum. Professionals, don't pass it by. Couldn't go anywhere without you - 2. - page 51

You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Please advise! When optimising an EA, the output is 195/1280(45872). I understand the number in brackets is the number of possible variants, 1280 is the number of runs. Why are there not 45872 but 1280 runs? How to run all variants?
I'm trying to run the EA in the tester and it says "2 parameter for SetIndexBuffer function must be array". And I don't have SetIndexBuffer function in my EA itself, there is only iCustom function of indicator call where this function is registered. Please advise what may be the problem? I didn't find the answer on the Internet...
Hello!
I'm trying to run in the tester an Expert Advisor, and it says "2 parameter for SetIndexBuffer function must be array". And I don't have SetIndexBuffer function in my EA itself, there's only iCustom function calling the indicator in which this function is prescribed.
the problem is in the indicator being called.
open it and look in the init() function
the second parameter in SetIndexBuffer is probably not an array.
I couldn't find the answer on the Internet...
:))) Why look there? Look in the code :))
PS.
Cornet, you're a woman, aren't you?
As far as I understand, everything is arrayed in init:
int init()
{
//---- indicators
SetIndexStyle(0, DRAW_ARROW);
SetIndexStyle(1, DRAW_ARROW);
SetIndexStyle(2, DRAW_LINE);
SetIndexStyle(3, DRAW_NONE);
SetIndexBuffer(4, DRAW_NONE);
SetIndexBuffer(5, DRAW_NONE);
SetIndexBuffer(6, DRAW_NONE);
SetIndexBuffer(7, DRAW_NONE);
SetIndexBuffer(0, bullishDivergence);
SetIndexEmptyValue(0, EMPTY_VALUE);
SetIndexBuffer(1, bullishDivergence);
SetIndexEmptyValue(1, EMPTY_VALUE);
SetIndexBuffer(2, Buf1);
SetIndexBuffer(3, Buf2);
SetIndexBuffer(4, priceh);
SetIndexBuffer(5, pricel);
SetIndexBuffer(6, previoushighbuffer);
SetIndexBuffer(7, previouslowbuffer);
//----
SetIndexArrow(0, 233);
SetIndexArrow(1, 234);
//----
indicatorName = "best div original";
IndicatorDigits(Digits + 2);
IndicatorShortName(indicatorName);
return(0);
}
Good afternoon everyone!
Does anybody know how to make 3 identical EAs located in different directories,
produce a single text file (let's say proba.txt) located in a specified directory (let's say Descktop )
What command (and what parameters should be used) to do it in MQL ? FileOpen() - ?
As far as I understand, everything is arrayed in init:
here are the errors
SetIndexBuffer(4, DRAW_NONE);
SetIndexBuffer(5, DRAW_NONE);SetIndexBuffer(6, DRAW_NONE);
SetIndexBuffer(7, DRAW_NONE);
Hi all!
Does anyone know how to make 3 identical EAs located in different directories,
I want to output the information into one text file (let's say proba.txt ) located in the specified directory (let's say Descktop )
What command (and what parameters) can do it from MQL ? FileOpen() - ?
only WinAPI - https://www.mql5.com/ru/articles/1540
here are errors
SetIndexBuffer(4, DRAW_NONE);
SetIndexBuffer(5, DRAW_NONE);SetIndexBuffer(6, DRAW_NONE);
SetIndexBuffer(7, DRAW_NONE);
Sorry for possibly stupid question - what should I put in place of Draw_None if I don't need something to be drawn from these buffers? Or can I just delete these 4 lines?
Sorry for possibly stupid question - what should I write instead of Draw_None if I don't need something to draw from these buffers? Or can I just delete these 4 lines?
The above functions are written correctly.
SetIndexStyle