Download software Tutorial videos
Subscription & data-feed pricing Class schedule


New account application Trading resources
Margin rates Stock & option commissions

Attention: Discussion forums are read-only for extended maintenance until further notice.
Welcome Guest, please sign in to participate in a discussion. Search | Active Topics |

define the block "convert fraction to negative" please Rate this Topic:
Previous Topic · Next Topic Watch this topic · Print this topic ·
STRATEGY11
Posted : Monday, September 15, 2008 2:41:08 PM
Registered User
Joined: 4/21/2008
Posts: 81
I'd like to plot the TRIN index (e.g. ARMS index) on an intraday plot.  But I think the TRIN-X ticker is an end-of-day indicator.  It may be possible to create my own version of the TRIN-X on the intraday plot, not just for the NYSE stocks (i.e. TRIN-X) but for any watchlist, by creating a separate indicator as a ratio of Advance Decline Ratio to Advance Decline Volume (both available as indicators).  From the Advance Decline Ratio flow diagram, there is a block called "convert fraction to negative".  But the Knowledge Base does not currently have a definition for it.  May I know the formula?
Bruce_L
Posted : Monday, September 15, 2008 3:14:48 PM


Worden Trainer

Joined: 10/7/2004
Posts: 65,138
If the Input value is above 0 and below 1, the formula would appear to be -(1/Input), but values that are at or below 0 or at or above 1 are unchanged.

-Bruce
Personal Criteria Formulas
TC2000 Support Articles
STRATEGY11
Posted : Monday, September 15, 2008 3:24:04 PM
Registered User
Joined: 4/21/2008
Posts: 81

Got it. Thanks!

Bruce_L
Posted : Monday, September 15, 2008 3:26:00 PM


Worden Trainer

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

-Bruce
Personal Criteria Formulas
TC2000 Support Articles
STRATEGY11
Posted : Monday, September 15, 2008 4:47:35 PM
Registered User
Joined: 4/21/2008
Posts: 81

Bruce_L,

I went back a couple of weeks and found a thread from a member inquiring about the same thing I am attempting to create on my own, i.e.  the $TICK or $TRIN for intraday / real time.  Here are the threads:

http://www.worden.com/training/default.aspx?g=posts&t=32355
http://www.worden.com/training/default.aspx?g=posts&t=32609

While StockGuy is finding out, could you help us create the $TRIN indicator using what we have? 

Here's the formula: TRIN = (A / D) / (AV / DV)

where A=# advancing issues, D=#declining issues, AD=advancing volume, DV=declining volume.

As I try to write the RealCode from scratch to calculate A and D, I hit a wall when I tried to reference the daily prices on an intraday chart.  (I'm not a programmer as you can see.)
Next challenge I face is how would I keep a count of advancing issues and decling issues throughout the day as an indicator.
If someone could help me resolve those two issues, it would help me in plot the $TRIN intraday.

Bruce_L
Posted : Tuesday, September 16, 2008 1:46:52 PM


Worden Trainer

Joined: 10/7/2004
Posts: 65,138
I'm not a programmer either. I've created a method for calculating the Arms Index (TRIN) intraday for the Active Watchlist, but it is incredibly slow and resource intensive for even the Nasdaq 100 on my computer.

Select Share | Charts.
Type STRATEGY11-35605 and select Search.
Select the STRATEGY11-35605 Chart.
Select Open.

Using the NYSE or something similar would probably only make things worse.

-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.