So I have developed a strategy that takes both long and short positions.
The issue I am having is that when a bar indicates that the market position should be switched from either a short to a long, or a long to a short on the next bar at market, it will close the current position out (cover short or sell) on the correct tick, but will wait an additional tick to take the new position.
I'm fairly new with all of this signal stuff, so any help will be appreciated.
Issue with Signals
-
- Posts: 36
- Joined: 24 Apr 2012
- Has thanked: 6 times
- Been thanked: 2 times
- TJ
- Posts: 7743
- Joined: 29 Aug 2006
- Location: Global Citizen
- Has thanked: 1033 times
- Been thanked: 2223 times
Re: Issue with Signals
Who is your broker?So I have developed a strategy that takes both long and short positions.
The issue I am having is that when a bar indicates that the market position should be switched from either a short to a long, or a long to a short on the next bar at market, it will close the current position out (cover short or sell) on the correct tick, but will wait an additional tick to take the new position.
I'm fairly new with all of this signal stuff, so any help will be appreciated.
Please post your codes and screenshot.
How to post codes
-
- Posts: 36
- Joined: 24 Apr 2012
- Has thanked: 6 times
- Been thanked: 2 times
Re: Issue with Signals
Thanks for the response TJ.
My code is quite long (30 functions with over 3000 lines) and complex.
But it works fine when use as an indicator.
I'm using TS as my data feed, only testing right now
My code is quite long (30 functions with over 3000 lines) and complex.
But it works fine when use as an indicator.
I'm using TS as my data feed, only testing right now
- Andrew MultiCharts
- Posts: 1587
- Joined: 11 Oct 2011
- Has thanked: 931 times
- Been thanked: 559 times
Re: Issue with Signals
Hello Pschriber2,
The only correct way to do this is by 1 reverse order, not exit and then enter opposite direction position.
The only correct way to do this is by 1 reverse order, not exit and then enter opposite direction position.