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 |

Formula for Up Volume and Down Volume (Custom Indicator) Rate this Topic:
Previous Topic · Next Topic Watch this topic · Print this topic ·
RobertG
Posted : Sunday, June 26, 2005 11:28:34 PM
Registered User
Joined: 10/7/2004
Posts: 17
Can you create a New Custom Indicator, one for Down Volume, and one for Up Volume. In TC2005.

I use this in MetaStock, I add a Moving average too each , this sometimes gives you good buy and sell signals.

The MetaStock formula language is

Name Volume Down

Formula: If(C<Ref(C,-1),V,0)


Name Volume Up

Formula: If(C>=Ref(C,-1),V,0)

What Formula would you use in TC2005?
Craig_S
Posted : Sunday, June 26, 2005 11:59:55 PM


Worden Trainer

Joined: 10/1/2004
Posts: 18,819
Can you explain what the indicators do in regular english? I don't completely understand the code.

What does the Volume Down indicator do when the stock is up? What does it do when the stock is down? Same for the Up Indicator.

- Craig
Here to Help!
bustermu
Posted : Monday, June 27, 2005 11:13:48 AM
Registered User
Joined: 1/1/2005
Posts: 2,645
Robert,

Custom Indicator (Down Volume)
(-1)*(C<C1)*V

Custom Indicator (Up Volume)
(-1)*(C>=C1)*V

These are almost the same as the colored Volume bars, but now you can put MA's on them.

Thanks,
Jim Murphy
interrobang
Posted : Monday, June 27, 2005 12:09:50 PM
Registered User
Joined: 3/7/2005
Posts: 23
Jim,

So, on an up day, down volume is 0 and up volume is the actual volume, and on a down day, up volume is 0. It's hard to imagine a moving average of a function like this meaning anything, but I'm certainly not an authority.

RobR

P.S. In case anyone's curious, if you put a logical expression in parentheses, the result is 0 if it is false and -1 if it is true. Multiplying the result by -1 makes it positive.

Craig_S
Posted : Monday, June 27, 2005 12:15:25 PM


Worden Trainer

Joined: 10/1/2004
Posts: 18,819
Be sure, if you use these two indicators in the same window, you understand they will be on different scales.

- Craig
Here to Help!
bustermu
Posted : Monday, June 27, 2005 12:21:14 PM
Registered User
Joined: 1/1/2005
Posts: 2,645
RobR,

What you see is not of my doing, it is the content of the original post.

Thanks,
Jim Murphy
RobertG
Posted : Monday, June 27, 2005 2:04:45 PM
Registered User
Joined: 10/7/2004
Posts: 17
Jim
The formula works. you can use a 28 dma on each up and down volume. and make the formulas invisible, watch for a change or crossover. I use this with a Stochastic 5 3 3
and Williems % R ((MAXH14 - C) / (MAXH14 -MINL14)) * -100 and ((H14-C)/(h14-L14))*100 williams R upside down

The QQQQ would give you a buy on about 4/29/2005 and a sell on 6/3/2005
Craig_S
Posted : Monday, June 27, 2005 2:15:05 PM


Worden Trainer

Joined: 10/1/2004
Posts: 18,819
WARNING

You cannot watch for a crossover of these two custom indicators. They are on their own independent scales so crossovers are meaningless.

- Craig
Here to Help!
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.