Click here to Login





                                                   Mutiple TimeFrames in TradingSystem

  0

0
chaz
2013-03-08 00:17:05


Hi,

Three questions:
1. Having 1min intraday data in IntraDay DB I would like to properly create Trading System rules to use different timeframes for
Buy rules & Sell rules. Could you provide an example for 5 and 30 min?

2. What controls the timeframe (TF) used by Ranking System?

3. It looks to me that when TF is set in "Symbols & Dates" of a Trading System it overrules the TimeFrame calls in Strategy Section.
I was using Timeframeapply & TimeframeDecompress, do I need to use any other call?

Thx in advance for answers,

Chaz



QuantShare
2013-03-08 11:02:03

  0

Hi,

1- Here is an example using 5min time frame

rule1 = Timeframeapply(60*5, close > sma(30));
rule1 = TimeframeDecompress(rule1);


2- The ranking system will use the same time frame as the trading system


3- TF in "Symbols & Dates" does not override TimeFrame calls. It define the default time frame settings.

For example: (You define 10-min time frame)

rule2 = close > sma(30);

// The above rule will be calculated based on 10-min data.

If you add "rule1" defined in (1) then this rule will be based on 5-min data. "TimeframeDecompress" synchronize the result with the 10-min data.

You can plot these rules on a chart to see exactly how they work.



chaz
2013-03-09 00:20:24

  0

Hi QS,
Thank you for the answer. I tried it in Trading system but it throws an error when I run it with intraday timeframe:
"QuantShare encountered a problem
Please report this error by clicking on send
Unexpected behaviour (1) "

I sent it few times but I do not know if QS receives those messages.

the formulas are:
buy = TimeFrameDecompress(TimeframeApply (3*60,close > sma(7)));
sell = TimeFrameDecompress(TimeframeApply(3*60, ema(7) > close));

They work fine when default timeframe (in Symbols & Dates is 'Daily') and
in Chart
plot(buy,"cross_Up",ColorBlue);
plot(sell,"cross_Down",ColorRed);

Any idea what is wrong & why it doesn't work with intraday data ?

QS Vers. 2.9.7 Win7x64 SP1




QuantShare
2013-03-09 10:11:38

  0

What about when using "TimeFrameDecompress" in a chart?
You probably have a memory issue, that is why you are receiving this exception. Try performing a backtesting with less symbols.



chaz
2013-03-12 22:32:28

  0

Thx for the answer.
Decreasing number of symbols didn't change the result.
I re-installed the QS application and the problem disappeared.
So either previous upgrade to v2.9.7 didn't go through as required or new install bits may have helped.

Best Regards

Chaz



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
Darvas Box Indicator
Coppock - VLT Momentum Indicator
Percent Oversold to Overbought Stocks - Market Breadh Indicator
Put Call Volume Comparison Indicator
Screen for finding potential high volume momentum growth for the ...

How-to Lessons
How to display two stocks on the same chart
How to download and use U.S. stocks earnings data
How to display notes/commentaries on a chart
How to associate an index with a list of stocks
How to create trading rules based on Put and Call volume data

Related Forum Threads
How to build higer timeframes from imported 1 min ?
Creating Watchlist with Two Timeframes
Manage Symbols(Bulk Updater)
Indicator updates
Building an indicator in smaller timeframe to use in larger timef...

Blog Posts
Technical Analysis Using Multiple Timeframes
Technical Analysis Using Multiple Timeframes - Second Part
QuantShare Version 2.1.0 - Trading Software
Backtesting trading strategies using intraday data
Fundamental Screen based on Stock price, ROI and Market capitaliz...









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.