Good day! I can't figure out the 'BarsSince' function - function is not defined C:\FXstart\Documents\experts\other.mq4 (72, 96) I do not fully understand how to write it, it is in the editor of Metatradera remains in black letters and so barssince, I found it on google on the question (how to remember the bar), it turns out that the function memorizes the bar under certain conditions, gives a value for how many bars passed from sabitiyi, let's say the intersection of one midway another, mentioned a dozen forums, and in Help find it ne magu!
I am stupid, it is a mystery. I am still thinking on my own.
There's no need to think about it - it's not a function.
I am a newbie! Can you help me understand why the Combo_Right EA is not optimised? I did everything as prescribed on http://bigfx.ru/node/590
I have added all of the values pass, start, step, stop and all the checkboxes are correct, but when I put a tick in the "optimization" checkbox and press start, no matter how many times I run the script, no results.
I'm sorry, I don't see any results in my tester log, but it should!!! int start() {double New_Time; //---- for ( int i = 0; i ==30; i ++ ){New_Time = Time[i];Alert("New_Time",New_Time);Print ("New_Time",New_Time);} //---- return(0); }
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
Good day! I can't figure out the 'BarsSince' function - function is not defined C:\FXstart\Documents\experts\other.mq4 (72, 96)
I do not fully understand how to write it, it is in the editor of Metatradera remains in black letters and so barssince, I found it on google on the question (how to remember the bar), it turns out that the function memorizes the bar under certain conditions, gives a value for how many bars passed from sabitiyi, let's say the intersection of one midway another, mentioned a dozen forums, and in Help find it ne magu!
I am stupid, it is a mystery. I am still thinking on my own.
There's no need to think about it - it's not a function.
P.S. See similar ones in the help...via F1.
What is this function?
I think the first thing to do was to ask what the function is ;)
https://book.mql4.com/ru/basics/functions
https://ru.wikipedia.org/wiki/Функция_(programming)
You'd find out why.
it stays in black letters in the Metatrader editor
But it's not mql4, and I didn't get it right away! I have a low fever, like 37.3, a little bit of a condition.
I am a newbie! Can you help me understand why the Combo_Right EA is not optimised? I did everything as prescribed on http://bigfx.ru/node/590
I have added all of the values pass, start, step, stop and all the checkboxes are correct, but when I put a tick in the "optimization" checkbox and press start, no matter how many times I run the script, no results.
What needs to be fixed?
{double New_Time;
//----
for ( int i = 0; i ==30; i ++ ){New_Time = Time[i];Alert("New_Time",New_Time);Print ("New_Time",New_Time);}
//----
return(0);
}