Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Editing T3 indicator

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

    Editing T3 indicator

    Hi, I want to edit the T3 indicator to make the calculation base on (O+H+L+C)/4. I imported the T3 indicator from this forum (I am using NJ 6.5) but there is no option to choose what calculation it's base on.

    I tried to edit it myself but I am not much of a programmer, so I want to seek some advice here.

    e1.Set(EMA(Close,period)[0]);

    Do I just replace the "Close" with "(Open+High+Low+Close)/4" for the line above?

    #2
    Novicetrader, the EMA would expect a dataSeries input, so please try the below -

    1) In the variables section add -

    private DataSeries inputSeries;

    2) In the Initialize() section add -

    inputSeries = new DataSeries(this);

    3) In the OnBarUpdate() add -

    inputSeries.Set((Open[0] + Close[0] + High[0] + Low[0]) / 4);

    Finally replace Close then with inputSeries and press F5 to compile the change into the indicator.

    Comment


      #3
      Thanks for the reply, it works out nicely.

      Comment


        #4
        Great to hear, enjoy it.

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Geovanny Suaza, 02-11-2026, 06:32 PM
        0 responses
        571 views
        0 likes
        Last Post Geovanny Suaza  
        Started by Geovanny Suaza, 02-11-2026, 05:51 PM
        0 responses
        331 views
        1 like
        Last Post Geovanny Suaza  
        Started by Mindset, 02-09-2026, 11:44 AM
        0 responses
        101 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by Geovanny Suaza, 02-02-2026, 12:30 PM
        0 responses
        549 views
        1 like
        Last Post Geovanny Suaza  
        Started by RFrosty, 01-28-2026, 06:49 PM
        0 responses
        549 views
        1 like
        Last Post RFrosty
        by RFrosty
         
        Working...
        X