Click here to Login





                                                   Regimes

  0

0
allan nathan
2015-07-03 18:00:00


Hi,
I am running a system using rank,and then looking at the Regimes...

Specifically,I am looking at Middle term Bullish with GSPC> SMA(c,100)..

when I code it myself

b=getseries("^gspc",gspc,close);
goodma=b>sma(b,100);

the results are drastically different.here is the system

rank1=Comp(perf(close,days),"Rank",1,close>2);
b=getseries("^gspc",gspc,close);
goodma=b>sma(b,100);
buy=rank1<11 and goodma;

shouldnt that system be the exact same as

buy=rank1<11; and looking at the midle term Regime?

Thanks,

allan




QuantShare
2015-07-04 11:40:17

  0

The regimes tool trades the equity curve and thus when the rule is off, no positions will be considered.

In your system, no position is taken when the rule is off, however when the rule becomes off, all open positions are still there.

You will probably not get exactly the same results but try adding a sell rule:

sell = !goodma;



allan nathan
2015-07-04 12:14:46

  0

If I understand correctly,you are saying Regimes adds a buy filter and also an Exit sell?

Stocks are purchased if the GSPC > SMA and will close/sell positions if GSPC <

Is that correct?

I am testing the comp rank and using a simple 10% stop,which would explain the differences.It appears if I add a sell rule with a MA cross of the GSPC,than the results should be closer?

Is this explained anywhere?

Allan






QuantShare
2015-07-04 19:12:23

  0

The regime tool works differently, it trades the equity curve of your trading system. Just imagine as the equity curve was the price of an asset.
If buys that asset when regime is on and sell it when it is off.

And yes, the result should be closer.

http://www.quantshare.com/sa-589-quantshare-trading-software-new-features-in-the-331-version



No more messages
0




Reply:

No html code. URLs turn into links automatically.

Type in the trading objects you want to include: - Add Objects
To add a trading object in your message, type in the object name, select it and then click on "Add Objects"










QuantShare

Trading Items
Historical volatility regimes
VMACD Indicator (Volume Moving Average Convergence Divergence)
Percentile Rank of PEG, Price/Free Cash Flow and Price/Sales
Inertia Indicator
Ehler Filter Indicator

How-to Lessons
How to draw distances on a chart?
How to create a mobile database/account
How to get stocks for a particular index using the global script
How to create and trade a Neural Network model
How to create a custom trading indicator

Related Forum Threads
Regimes
Renaming Equal Weighted Index
Downloader doesn't download - why?
Script to remove Symbols from an Index
"perf" used in script

Blog Posts
How to use the new Market Regimes Feature in QuantShare Trading S...
Rules performance for different volatility regimes
QuantShare Trading Software: New Features in the 3.3.1 Version
Historical Market Data
How to simulate options strategies









QuantShare
Product
QuantShare
Features
Create an account
Affiliate Program
Support
Contact Us
Trading Forum
How-to Lessons
Manual
Company
About Us
Privacy
Terms of Use

Copyright © 2024 QuantShare.com
Social Media
Follow us on Facebook
Twitter Follow us on Twitter
Google+
Follow us on Google+
RSS Trading Items



Trading financial instruments, including foreign exchange on margin, carries a high level of risk and is not suitable for all investors. The high degree of leverage can work against you as well as for you. Before deciding to invest in financial instruments or foreign exchange you should carefully consider your investment objectives, level of experience, and risk appetite. The possibility exists that you could sustain a loss of some or all of your initial investment and therefore you should not invest money that you cannot afford to lose. You should be aware of all the risks associated with trading and seek advice from an independent financial advisor if you have any doubts.