I have a strategy that is working well and I believe would do much better if I could leg out. Is this possible in a thinkscript strategy?
Example;
I have tried variations of SELL_AUTO and SELL_TO_CLOSE with no luck. I am able to add contracts to the BUY side (Start with 10, add xxx contracts as many times as I want) but I am not able to split the close side. Any assistance would be greatly appreciated
Example;
Code:
### Condition is met - Enter with 10 contracts
OrderType(BUY_TO_OPEN, Condition is true, OPEN[-1], trade size = 10, name = "BUY LONG");
### First take profit level is hit - Close half of the position
OrderType(SELL_TO_CLOSE, Close above profit level # 1 is true, OPEN[-1], trade size = 5, name = "Sell half");
### Second take profit is hit - Close remaining contracts
OrderType(SELL_TO_CLOSE, Close above profit level #2 is true, OPEN[-1], trade size = 5, name "Close Position");
I have tried variations of SELL_AUTO and SELL_TO_CLOSE with no luck. I am able to add contracts to the BUY side (Start with 10, add xxx contracts as many times as I want) but I am not able to split the close side. Any assistance would be greatly appreciated
Last edited by a moderator: