buy on every condition
-
hi friends im confused here iv tried everything i want to open buy order everytime meets condition but its opening only 1 trade each time i cant open another untill closing it so how to open 1 trade on every condition and open again without closing the old 1 please help thanks

-
example: i want to open sell orders everytime macd cross but not to close the first one i will close both down in other condition

-
@barko hi! Put "once per bar" after your condition and delete "no trade"
-
hi i tried that its opening the trade next bar and it opened too many trades but the next trade distance that i want to open is far away it should be next condition cross
-
here it is once per bar.. too many orders i need 1 order per condition i also tried counter filter its limiting the orders in 1 condition and ignoring the next conditions

-
Can you please share your whole project to solve the problem?
-
0_1567362282229_ashi.ex4
here it is -
once per bar is doing fine for macd but not for heiken ashi
-
Don't use a custom Heiken Ashi. You can use the one on fxDreema. Additionally, I recommend you this thread.
-
@l-andorrà thanks i solved it but on sell only condition its working fine selling once only when bear condition but the same way buy only not working its setting buy order on all bars when its bull condition i think the problem exists in the coding i tried to delete everything and start over to avoid repeating the problem but its still there i wont give up i'll try again thanks for the tips and advice
