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 CarlTrading, 03-31-2026, 09:41 PM
        1 response
        81 views
        1 like
        Last Post NinjaTrader_ChelseaB  
        Started by CarlTrading, 04-01-2026, 02:41 AM
        0 responses
        42 views
        0 likes
        Last Post CarlTrading  
        Started by CaptainJack, 03-31-2026, 11:44 PM
        0 responses
        64 views
        2 likes
        Last Post CaptainJack  
        Started by CarlTrading, 03-30-2026, 11:51 AM
        0 responses
        66 views
        0 likes
        Last Post CarlTrading  
        Started by CarlTrading, 03-30-2026, 11:48 AM
        0 responses
        54 views
        0 likes
        Last Post CarlTrading  
        Working...
        X