Issue with Signals

Questions about MultiCharts and user contributed studies.
pschriber2
Posts: 36
Joined: 24 Apr 2012
Has thanked: 6 times
Been thanked: 2 times

Issue with Signals

Postby pschriber2 » 02 Feb 2013

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.

User avatar
TJ
Posts: 6584
Joined: 29 Aug 2006
Location: Global Citizen
Has thanked: 970 times
Been thanked: 1907 times

Re: Issue with Signals

Postby TJ » 02 Feb 2013

pschriber2 wrote: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.

Who is your broker?
Please post your codes and screenshot.



How to post codes

pschriber2
Posts: 36
Joined: 24 Apr 2012
Has thanked: 6 times
Been thanked: 2 times

Re: Issue with Signals

Postby pschriber2 » 02 Feb 2013

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

User avatar
Andrew MultiCharts
Posts: 1587
Joined: 11 Oct 2011
Has thanked: 931 times
Been thanked: 557 times

Re: Issue with Signals

Postby Andrew MultiCharts » 04 Feb 2013

Hello Pschriber2,

The only correct way to do this is by 1 reverse order, not exit and then enter opposite direction position.


Return to “MultiCharts”