Hi...newbie here.
Does anyone know of any script I can add to a thinkscript strategy backtest that closes the trade after x amount of bars?
For ex: "After price breaks above 20 day moving average, close trade after 5 bars". Or 3 bars etc...
So I change number of bars to see the strength of a typical breakout per each moveing average breakout or any other strategy. Obviously, the script would replace the "auto buy to close" or auto sel to closel" at the bottom of a TOS strategy. Thanks in advance.
Does anyone know of any script I can add to a thinkscript strategy backtest that closes the trade after x amount of bars?
For ex: "After price breaks above 20 day moving average, close trade after 5 bars". Or 3 bars etc...
So I change number of bars to see the strength of a typical breakout per each moveing average breakout or any other strategy. Obviously, the script would replace the "auto buy to close" or auto sel to closel" at the bottom of a TOS strategy. Thanks in advance.
Last edited by a moderator: