synthetic bars  [SOLVED]

Questions about MultiCharts and user contributed studies.
fibonaccci
Posts: 49
Joined: 26 Dec 2009
Has thanked: 34 times
Been thanked: 1 time

synthetic bars

Postby fibonaccci » 31 Jul 2012

Is it possible to create indicators/strategies based on „Synthetic” Open, High, Low, Close bars e.g. by cumulating 5 bars of 1 minute timeframe to 1 bar of 5 minutes timeframe?

By doing this one can create indicators/systems based on multiple timeframes without using data2, data3 etc.

thanks

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

Re: synthetic bars

Postby TJ » 31 Jul 2012

Is it possible to create indicators/strategies based on „Synthetic” Open, High, Low, Close bars e.g. by cumulating 5 bars of 1 minute timeframe to 1 bar of 5 minutes timeframe?

By doing this one can create indicators/systems based on multiple timeframes without using data2, data3 etc.

thanks
You sure can... just set up an array to hold those synthetic values and you are good do any analysis you want.

However you cannot simply apply MACD or Stochastics on the array, because the timing might be off.

SUPER
Posts: 646
Joined: 03 Mar 2007
Has thanked: 106 times
Been thanked: 84 times

Re: synthetic bars

Postby SUPER » 31 Jul 2012

You can use JAM Higher Timeframe Pack developed by Martin Miller

http://www.jamstrategytrading.com/HTPack.htm

* I don't have any commercial interest.

fibonaccci
Posts: 49
Joined: 26 Dec 2009
Has thanked: 34 times
Been thanked: 1 time

Re: synthetic bars

Postby fibonaccci » 01 Aug 2012

@TJ,
thanks for the hint.
The only information about Array construction I have found was here: http://markplex.com/free-tutorials/tutorial-7/
But still I do not have a clue how to do this!
Question: what kind of Array do I need?
Would the capacity for such an Array be much lower/higher than data2 capacity?

However you cannot simply apply MACD or Stochastics on the array, because the timing might be off.
>> what do you mean by “the timing might be off” , time delay?

@SUPER,
thanks for the link.

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

Re: synthetic bars  [SOLVED]

Postby TJ » 01 Aug 2012

@TJ,
thanks for the hint.
The only information about Array construction I have found was here: http://markplex.com/free-tutorials/tutorial-7/
But still I do not have a clue how to do this!
Question: what kind of Array do I need?
Would the capacity for such an Array be much lower/higher than data2 capacity?

However you cannot simply apply MACD or Stochastics on the array, because the timing might be off.
>> what do you mean by “the timing might be off” , time delay?

@SUPER,
thanks for the link.
I would suggest you start here:

EasyLanguage Essentials Programmers Guide
Arrays..... pg 40

EasyLanguage Reference Guide
Chapter 2: The Basic EasyLanguage Elements
Understanding Arrays..... pg 40

The chapters are well written, with illustrations and usage examples.

This is a more advance topic, it is not difficult, you just need some time to read the chapters and try out the examples.

Timing difference because you are dealing with different time frames.


Using data2 would be a much simpler and more elegant solution.


Return to “MultiCharts”