synthetic bars  [SOLVED]

Questions about MultiCharts and user contributed studies.
fibonaccci
Posts: 44
Joined: 26 Dec 2009
Has thanked: 19 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: 6584
Joined: 29 Aug 2006
Location: Global Citizen
Has thanked: 970 times
Been thanked: 1907 times

Re: synthetic bars

Postby TJ » 31 Jul 2012

fibonaccci wrote: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: 624
Joined: 03 Mar 2007
Has thanked: 99 times
Been thanked: 80 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.
These users thanked the author SUPER for the post:
fibonaccci

fibonaccci
Posts: 44
Joined: 26 Dec 2009
Has thanked: 19 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: 6584
Joined: 29 Aug 2006
Location: Global Citizen
Has thanked: 970 times
Been thanked: 1907 times

Re: synthetic bars  [SOLVED]

Postby TJ » 01 Aug 2012

fibonaccci wrote:@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.
These users thanked the author TJ for the post (total 2):
JoshMfibonaccci


Return to “MultiCharts”