StockFetcher Forums · Filter Exchange · Request Help in Coding<< 1 2 >>Post Follow-up
decipherlinda
133 posts
msg #65110
Ignore decipherlinda
7/17/2008 11:53:43 AM

I'm trying to code normalized or relative volume to display at the bottom of a chart.

(1) Divide volume by its 50-day MA
(2) multiply by 100
(3) plot it
(4) Draw volume line at 100

This is from Bollinger on Bollinger Bands.

Thanks!

chetron
2,817 posts
msg #65112
Ignore chetron
modified
7/17/2008 12:04:58 PM

maybe...

the indpostion(n,#) indicator does all the math for you

Fetcher[

set{dlinvol,indposition(volume,50) * 100}
draw dlinvol line at 100

]



decipherlinda
133 posts
msg #65114
Ignore decipherlinda
7/17/2008 12:48:07 PM

Thanks Chetron! Very appreciative!

Indposition has a 0 to 1 scale. I'm trying to divide volume by its MA(50) and plot that, so the result could be 200, 500, etc.

The volume line at 100 will represent the volume MA(50). It's as if the volume MA(50) were a string and you pick it up and pull it straight for clarity in seeing changes in daily volume.

Any ideas?

Thanks!

chetron
2,817 posts
msg #65116
Ignore chetron
modified
7/17/2008 1:22:48 PM

well then, ;)


Fetcher[

set{var1,volume / avgvol(50)}
set{var2,var1 * 100}

draw var2 line at 100

]





decipherlinda
133 posts
msg #65117
Ignore decipherlinda
7/17/2008 1:57:07 PM

Chetron, yes, yes, yes! Very grateful!

mystiq
650 posts
msg #79270
Ignore mystiq
9/15/2009 6:56:47 AM

how would one code "flat, no price movement within last 20 days; open equal close for the last 20 days, with no range" ? (-.-)

chetron
2,817 posts
msg #79271
Ignore chetron
modified
9/15/2009 7:12:43 AM

maybe...


Fetcher[


set{vara,high - low}
set{varb,high 1 day ago}
set{varc,varb - low}

varc equals 0 last 20 day
vara equals 0 last 20 day
]



mystiq
650 posts
msg #79344
Ignore mystiq
9/16/2009 12:44:15 AM

as always..thx chetron!

mystiq
650 posts
msg #79346
Ignore mystiq
9/16/2009 1:33:31 AM

9/15/2009 7:12:43 AM
maybe...
Fetcher[


set{vara,high - low}
set{varb,high 1 day ago}
set{varc,varb - low}

varc equals 0 last 20 day
vara equals 0 last 20 day
]



Thank you::can the same be done with volume-->no or little volume for past 20 days? (-.-)

chetron
2,817 posts
msg #79353
Ignore chetron
9/16/2009 6:52:12 AM

HOW ABOUT....

Fetcher[

SET{VAR1,VOLUME 1 DAY AGO}
set{vara,VOLUME - VAR1}

vara equals 0 last 20 day

]



StockFetcher Forums · Filter Exchange · Request Help in Coding<< 1 2 >>Post Follow-up

*** Disclaimer *** StockFetcher.com does not endorse or suggest any of the securities which are returned in any of the searches or filters. They are provided purely for informational and research purposes. StockFetcher.com does not recommend particular securities. StockFetcher.com, Vestyl Software, L.L.C. and involved content providers shall not be liable for any errors or delays in the content, or for any actions taken based on the content.


Copyright 2016 - Vestyl Software L.L.C.Terms of Service | License | Questions or comments? Contact Us
EOD Data sources: DDFPlus & CSI Data Quotes delayed during active market hours. Delay times are at least 15 mins for NASDAQ, 20 mins for NYSE and Amex. Delayed intraday data provided by DDFPlus