Actual time scale: How to get the value

Questions about MultiCharts and user contributed studies.
arjfca
Posts: 1292
Joined: 23 Nov 2010
Has thanked: 725 times
Been thanked: 223 times

Actual time scale: How to get the value

Postby arjfca » 06 Mar 2012

Hello

How can I put in a variable, the actual scale in use in the chart

Martin

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

Re: Actual time scale: How to get the value

Postby TJ » 06 Mar 2012

Hello

How can I put in a variable, the actual scale in use in the chart

Martin
can you explain a bit more?

arjfca
Posts: 1292
Joined: 23 Nov 2010
Has thanked: 725 times
Been thanked: 223 times

Resolve: Actual time scale: How to get the value

Postby arjfca » 06 Mar 2012

Hello

How can I put in a variable, the actual scale in use in the chart

Martin
I created a new function called ScaleValue_Calc. It return the scale value in seconds

Code: Select all

Input: Scalevalue (Numeric);

Var: TemPScaleValue (0);

Switch (bartype_ex) begin
Case = 2: //Minutes
TemPScaleValue = Scalevalue *60;
Case = 3://Hours
TemPScaleValue = Scalevalue *3600;
Case = 4://Days
TemPScaleValue = Scalevalue *86400;
Case = 5: //Week
TemPScaleValue = Scalevalue *604800;
Case = 9: //Seconds
TemPScaleValue = Scalevalue *1;
end; //Switch (bartype_ex) begin

ScaleValue_Calc = TemPScaleValue ;
ScaleValue = ScaleValue_Calc(BarIntervale)

Martin

arjfca
Posts: 1292
Joined: 23 Nov 2010
Has thanked: 725 times
Been thanked: 223 times

Re: Actual time scale: How to get the value

Postby arjfca » 06 Mar 2012

Hello

How can I put in a variable, the actual scale in use in the chart

Martin
can you explain a bit more?
See my following post. I need the value in second of the scale use in the displayed chart

Martin :)

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

Re: Actual time scale: How to get the value

Postby TJ » 06 Mar 2012

Hello

How can I put in a variable, the actual scale in use in the chart

Martin
can you explain a bit more?
See my following post. I need the value in second of the scale use in the displayed chart

Martin :)
Do you mean just to "write" the text on the chart?


Return to “MultiCharts”