Hi,
do I understand correct, that having variables attached/assigned to the higher timeframe is the most essentual part in programming MTF indicators?
So:
Vars:
Test(0); is attached to data1
Vars:
Test(0 data2); is attached to data2
And because (0 dataX) "X" cant be handled via an input, every function used within an MTF indicator must be specifically programmed for the number of the individually used datastream or work arround functions and code every line within???
Confirmation of my understanding or correcting/alternatives are very much appreciated
Thx
Chris
MTF ( Multitimeframe ) - basic question - please clarify
- Svetlana MultiCharts
- Posts: 645
- Joined: 19 Oct 2017
- Has thanked: 3 times
- Been thanked: 163 times
Re: MTF ( Multitimeframe ) - basic question - please clarify
Hi Chris,
You cannot bind a variable to a series which number is specified by an expression. This is a limitation of EasyLanguage.
The function values can be calculated using an arbitrary data stream - perhaps it will help.
In this case, the indication of the series number by the expression is supported.
You cannot bind a variable to a series which number is specified by an expression. This is a limitation of EasyLanguage.
The function values can be calculated using an arbitrary data stream - perhaps it will help.
In this case, the indication of the series number by the expression is supported.
Code: Select all
input: inp (2);
var: b1 (0);
b1 = BarNumber of data(inp);
plot1(b1);
- rrams
- Posts: 128
- Joined: 10 Feb 2011
- Location: USA
- Has thanked: 7 times
- Been thanked: 70 times
- Contact:
Re: MTF ( Multitimeframe ) - basic question - please clarify
You can input a static data series and refer to that throughout your indicator or signal code.
Code: Select all
input: DSerC(C Data2), DSerL(L Data2), DSerH(H Data2);
if DSerC>DSerC[1] and DSerL>DserL[1] and DSerH>DserH[1] then print(DSerH:0:0);