It depends. Here is one way to do that:
https://fxdreema.com/shared/zoNMeOEcd
Very similar thing, maybe better:
https://fxdreema.com/shared/z5isE0tG
It depends. Here is one way to do that:
https://fxdreema.com/shared/zoNMeOEcd
Very similar thing, maybe better:
https://fxdreema.com/shared/z5isE0tG
Just put the block to write data to file somewhere where you want to use, even under On Init, because you don't really need it to be filled with data too much. It will put the data in a file somewhere (use the windows search to find it). This seems to be the only way to output some data while optimizing. Otherwise we normally use Print, Alert, Comment, Objects and who knows wtah else. But these things just does not work when optimizing.
This warning is not important.
I'm from Bulgaria
And I need to refresh my memories for Ryan Jones 
You want to mix two MM, am I right?
What should I do with this indicator?
Yes, broker = server, local = your PC
One of the important things is that blocks that are not connected to other blocks will not be included to the final project file. You can just connect those two Formula blocks. But they should be used before this Trailing stop, so maybe is better to put them before it.
I don't like one of those Formula blocks. You are using this (on trade)... stuff, but this is not supposed to be used under "on Tick" at all. And you probably don't need it anyway.
Maybe something like this: https://fxdreema.com/shared/zG9ViAGob
This "break" block is to stop the loop there (when the trade that is loaded is too old), because I set it to loop for 100 history positions.
Using candles is often the easiest way to do something. But if you want to measure the price for 5 minutes after the trade was closed, then something like this: https://fxdreema.com/shared/IkCEYOdve
This is the last thing that I can recommend to someone - to edit the end files. As you can see, there are tons of mess in them, thousands of rows of weird stuff. And if you need to do every time... This is bad idea, really.
What maximum volume? If you want to take this volume, why not just using Ryan Jones. Or if you don't want... then why using it 
Май и ти търсиш под вола теле
Дали не усложняваш нещата излишно, понеже:
Само си добавяш и загуби от спред без никаква причина и трябва да излезеш доста над първата поръчка за да излезе на 0 
Иначе тия функции се използват както са си. Пишеш OrderLots() и на негово място ще се използва стойност, все едно си написал 0.1
The error comes because the "sl" part in this formula that you posted is 0, and "sl" comes from the indicator that is selected in the block. So, it reads that the indicator value is 0. Why... who knows. Or at least this is what I believe.
I tested this and it works on my MT5 - visual mode and optimization.
I can suggest to inspect those indicator values that you use for SL. I think that "Write to file" block can output this information when optimizing.
You can't modify the code of system blocks. You can always make custom blocks or MQL4 functions. But maybe you want to make some calculations before using Buy now/Sell now block
Какво искаш да сметнеш?
Аз бих предложил да ползваш този допълнителния панел отстрани, дето е завъртяното Variables. Лесно се прави променлива, после лесно се ползват атрибутите на поръчките, примерно OrderProfit() ти дава профита. Ето тук ги има и другите http://docs.mql4.com/trading
This error is because SL is 0. Your SL comes from the indicator you use. Is everything ok with this indicator?
After the trade is closed on profit, you want to wait for the price to jump with X pips in 5 minutes and then trade again? Maybe measuring the size of M5 candle can help?
Which project is this?
If only this is needed, I think it you can do it by checking if the price is now above 1.113, and then to check if the Low of some candle (Daily, maybe) is below 1.112, which means that the price was below this level for the last day for sure
Please, get some time and look at the examples. I see where you have placed those "Trailing stop" blocks, which is wrong. This is explained in example 6. And in example 3 the basic events are explained => what this "on Tick" means.
We are talking for the block called "Spread Filter"... I guess...
Then, the block is set to <= 1 pip and it does not create trades when the spread is more than 1 pip. I think I don't get the idea here. If the block is set to pass only when the spead is lower than 1 pip, then when the spread is bigger than 1 pip nothing should happen
I think you want to make this kind of an EA: https://fxdreema.com/shared/GZA2Lhfad
or maybe something like this: https://fxdreema.com/shared/4FLT9feTd
Just look at the examples here: https://fxdreema.com/examples The very first one at the top, to be precise.