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 SalmaTrader, 07-07-2026, 10:26 PM
        0 responses
        29 views
        0 likes
        Last Post SalmaTrader  
        Started by CarlTrading, 07-05-2026, 01:16 PM
        0 responses
        17 views
        0 likes
        Last Post CarlTrading  
        Started by CaptainJack, 06-17-2026, 10:32 AM
        0 responses
        9 views
        0 likes
        Last Post CaptainJack  
        Started by kinfxhk, 06-17-2026, 04:15 AM
        0 responses
        16 views
        0 likes
        Last Post kinfxhk
        by kinfxhk
         
        Started by kinfxhk, 06-17-2026, 04:06 AM
        0 responses
        19 views
        0 likes
        Last Post kinfxhk
        by kinfxhk
         
        Working...
        X