viewtopic.php?t=10811
post 6), but where to put the SetExitOnClose in the signal?
where to put SetExitOnClose in the signal code?
-
- Posts: 91
- Joined: 10 Dec 2010
- Has thanked: 2 times
- Been thanked: 1 time
- TJ
- Posts: 7743
- Joined: 29 Aug 2006
- Location: Global Citizen
- Has thanked: 1033 times
- Been thanked: 2222 times
Re: where to put SetExitOnClose in the signal code?
viewtopic.php?t=10811
post 6), but where to put the SetExitOnClose in the signal?
Have you read the RED colored highlights in the post?
-
- Posts: 91
- Joined: 10 Dec 2010
- Has thanked: 2 times
- Been thanked: 1 time
Re: where to put SetExitOnClose in the signal code?
you mean this?viewtopic.php?t=10811
post 6), but where to put the SetExitOnClose in the signal?
Have you read the RED colored highlights in the post?
Note
When automating a strategy, you will not want to use SetExitOnClose as a way to make sure that all of your positions are closed prior to the regular session end time. To do this, you will need to generate a closing order prior to the last bar in the chart.
ie. SetExitOnClose is for backtest only, not for real trades.
- TJ
- Posts: 7743
- Joined: 29 Aug 2006
- Location: Global Citizen
- Has thanked: 1033 times
- Been thanked: 2222 times
Re: where to put SetExitOnClose in the signal code?
Correct.you mean this?Have you read the RED colored highlights in the post?viewtopic.php?t=10811
post 6), but where to put the SetExitOnClose in the signal?
Note
When automating a strategy, you will not want to use SetExitOnClose as a way to make sure that all of your positions are closed prior to the regular session end time. To do this, you will need to generate a closing order prior to the last bar in the chart.
ie. SetExitOnClose is for backtest only, not for real trades.