SI
SI
discoversearch

We've detected that you're using an ad content blocking browser plug-in or feature. Ads provide a critical source of revenue to the continued operation of Silicon Investor.  We ask that you disable ad blocking while on Silicon Investor in the best interests of our community.  If you are not using an ad blocker but are still receiving this message, make sure your browser's tracking protection is set to the 'standard' level.
Strategies & Market Trends : Technical Analysis - Beginners -- Ignore unavailable to you. Want to Upgrade?


To: big run who wrote (8320)4/22/1998 4:04:00 PM
From: Chris G.  Read Replies (1) | Respond to of 12039
 
Brooke,

What program is this for?

chris g



To: big run who wrote (8320)4/22/1998 4:42:00 PM
From: TechTrader42  Read Replies (1) | Respond to of 12039
 
Yes, that works for the black bar, except in one case, I think: when the volume is greater than its 21-day MA and the close is the same as yesterday's close.

This line:
flat_vol if v<=average(v,21) then down_vol = volume else down_vol = 0

would be this in MSWIN:
If(V<=Mov(V,21,S),V,0);

But don't you also need this:
If(V>Mov(V,21,S) AND C=Ref(C,-1),V,0);

In your program's language, that would be:
flat_vol if v>average(v,21) and c=c[1] then down_vol = volume else down_vol = 0

Brooke