Page 1 of 1

Market filter

Posted: Thu Oct 06, 2011 5:22 am
by joefcr
is it possible to have filter on Index (like 200 WMA). System will exit all positions if Index falls below 200 Week Moving average.

Posted: Thu Oct 06, 2011 11:56 am
by TrendsCatcher
200-week is probably too slow, 200-day is more practical. Yes, if you trade individual stocks, a filter on the index is almost necessary, you don't want to go long in a bear market, and you don't want to miss too much of a bull market. How you define bull and bear markets is up to you, either your x-period moving average filter, a moving average cross over, or other types of filters: this structure means up, that structure means up no more etc.

Posted: Thu Oct 06, 2011 7:08 pm
by babelproofreader
I think 200 WMA means weighted moving average, not weekly moving average!

Re: Market filter

Posted: Thu Oct 06, 2011 9:53 pm
by Aaron01
joefcr wrote:is it possible to have filter on Index (like 200 WMA). System will exit all positions if Index falls below 200 Week Moving average.
Why wouldn't (shouldn't) it be possible?

Posted: Fri Oct 07, 2011 8:07 am
by babelproofreader
I have just come across this paper which proposes using a filter based on the VIX.

Posted: Fri Oct 07, 2011 3:31 pm
by svquant
Babelproof

Thanks for the link and when I read the abstract it struck me as the opposite of what many researchers and traders believe and have observed. But after reading the paper it is clearer what they are saying and a word of warning. The VIX system is counter-trend (at the med to long term time frame) to the index price. If you are interested in the links between volatility, predictability, and technical trading there are quite a few papers going back to the works of Blake LeBaron (perhaps others are even earlier) in the late 1980's and early 1990's

Posted: Fri Oct 07, 2011 11:24 pm
by Bravochico
It's price path dependent in the end, but most active strategies work better in rising Vix climate with perhaps option writing the exception.

I'd speculate a moving average of ATR would work just as well as Vix in paper above.

Posted: Sun Oct 09, 2011 1:24 am
by joefcr
what i wanted to know is that since i can not give a time price series as Index, how can i tell Trading Blox to check a specific series as Index (whether it is above 200 EMA or any other market filter) before buy.

if anybody has a blox for that and can upload it, it will be helpful for all of us.

Posted: Sun Oct 09, 2011 8:22 am
by rgd
before test script:

SPY.loadsymbol("SPY")

where SPY is a instrument based BPV

entry orders script:

if SPY.close > SPY.SMA200 then...

Posted: Sun Oct 09, 2011 8:45 am
by joefcr
thanks.

i have TB pro now. i can do that only if i have TB Builder, yes?

Posted: Sun Oct 09, 2011 7:33 pm
by sluggo
If you've got the "Pro" edition, you are able to assemble new systems out of the components (blox) that were provided when you purchased the software. The Pro edition also let you assemble systems using custom blox, i.e. other blox besides the ones that were shipped with the software. A large number of custom blox have been donated by other customers, who created them using the Builder edition. These custom blox are stored here on the Trader's Roundtable forum, in a section named the Blox Marketplace. Surf around in the Marketplace to see whether it contains something that meets your needs. If so, downlad it and give it a whirl.

Handy product guide:
  • Turtle Edition has no System Editor, has no Blox Editor. Cannot assemble new systems, cannot create or edit new blox.
  • Pro Edition has the System Editor but no Blox Editor. Can assemble new systems, cannot create or edit new blox.
  • Builder Edition has both the System Editor and the Blox Editor. Can assemble new systems, can create or edit new blox.