MTF ( Multitimeframe ) - basic question - please clarify

Questions about MultiCharts and user contributed studies.
Jupp25
Posts: 50
Joined: 17 Sep 2021
Has thanked: 13 times
Been thanked: 7 times

MTF ( Multitimeframe ) - basic question - please clarify

Postby Jupp25 » 21 Jan 2023

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

User avatar
Svetlana MultiCharts
Posts: 645
Joined: 19 Oct 2017
Has thanked: 3 times
Been thanked: 163 times

Re: MTF ( Multitimeframe ) - basic question - please clarify

Postby Svetlana MultiCharts » 27 Jan 2023

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.

Code: Select all

input: inp (2); var: b1 (0); b1 = BarNumber of data(inp); plot1(b1);

User avatar
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

Postby rrams » 27 Jan 2023

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);


Return to “MultiCharts”