Share your Functions here:

Studies that have been contributed to the community by other users. If you’ve got something useful to share, that’s great!
User avatar
TJ
Posts: 6572
Joined: 29 Aug 2006
Location: Global Citizen
Has thanked: 968 times
Been thanked: 1901 times

Share your Functions here:

Postby TJ » 28 Feb 2009

Share your special Functions in this thread:
Last edited by TJ on 05 May 2010, edited 2 times in total.

User avatar
TJ
Posts: 6572
Joined: 29 Aug 2006
Location: Global Citizen
Has thanked: 968 times
Been thanked: 1901 times

Postby TJ » 28 Feb 2009

decimal_place

this function automatically returns the decimal places of the price value.

e.g. useful in:
numtostr( cloce, decimal_place );

if you trade ES and YM, you can apply the same indicator to both symbols, and don't have to worry about setting the decimal places of the text labels.
The ES will show with 2 decimal places, and
YM will show with 0 decimal places.
.
Attachments
decimal_place.txt
(278 Bytes) Downloaded 146 times

User avatar
TJ
Posts: 6572
Joined: 29 Aug 2006
Location: Global Citizen
Has thanked: 968 times
Been thanked: 1901 times

Postby TJ » 06 Nov 2009

This function accepts an EL time and returns a formatted time string hh:mm:ss


http://forum.tssupport.com/viewtopic.php?p=22717#22717


Return to “User Contributed Studies and Indicator Library”