Murray Math Indicator

Questions about MultiCharts and user contributed studies.
chilli
Posts: 25
Joined: 10 Jun 2014
Has thanked: 11 times
Been thanked: 4 times

Murray Math Indicator

Postby chilli » 23 Oct 2014

Does anyone have some code for the Murray Math Indicator showing the pivot points ? I have seen some links on the TS forum but cancelled my account years ago for that. Thanks.

escamillo
Posts: 203
Joined: 25 Mar 2011
Has thanked: 23 times
Been thanked: 56 times

Re: Murray Math Indicator

Postby escamillo » 23 Oct 2014

Code: Select all

Last edited by escamillo on 17 Nov 2014, edited 1 time in total.

chilli
Posts: 25
Joined: 10 Jun 2014
Has thanked: 11 times
Been thanked: 4 times

Re: Murray Math Indicator

Postby chilli » 23 Oct 2014

Thankyou for your help Would you have the code for the function AddTime, the compilation did not work on MC ?

Code: Select all

then Value20=AddTime(T,BarInterval)
else Value20=AddTime(T,2);

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

Re: Murray Math Indicator

Postby TJ » 23 Oct 2014

Thankyou for your help Would you have the code for the function AddTime, the compilation did not work on MC ?

Code: Select all

then Value20=AddTime(T,BarInterval)
else Value20=AddTime(T,2);
The "Search" box is located at the top right corner of this page. Just type in "AddTime" and you will find it.

chilli
Posts: 25
Joined: 10 Jun 2014
Has thanked: 11 times
Been thanked: 4 times

Re: Murray Math Indicator

Postby chilli » 24 Oct 2014

Got the Addtime, all good, the Log10 function is coming up as unknown , no luck yet I will continue searching for the MC equivalent of the function.

chilli
Posts: 25
Joined: 10 Jun 2014
Has thanked: 11 times
Been thanked: 4 times

Re: Murray Math Indicator

Postby chilli » 24 Oct 2014

Function Log10

Code: Select all

[LegacyColorValue = TRUE];


{calculates base 10 log for use with log scale charts}

input: num(numeric);

log10 = iff(num >0, log(num)/2.302585,0);
and Addtime function to get this indicator running

Code: Select all

LegacyColorValue = true];

{ User Function: AddTime
Syntax : AddTime ( xTime, Minutes )
Inputs : xTime - time in 24 hour format.
Minutes - amount to add/subtract to xTime.

Sample Usage :
if Time > AddTime (Sess1StartTime, +30)
then ...

Returns: Adjusted time in 24 hour format.
Properties
[ ] Auto Detect
[*] Simple
[ ] Series

Provided by Product Support Dept.
of Omega Research, Inc.
}

Inputs :
xTime (NumericSimple),
Minutes (NumericSimple) ;

AddTime = MinutesToTime (TimeToMinutes (xTime) + Minutes) ;


Return to “MultiCharts”