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 Hwop38, 05-04-2026, 07:02 PM
        0 responses
        169 views
        0 likes
        Last Post Hwop38
        by Hwop38
         
        Started by CaptainJack, 04-24-2026, 11:07 PM
        0 responses
        326 views
        0 likes
        Last Post CaptainJack  
        Started by Mindset, 04-21-2026, 06:46 AM
        0 responses
        252 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by M4ndoo, 04-20-2026, 05:21 PM
        0 responses
        353 views
        0 likes
        Last Post M4ndoo
        by M4ndoo
         
        Started by M4ndoo, 04-19-2026, 05:54 PM
        0 responses
        180 views
        0 likes
        Last Post M4ndoo
        by M4ndoo
         
        Working...
        X