close path bar for same order ?
-

Here there are several buys and several sells on the same path, I tried to close the path after the first buy or sale. but It did not work
Is there a way before opening a new deal, checking the previous deal, if the new deal is the same as the old one, bypasses.
And if the matter is different, it opens in reverse؟ -
@khalids222 what do you mean? A sell should be filled by a buy and then a sell again?
In that case you might use the switch ON/OFF trick discussed in a different thread here recently. -
@trader-philipps
I tried to use it but it didn't work, i dont know why.
As you can see in the same path there is more than a buys and sells order.
There is an unknown error -
@khalids222 Because you didn't understand how to use the switch ON blocks are meant to work.
You switch Buy path after a Buy trade was opened only on again, if the Sell condition is met. Like this the next Buy will take place only after at least 1 time a Sell condition was in place.
If you really want Buy / Sell / Buy sequence, than do the foloowig:
- Delete the control path.
- On Buy path place after Switch Off Buy Path a Switch On Sell Path block
- On Sell path place after Switch Off Sell Path a Switch On Buy Path block
I introduced the Control path to have conditions for Each direction to be checked regardless of if an opposite order was triggered (remember the MACD example for continuation trades).
-
@trader-philipps
yes, Thank you very much for your cooperation, it is working well now
