StockFetcher Forums · General Discussion · 5 day median<< 1 2 3 >>Post Follow-up
ronun
27 posts
msg #79752
Ignore ronun
9/21/2009 4:18:11 AM

Cacher, Chetron, Kevin_in_GA

I finally worked out the bugs in the Value Charts from the book "Dynamic Trading Indicators." I haven't figured out how to make it clickable.

/* Calculate FLOATING AXIS*/
SET{VAR1,HIGH + LOW}
SET{VAR2,SUM(VAR1,5)}
SET{FLOATINGAXIS,VAR2 / 10}
AND ADD COLUMN FLOATINGAXIS

/*Calculate VOLITILITY UNIT*/
SET{DIFF1,HIGH - LOW}
SET{DIFF2,SUM(DIFF1,5)}
SET{VOLITILITYUNIT,DIFF2 / 25}
AND ADD COLUMN VOLITILITYUNIT

/*Calculate VALUE CHART HIGH*/
SET{VALUEHI,HIGH - FLOATINGAXIS}
SET{VALUECHARTHIGH,VALUEHI / VOLITILITYUNIT}

AND DRAW VALUECHARTHIGH
AND DRAW VALUECHARTHIGH LINE AT 4
AND DRAW VALUECHARTHIGH LINE AT 8

/*Calculate VALUE CHART LOW*/
SET{VALUELO,LOW - FLOATINGAXIS}
SET{VALUECHARTLOW,VALUELO / VOLITILITYUNIT}

AND DRAW VALUECHARTLOW
AND DRAW VALUECHARTLOW LINE AT -4
AND DRAW VALUECHARTLOW LINE AT -8

AND ADD COLUMN HIGH
AND ADD COLUMN LOW
AND ADD COLUMN VALUECHARTHIGH
AND ADD COLUMN VALUECHARTLOW

SHOW STOCKS WHERE VALUECHARTLOW IS BELOW -8
SHOW STOCKS WHERE CLOSE IS BETWEEN 1 AND 300
AND AVERAGE VOLUME(30) IS ABOVE 100000

Kevin_in_GA, the buy/sell signals generated are largely in agreement with your Bollinger(16,2.5) entries, although I think Bollinger(16,2) fits better. Let me know how it works for you.


chetron
2,817 posts
msg #79754
Ignore chetron
9/21/2009 6:45:27 AM

CLICKABLE...

Fetcher[
/* Calculate FLOATING AXIS*/
SET{VAR1,HIGH + LOW}
SET{VAR2,SUM(VAR1,5)}
SET{FLOATINGAXIS,VAR2 / 10}
AND ADD COLUMN FLOATINGAXIS

/*Calculate VOLITILITY UNIT*/
SET{DIFF1,HIGH - LOW}
SET{DIFF2,SUM(DIFF1,5)}
SET{VOLITILITYUNIT,DIFF2 / 25}
AND ADD COLUMN VOLITILITYUNIT

/*Calculate VALUE CHART HIGH*/
SET{VALUEHI,HIGH - FLOATINGAXIS}
SET{VALUECHARTHIGH,VALUEHI / VOLITILITYUNIT}

AND DRAW VALUECHARTHIGH
AND DRAW VALUECHARTHIGH LINE AT 4
AND DRAW VALUECHARTHIGH LINE AT 8

/*Calculate VALUE CHART LOW*/
SET{VALUELO,LOW - FLOATINGAXIS}
SET{VALUECHARTLOW,VALUELO / VOLITILITYUNIT}

AND DRAW VALUECHARTLOW
AND DRAW VALUECHARTLOW LINE AT -4
AND DRAW VALUECHARTLOW LINE AT -8

AND ADD COLUMN HIGH
AND ADD COLUMN LOW
AND ADD COLUMN VALUECHARTHIGH
AND ADD COLUMN VALUECHARTLOW

SHOW STOCKS WHERE VALUECHARTLOW IS BELOW -8
SHOW STOCKS WHERE CLOSE IS BETWEEN 1 AND 300
AND AVERAGE VOLUME(30) IS ABOVE 100000
]



chetron
2,817 posts
msg #79755
Ignore chetron
9/21/2009 6:51:24 AM

VERY NICE = D

Kevin_in_GA
4,552 posts
msg #79758
Ignore Kevin_in_GA
9/21/2009 8:37:56 AM

Kevin_in_GA, the buy/sell signals generated are largely in agreement with your Bollinger(16,2.5) entries, although I think Bollinger(16,2) fits better. Let me know how it works for you.
+++++++++++++++++++

Possibly, but to me the important question is which setting generates more profit and a higher reward to risk ratio. So far, it looks like 2.5 SD works out to be a little better than 2.0, especially when trade costs are factored in.




Cacher
121 posts
msg #79760
Ignore Cacher
modified
9/21/2009 9:09:32 AM

ronun ... nice job, interesting results ! I will be watching how it performs ....

to make you screen "clickable" ... begin by typing "fetcher" , then (with no space between) type the opening bracket "[" ....... then paste your screen ,,,, then the closing bracket "]" .... that's it !

Fetcher[


put your code here ... it won't be "clickable until you post or preview, that's when SF formats it as clickable and displays the magnifing icon with it.


]



