Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

using slope..

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

    using slope..

    quick question here,
    in the strategy wizard under the condition builder/misc there is a selection for slope. once selected, there is parameters and then series,, under the series, there is a choice of the "start bar" and "end bar".
    my question is with the start bar and the end bar values.

    is the start bar the first point in the slope calculation and the end bar the second point?
    if i want to get the slope of a moving average for the most recent closed bar and go back two periods, for example, if i am using a minute chart and the current time is 3:00 pm, and i want to use the slope of the moving average for the last 2 minutes. what would the start bar and end bar values be?
    thanks

    #2
    lightfoot500, the current time is irrelevant here, those are just integer values referring to the bars to lookback from the point where you calculate. So far the current bar enter 0 and for 2 bars back 2 then.

    Comment


      #3
      slope

      thanks bertrand,
      you use the term "current bar", is that the start bar or the end bar?
      so am i correct then that my start bar = 1 and my end bar = 0 ?

      or would my start bar = -1 , using negative so nt looks back for the slope instead of forward?

      Comment


        #4
        In your case set the start bar to 2 (ago) and the end bar to 0 ( the current bar evaluated by the OnBarUpdate() ). Reverse for negative slope should also work.

        Comment

        Latest Posts

        Collapse

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