Jam Trades
New member
Hi I'm wondering if it's possible to write a thinkscript to do the following:
Basically I just want to trailstop until my stop is breakeven then convert to a regular stop-loss order.
1) Have a trailstop working order after an order is filled. I would define the trail offset amount.
2) Once the trailstop price reaches my entry/trade price (breakeven) I want to replace the trailstop order with a stop order where the stop=entry.
Another way to do it would be: once trailstop price = entry then the offset should equal MARK - ENTRY.
Any idea on how to accomplish this?
Thanks
Basically I just want to trailstop until my stop is breakeven then convert to a regular stop-loss order.
1) Have a trailstop working order after an order is filled. I would define the trail offset amount.
2) Once the trailstop price reaches my entry/trade price (breakeven) I want to replace the trailstop order with a stop order where the stop=entry.
Another way to do it would be: once trailstop price = entry then the offset should equal MARK - ENTRY.
Any idea on how to accomplish this?
Thanks