chetron
2,817 posts
msg #79807
Ignore chetron
modified
9/21/2009 8:49:41 PM

FOR THE CHEAP SEATS...

Fetcher[


/* ADVANCED VERSION */
/* CHETRON TWEAKS */

/* Calculate FLOATING AXIS*/
SET{VAR1,HIGH + LOW}
SET{VAR2,SUM(VAR1,5)}
SET{FLOATINGAXIS,VAR2 / 10}
ADD COLUMN FLOATINGAXIS

/*Calculate VOLITILITY UNIT*/
SET{DIFF1,HIGH - LOW}
SET{DIFF2,SUM(DIFF1,5)}
SET{VOLITILITYUNIT,DIFF2 / 25}
ADD COLUMN VOLITILITYUNIT

/*Calculate VALUE CHART HIGH*/
SET{VALUEHI,HIGH - FLOATINGAXIS}
SET{VALUECHARTHIGH,VALUEHI / VOLITILITYUNIT}

SET{VARDO,COUNT(VALUECHARTHIGH ABOVE 8,1)}

/*Calculate VALUE CHART LOW*/
SET{VALUELO,LOW - FLOATINGAXIS}
SET{VALUECHARTLOW,VALUELO / VOLITILITYUNIT}

SET{VARRE,COUNT(VALUECHARTLOW BELOW -8,1)}
SET{VARMI,VARDO * VALUECHARTHIGH}
SET{VARFA,VARRE * VALUECHARTLOW}
SET{VBIAS,VARMI + VARFA}

SET{VBUYME,COUNT(MACD HISTOGRAM(4,8) CROSSED BELOW 0,1) * 10}
SET{VSHORTME,COUNT(MACD HISTOGRAM(4,8) CROSSED ABOVE 0,1) * -10}
SET{VPLAYS,VBUYME + VSHORTME}

DRAW VBIAS
DRAW VBUYME
DRAW VSHORTME

ADD COLUMN HIGH
ADD COLUMN LOW
ADD COLUMN VALUECHARTHIGH
ADD COLUMN VALUECHARTLOW

VPLAYS ABOVE .5
DO NOT DRAW VPLAYS
CLOSE IS BETWEEN 5 AND 6
AVERAGE VOLUME(30) IS ABOVE 100000

]





FOR THE ADVANCED FOLKS....


Fetcher[

/* ADVANCED VERSION */
/* CHETRON TWEAKS */

/* Calculate FLOATING AXIS*/
SET{VAR1,HIGH + LOW}
SET{VAR2,SUM(VAR1,5)}
SET{FLOATINGAXIS,VAR2 / 10}
ADD COLUMN FLOATINGAXIS

/*Calculate VOLITILITY UNIT*/
SET{DIFF1,HIGH - LOW}
SET{DIFF2,SUM(DIFF1,5)}
SET{VOLITILITYUNIT,DIFF2 / 25}
ADD COLUMN VOLITILITYUNIT

/*Calculate VALUE CHART HIGH*/
SET{VALUEHI,HIGH - FLOATINGAXIS}
SET{VALUECHARTHIGH,VALUEHI / VOLITILITYUNIT}

SET{VARDO,COUNT(VALUECHARTHIGH ABOVE 8,1)}

/*Calculate VALUE CHART LOW*/
SET{VALUELO,LOW - FLOATINGAXIS}
SET{VALUECHARTLOW,VALUELO / VOLITILITYUNIT}

SET{VARRE,COUNT(VALUECHARTLOW BELOW -8,1)}
SET{VARMI,VARDO * VALUECHARTHIGH}
SET{VARFA,VARRE * VALUECHARTLOW}
SET{VBIAS,VARMI + VARFA}

SET{VBUYME,COUNT(MACD HISTOGRAM(4,8) CROSSED BELOW 0,1) * 10}
SET{VSHORTME,COUNT(MACD HISTOGRAM(4,8) CROSSED ABOVE 0,1) * -10}
SET{VPLAYS,VBUYME + VSHORTME}


DRAW VBIAS
DRAW VBIAS LINE AT -8
DRAW VBIAS LINE AT 8
DRAW VBUYME ON PLOT VBIAS
DRAW VSHORTME ON PLOT VBIAS

ADD COLUMN HIGH
ADD COLUMN LOW
ADD COLUMN VALUECHARTHIGH
ADD COLUMN VALUECHARTLOW

VPLAYS ABOVE .5
DO NOT DRAW VPLAYS
CLOSE IS BETWEEN 5 AND 6
AVERAGE VOLUME(30) IS ABOVE 100000

]



Stringman808
1 posts
msg #91443
Ignore Stringman808
4/20/2010 5:02:08 PM

I hope the indicator is working for you, but I don't think you're getting the MEDIAN. You're getting an average (MEAN). If anyone knows how to find a MEDIAN using stockfetcher, please let me know.

Obviously, the median is the middle value when you rank all the values. 50% of the values should be above it and 50% below it. MEDIAN will not be as affected by outliers as the mean will.

StockFetcher Forums · General Discussion · 5 day median<< 1 2 3 >>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