Welcome Guest, please sign in to participate in a discussion. Search | Active Topics |

TSV in Realcode Rate this Topic:
Previous Topic · Next Topic Watch this topic · Print this topic ·
ChristHarbor
Posted : Wednesday, October 13, 2010 4:26:51 PM
Registered User
Joined: 1/2/2005
Posts: 6
 I am having trouble getting TSV to work in RealCode. The following will not plot: '# TSV = indicator.Library.Time Segmented Volume (TSV) Plot = System.Math.Sign(TSV.AVG(10) - TSV.AVG(30)) Any help?
Bruce_L
Posted : Wednesday, October 13, 2010 4:39:35 PM


Worden Trainer

Joined: 10/7/2004
Posts: 65,138
I'm not sure why your Realcode doesn't Plot, but the problem doesn't appear to be TSV as the following Plots just fine:

'# TSV = indicator.Library.Time Segmented Volume (TSV)
Plot = (TSV.AVG(10) - TSV.AVG(30))

A form that seems to get around whatever issue might be causing this is:

'# TSV = indicator.Library.Time Segmented Volume (TSV)
Dim Sign As Single = (TSV.AVG(10) - TSV.AVG(30))
Sign = Sign / System.Math.Abs(Sign)
Plot = Sign

-Bruce
Personal Criteria Formulas
TC2000 Support Articles
ChristHarbor
Posted : Wednesday, October 13, 2010 5:02:07 PM
Registered User
Joined: 1/2/2005
Posts: 6
OK. Thanks! I'll give this a try.
Bruce_L
Posted : Wednesday, October 13, 2010 5:08:01 PM


Worden Trainer

Joined: 10/7/2004
Posts: 65,138
You're welcome.

-Bruce
Personal Criteria Formulas
TC2000 Support Articles
Users browsing this topic
Guest-1

Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.