Click here to Login

                                                   Using multiple time frame in the real time version


2012-10-29 17:45:11


Using a screener if I want to filter stocks which are above/below rsi(14) 70/30 for the 10 and 30 minutes time frames at the same time, how we can do?

Here I do not want to use two different screeners, one for10mins and another for 30mins, instead I would like to use even lower time frame(may be 5mins) to run this screener.


2012-10-29 17:56:39


Use "TimeframeApply" function:

filter = TimeframeApply(10*60, rsi(14) > 70); // 10-minutes time frame

2012-10-29 18:21:45


Thanks a lot for such a prompt response, appreciated much.

2012-10-30 03:14:57


Just to extend the same approach, if I want to use rsi(14) > 70 based on "end of day" data in the real time version, how do I use this function?

2012-10-30 09:37:12


In this case, you should pass a negative value as time frame.

filter = TimeframeApply(-1, rsi(14) > 70); // daily data
filter = TimeframeApply(-7, rsi(14) > 70); // weekly data

2012-10-30 09:54:57


Thanks a lot, this is really an extremely useful function.

2012-11-08 06:39:41



When I tried to do back testing using above mentioned function, combining EoD and RT data, the first signal which I get is after nearly 5 months of RT data. I have the following:

1) RT data since November 15th 2011.
2) EoD data since Jan 1st 2001.

Both the data sets are in the same place and I can plot RT and EOD data without changing the account.

I start back testing from 1st December 2011, however, the first trade shown is in the month of May 2012, why so? I do not face this problem if I back test just using RT data, and I could see valid signals soon after the start date.


2012-11-09 09:49:22


Maybe the rule that uses the EoD data is not valid until May 2012.
If you still have problems with this, please send us an email to support including your formula, RT and EOD data for one symbol.

No more messages


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"


Trading Items
Multiple Time Frames Trading System - Price / Moving Average Cros...
Hull Moving Average Strategy - Multi Time Frame Trading System
Export Indicators Data - Custom Time Frame
Stocks at All Time Highs/Lows
Time Segmented Volume

How-to Lessons
How to calculate the average of a time series using the money man...
How to plot two different time frames in the same chart
How to hide a trading indicator from a particular time frame
How to plot a stock using different periods in the same chart
How to detect stocks trading near all time highs

Related Forum Threads
Trading System using multiple time frames
Thank for the Real Time Version: Interactive Brokers API question
Real Time Tick Data
IB Real Time
Plotting Multiple time frame indicators

Blog Posts
Presentation of QuantShare's new Real Time Version
How to Adjust the Time Displayed in your Intraday Charts
Real Time Alerts: Support and Resistance Lines Breakout
Update Chart Layout based on Active Time Frame
QuantShare Trading Software: New Features in the 3.7.0 Version

Create an account
Affiliate Program
Contact Us
Trading Forum
How-to Lessons
About Us
Terms of Use

Copyright 2021
Social Media
Follow us on Facebook
Twitter Follow us on Twitter
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.