INFINITY TRADES
-
Hi,
I have a problem because (for example) when i have the signal for buy, program buy with tp and sl but if the trade take tp or sl the scrpit open another trade. The same for the short trade.
I dont know how i can fix this, I need to when there is a signal the script can recive signal once time of condition true. Condition not true, the signal line refresh.
Someone can help me?
Thanks.
I attach link of the project.
-
@xx_xabe I'm not sure I fully understand your problem. How many open trades do you want at the same time. I see you are using a 'no trade' block on top of your structure. That will limit it to one at a time. Is that the problem?
-
@l-andorrà said in INFINITY TRADES:
I'm not sure I fully understand your problem. How many open trades do you want at the same time. I see you are using a 'no trade' block on top of your structure. That will limit it to one at a time. Is that the problem?
One operation open at the same time only.
the problem is that :I assume that there is a signal to buy, ok! Ea enters the trade, if it takes stop loss or take profit and the signal is still valid enter again. I would like for each signal to be able to make only one trade.
At the moment, on the other hand, I find that after a tp or a sl orders are continuously opened.
-
far from a tutorial...
-
@xx_xabe You definitely need a variable to do that. You can choose a bool one so that when the condition is true for the first time your trade is open and then the variable is changed into false. That way there will not be a new trade until the condition is true again.
-
-
@l-andorrà
what would you change of the script that I have attached to you to solve the problem? -
@xx_xabe I see one only condition is selected in the last project link. Should it be the one to be used BEFORE another one is triggering the trade later?