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

Ratio Analysis Rate this Topic:
Previous Topic · Next Topic Watch this topic · Print this topic ·
dhirenshah
Posted : Wednesday, April 12, 2017 2:08:23 AM
Registered User
Joined: 3/10/2012
Posts: 465

Hi Bruce

i need help with creating indicator formula what i m trying to do is create ratio indicator for overbought and oversold using as below

(C - O / H - L )*V

but what i want is to segregate all the positive days that close was above the open so add up all the buying pressure days and divide by absolute value of buying pressure to selling pressure, so output will be RATIO of buying pressure and i wish to see this for 13 period , 55 period and 89 periods,

 

2) and second question is there a way in TC2000 to get output as number when using fundamentals

(netprofit margin(post tax) + dividend)  / price to book

i can do this manually but it would be easy to get a watchlist column or something of that sort ,

If you can please help ?

Cheers

Dhiren

 

dhirenshah
Posted : Thursday, April 13, 2017 1:40:44 AM
Registered User
Joined: 3/10/2012
Posts: 465

QUOTE (dhirenshah)

Hi Bruce

i need help with creating indicator formula what i m trying to do is create ratio indicator for overbought and oversold using as below

(C - O / H - L )*V

but what i want is to segregate all the positive days that close was above the open so add up all the buying pressure days and divide by absolute value of buying pressure  plus (+) selling pressure, so output will be RATIO of buying pressure and i wish to see this for 13 period , 55 period and 89 periods,

 

2) and second question is there a way in TC2000 to get output as number when using fundamentals

(netprofit margin(post tax) + dividend)  / price to book

i can do this manually but it would be easy to get a watchlist column or something of that sort ,

If you can please help ?

Cheers

Dhiren

 

StockGuy
Posted : Thursday, April 13, 2017 9:36:32 AM

Administration

Joined: 9/30/2004
Posts: 9,187

Bruce will be back next week.

dhirenshah
Posted : Tuesday, April 18, 2017 10:10:13 AM
Registered User
Joined: 3/10/2012
Posts: 465

Thanks Stock guy will wait for Bruce to respond !

 

Regards

Bruce_L
Posted : Tuesday, April 18, 2017 10:24:29 AM


Worden Trainer

Joined: 10/7/2004
Posts: 65,138

There isn't a way to do the fundamentals part.

You can change both instances of 13 in the following Indicator Formula to use a different number of bars.

100 * SUM(IIF(H > L, IIF(C > O, (C - O) / (H - L) * V, 0), 0), 13) / SUM(IIF(H > L, ABS(C - O) / (H - L) * V, 0), 13)



-Bruce
Personal Criteria Formulas
TC2000 Support Articles
dhirenshah
Posted : Tuesday, April 18, 2017 10:54:52 AM
Registered User
Joined: 3/10/2012
Posts: 465

Thanks Bruce

but i wanted to have the ratio go below zero as well to see the selling pressure days as per your formula it stays above zero only !

so what to tweak to get buying pressure days and divide by absolute value of buying pressure  plus (+) selling pressure, so output will be RATIO of buying pressure

thanks again

Bruce_L
Posted : Tuesday, April 18, 2017 11:02:05 AM


Worden Trainer

Joined: 10/7/2004
Posts: 65,138

If you only count buying pressure days (I'm assuming that is when price ends above the open) for the numerator, then the value is always going to be positive.

You would need to count both buy and selling pressure days in the numerator in order for the value to go negative.

This will shorten the formula because we don't need to check for close to be above the open in the numerator.

100 * SUM(IIF(H > L, (C - O) / (H - L) * V, 0), 13) / SUM(IIF(H > L, ABS(C - O) / (H - L) * V, 0), 13)

The version given originally would run from 0 to 100 while this version would run from -100 to 100.



-Bruce
Personal Criteria Formulas
TC2000 Support Articles
dhirenshah
Posted : Tuesday, April 18, 2017 12:38:20 PM
Registered User
Joined: 3/10/2012
Posts: 465

Bruce the second formula is better but im trying to make it more proper defined" where
when the buying and selling really translates into price movement"

so in the second formula is there a math idea to do close is greater then open in numerator and still get negative values  ??

because my idea is  " if you open on a low and close on high all the activity of the day was buying and if you open on high and close on a low all the activity of the day were selling like running a cumulative index, "

so in your second formula SUM(IIF(H > L, (C - O) / (H - L) * V, 0), 13)  where can we add close is above open to seggregate all positive days of buying in that 13 bar period to get overbought or oversold

 

Regards

Bruce_L
Posted : Tuesday, April 18, 2017 1:12:56 PM


Worden Trainer

Joined: 10/7/2004
Posts: 65,138

If we segregate all close is above the open, we get the first formula.



-Bruce
Personal Criteria Formulas
TC2000 Support Articles
dhirenshah
Posted : Tuesday, April 18, 2017 1:40:25 PM
Registered User
Joined: 3/10/2012
Posts: 465

Alrite Bruce then one last request on this topic can u pls give me pcf indicator formula for "moving up from negative side towards zero ? but not necessarily crossing zero and inverse for the same for moving down from positive side towards zero but not necessarily crossing below zero

100 * SUM(IIF(H > L, (C - O) / (H - L) * V, 0), 13) / SUM(IIF(H > L, ABS(C - O) / (H - L) * V, 0), 13)

 

thanks a lot for your help

Bruce_L
Posted : Tuesday, April 18, 2017 2:44:24 PM


Worden Trainer

Joined: 10/7/2004
Posts: 65,138

Moving up from negative.

100 * SUM(IIF(H > L, (C - O) / (H - L) * V, 0), 13) / SUM(IIF(H > L, ABS(C - O) / (H - L) * V, 0), 13) > 100 * SUM(IIF(H1 > L1, (C1 - O1) / (H1 - L1) * V1, 0), 13) / SUM(IIF(H1 > L1, ABS(C1 - O1) / (H1 - L1) * V1, 0), 13) AND 100 * SUM(IIF(H1 > L1, (C1 - O1) / (H1 - L1) * V1, 0), 13) / SUM(IIF(H1 > L1, ABS(C1 - O1) / (H1 - L1) * V1, 0), 13) < 0

Moving down from positive.

100 * SUM(IIF(H > L, (C - O) / (H - L) * V, 0), 13) / SUM(IIF(H > L, ABS(C - O) / (H - L) * V, 0), 13) < 100 * SUM(IIF(H1 > L1, (C1 - O1) / (H1 - L1) * V1, 0), 13) / SUM(IIF(H1 > L1, ABS(C1 - O1) / (H1 - L1) * V1, 0), 13) AND 100 * SUM(IIF(H1 > L1, (C1 - O1) / (H1 - L1) * V1, 0), 13) / SUM(IIF(H1 > L1, ABS(C1 - O1) / (H1 - L1) * V1, 0), 13) > 0



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