BarsSinceExit / BarsSinceEntry bug ?

Questions about MultiCharts and user contributed studies.
User avatar
danilo
Posts: 170
Joined: 02 Jan 2007
Location: Italy
Has thanked: 4 times
Been thanked: 9 times

BarsSinceExit / BarsSinceEntry bug ?

Postby danilo » 20 Oct 2008

In the new beta the keywords: BarsSinceExit & BarsSinceEntry it seems that doesn't work when tested on an intraday strategy, could you check ?

Regards,
Danilo

SUPER
Posts: 646
Joined: 03 Mar 2007
Has thanked: 106 times
Been thanked: 84 times

Postby SUPER » 21 Oct 2008

danilo,

They are working on my end, I have not see this probelm in earlier versions as I use both functions in my strategy.

I am using Beta 4 version 3 at present.

Try and see if following statement in your code generates anything?

Print(barssinceentry, barssinceexit(1));

Regards
Super

User avatar
Marina Pashkova
Posts: 2758
Joined: 27 Jul 2007

Re: BarsSinceExit / BarsSinceEntry bug ?

Postby Marina Pashkova » 21 Oct 2008

In the new beta the keywords: BarsSinceExit & BarsSinceEntry it seems that doesn't work when tested on an intraday strategy, could you check ?

Regards,
Danilo
Hi Danilo,

Could you please send an example of when the above doesn't work?

1. What is the symbol resolution?
2. Does the signal reference any data series other than Data1?
3. Are you talking about the results on history, real-time or in auto trading? If it's auto trading, is it in the synchronous or asynchronous mode?

Thank you!

User avatar
danilo
Posts: 170
Joined: 02 Jan 2007
Location: Italy
Has thanked: 4 times
Been thanked: 9 times

Postby danilo » 21 Oct 2008

Marina,

The problem has been solved, I was checking a long series of Buy/Sell deals opened at the close of a bar and reversed at the close of the bar next, in this way the value of BarsSinceEntry was always zero, but it's okay, I will use the keyword TotalTrades to help me to put a cap on the max number of daily trades.

Regards,
Danilo


Return to “MultiCharts”