[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 36

 
Now.
 
Dimka-novitsek:

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.

 
Vinin:

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

 
Yes, it's actually a function of a metastack of some kind
 
Yes, thanks for the link to the functions!
 

That's where it's from.

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?

 
In theOptimisation Results tab of the right-click menu, uncheck the "Ignore useless results" box.
 
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);
}
 
I just wanted to see exactly what form the time would take, and whether further bars would be bigger or smaller than the first ones!