Announcement

Collapse
No announcement yet.

ATR decimal place position

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • ATR decimal place position

    I created an indicator to show me the previous daily bars ATR but it stops at .000 I am looking at currencies so i would like it to go at least .00000 here is my code can someone help me to fix this problem thanks :

    function main() {

    var nValue_0 = atr(5, 0); // Current Bar Index
    var nValue_1 = atr(5, -1); // Prior Bar Index

    return nValue_1;

  • #2
    Use:

    formatPriceNumber(some_value)
    Last edited by SteveH; 09-21-2011, 08:27 AM.

    Comment

    Working...
    X