hi,
it's possible to to this:
sell next bar at stopLong stop;
sell next bar at takeprofLong limit;
are they both run or only the second?
stop and limit together
- Vlada MultiCharts
- Posts: 293
- Joined: 22 Apr 2020
- Has thanked: 8 times
- Been thanked: 76 times
Re: stop and limit together
Hello turbofib,
According to your code, both orders should be generated. Please check this on the demo account for testing purposes.
According to your code, both orders should be generated. Please check this on the demo account for testing purposes.
Re: stop and limit together
As sell is an exit order, it depends on which one hit first. Once one of the "sell" order is executed, the marketposition will be changed from 1 to 0, and the remaining order will not be executed.