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
synthetic bars [SOLVED]
-
- Posts: 49
- Joined: 26 Dec 2009
- Has thanked: 34 times
- Been thanked: 1 time
- TJ
- Posts: 7743
- Joined: 29 Aug 2006
- Location: Global Citizen
- Has thanked: 1033 times
- Been thanked: 2222 times
Re: synthetic bars
You sure can... just set up an array to hold those synthetic values and you are good do any analysis you want.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
However you cannot simply apply MACD or Stochastics on the array, because the timing might be off.
Re: synthetic bars
You can use JAM Higher Timeframe Pack developed by Martin Miller
http://www.jamstrategytrading.com/HTPack.htm
* I don't have any commercial interest.
http://www.jamstrategytrading.com/HTPack.htm
* I don't have any commercial interest.
-
- Posts: 49
- Joined: 26 Dec 2009
- Has thanked: 34 times
- Been thanked: 1 time
Re: synthetic bars
@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.
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.
- TJ
- Posts: 7743
- Joined: 29 Aug 2006
- Location: Global Citizen
- Has thanked: 1033 times
- Been thanked: 2222 times
Re: synthetic bars [SOLVED]
I would suggest you start here:@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.
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.