Critical Error,array out of range
-
Hello ,i need some help please.
After i put the formula block in my Ea i get this error
Here is an example of a partition of my code:
What i want to do is,to put in Variable TrailStopBuy the value 80% of the Take-Profit.
In the main EA there is not fixed pips on Buy now,i putted here to be more simple.Thank you
-
on Trade things can be used only in "on Trade" section, together with main on Trade blocks ...
-
Thank's @miro1360 ,
So, should i put the code on the trade section or is an other way ,which i can get the pips of take-profit(maybe save it in a variable) and use it.
Also later i use that,to check the profit on pips with some variable
Is that wrong too?I will appreciate your help.
-
use Dark pink blocks because they select trade, when trade is selected, you can work with them (with light pink blocks or in Modify/Condition blocks) ...

here are 3 different dark pink blocks ...
instead of them you can also use block Bucket of trades ...
-
Now i get it. Thank you