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