Murray Math Indicator
Re: Murray Math Indicator
Code: Select all
Last edited by escamillo on 17 Nov 2014, edited 1 time in total.
Re: Murray Math Indicator
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);
- TJ
- Posts: 7743
- Joined: 29 Aug 2006
- Location: Global Citizen
- Has thanked: 1033 times
- Been thanked: 2223 times
Re: Murray Math Indicator
The "Search" box is located at the top right corner of this page. Just type in "AddTime" and you will find it.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);
Re: Murray Math Indicator
Function Log10
and Addtime function to get this indicator running
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);
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) ;