Strategy using several timeframes

Questions about MultiCharts and user contributed studies.
duration
Posts: 179
Joined: 20 Dec 2005
Been thanked: 1 time

Strategy using several timeframes

Postby duration » 26 Feb 2010

Hello,

Is it possible in Multicharts to programme a strategy that looks for signal in the 5mn timeframe and if there is positive signals, that looks in the 30mn timeframe for other signals?

Thank you!

wegi
Posts: 124
Joined: 02 Jun 2009
Has thanked: 5 times
Been thanked: 13 times

Postby wegi » 27 Feb 2010

Hi,

yes it is possible.

Add two symbols to your chart: 5min and 30min resolution
Place your study on the 5min Symbol.

You can access quotes and functions from both symbols, using "of data1"

if the 30min symbol is your data2 symbol, then you can access the close:
close of data2

User avatar
TJ
Posts: 7740
Joined: 29 Aug 2006
Location: Global Citizen
Has thanked: 1033 times
Been thanked: 2221 times

Postby TJ » 27 Feb 2010


duration
Posts: 179
Joined: 20 Dec 2005
Been thanked: 1 time

Postby duration » 27 Feb 2010

Another question:

Up to how many timeframes can you use?

(data1, data2, data3 etc.)

Thank you!

User avatar
TJ
Posts: 7740
Joined: 29 Aug 2006
Location: Global Citizen
Has thanked: 1033 times
Been thanked: 2221 times

Postby TJ » 27 Feb 2010

Another question:

Up to how many timeframes can you use?

(data1, data2, data3 etc.)

Thank you!

[edited]

it is 50 for TS.

duration
Posts: 179
Joined: 20 Dec 2005
Been thanked: 1 time

Postby duration » 27 Feb 2010

Thanks a lot!

50 for TS but what a bout Multicharts?

janus
Posts: 835
Joined: 25 May 2009
Has thanked: 63 times
Been thanked: 104 times

Re: Strategy using several timeframes

Postby janus » 27 Feb 2010

I found this approach to using multiple time frames in a study very useful. It's one of the features I like about MC. However, I now have the need to have rolling times. In other words, if I have a 2 minute sub-chart, I need to look at the two minute bars generated by odd and even bar numbers. The only way I found I could do this is to store the 1 minute data in an array and compute the two types of 2 minute data series in the study itself dynamically. This can be time consuming although it's not a real problem so far with my PC. Does anyone know of a better way?

User avatar
Bruce DeVault
Posts: 438
Joined: 19 Jan 2010
Location: Washington DC
Been thanked: 2 times
Contact:

Postby Bruce DeVault » 28 Feb 2010

Janus, the most efficient way to do this is generally to use circular arrays so you don't have to shuffle the data around.


Return to “MultiCharts”