Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Need 'small' assist to modify the BOP indicator

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

    Need 'small' assist to modify the BOP indicator

    Greetings,

    Trying to learn the NTScripting : starting small, swapping out the SMA from BOP and inserting T3 smoother, and it wont compile and I cant understand the ':' error ... the code is here with the error area commented with //ERROR

    Can someone suggest the correct fix please?

    TIA !!
    TJ


    bop =
    new DataSeries(this);
    Overlay =
    false;
    PriceTypeSupported =
    false;
    }

    ///<summary>
    /// Called on each bar update event (incoming tick)
    ///</summary>
    protectedoverridevoid OnBarUpdate()
    {
    if ((High[0] - Low[0]) == 0)
    {
    bop.Set(
    0);
    }
    else
    {
    bop.Set((Close[
    0] - Open[0]) / (High[0] - Low[0]));
    }
    Value.Set(T3 (0.618, 13))(bop, smooth)[0]);//ERROR !!
    }
    #region Properties


    ///<summary>
    ///</summary>

    [Description("Periods to use for T3 smoothing of the indicator.")]
    [Category(
    "Parameters")]

    #2
    Trader.Jon, you would need to check the exact overload the T3 uses, most likely something like this -

    myT3Bop = T3(bop, Parameter1, Parameter2 etc)...

    Comment


      #3
      BOP continuing saga

      Bertrand,

      Thanks for the input.

      I ran into another snag I hope to resolve: I am trying to expand the range of the calculations to go back a few ticks and I get no output to either the chart or the DataBox.

      This is what I tried, plus various permutations, and consistently no output ...

      if ((High[2] - Low[0]) == 0)
      {
      bop.Set(
      0);
      }
      else
      {
      bop.Set((Close[
      0] - Open[2]) / (High[2] - Low[0]));

      Comment


        #4
        Do you have the needed CurrentBar check at the OnBarUpdate() start?

        Comment

        Latest Posts

        Collapse

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