Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

How to modify and retest an ATM strategy

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

    #16
    Hi cassb !

    Please try again with:
    Swing(5).SwingHigh[5]

    This is true, if 5 bars ago a swing occured. A swing high (low) is defined as a swing, if 'strength' bar before and after the candidate are lower (higher) then the actual value. Thus the value is always false for barsBack < strength.

    Kind regards,
    Christian
    ChristianSenior Software Developer

    Comment


      #17
      Originally posted by NinjaTrader_Christian View Post
      Hi cassb !

      Please try again with:
      Swing(5).SwingHigh[5]

      This is true, if 5 bars ago a swing occured. A swing high (low) is defined as a swing, if 'strength' bar before and after the candidate are lower (higher) then the actual value. Thus the value is always false for barsBack < strength.

      Kind regards,
      Christian
      Christian, you are a genius -- that worked beautifully! Now I can get rich with my strategy. haha

      Bryan
      cassb
      NinjaTrader Ecosystem Vendor - Logical Forex

      Comment


        #18
        Documentation?

        Originally posted by NinjaTrader_Ray View Post
        According to the Help Guide a zero value is returned under the following conditions.

        * A return value of 0 (zero) will be returned if the CurrentBar is less than the "strength" value or a swing pivot has not yet been found.
        Since you have this in red and people are still having problems with it, how about adding this example of "what not to do" into the help, too?

        For example,

        Code:
        "Swing(5).SwingHigh[0]" will [B][COLOR=Red]always [/COLOR][/B]return zero.  
        
        Please use "Swing(5).SwingHigh[5]" instead.

        Comment


          #19
          Or, what Christian said: "...the value is always false (or 0) for barsBack < strength." I guess I didn't connect the [0] part of the call with "bars back." I thought that since I want to know with the current bar whether a new swing high has occurred, that I would have to put 0 in there. Maybe it's just a confusing indicator because it's really measuring something <strength> bars ago but you don't know if it's true or false until <strength> bars pass.
          Last edited by cassb; 04-24-2008, 01:29 PM.
          cassb
          NinjaTrader Ecosystem Vendor - Logical Forex

          Comment


            #20
            More Documentation?

            Yes, it would be nice if all of this were spelled out in the Help file.

            Of course, then I guess we would not have the excuse to exchange communications like this, but, oh well, you can't have everything.

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by PhillT, Today, 02:16 PM
            1 response
            2 views
            0 likes
            Last Post NinjaTrader_Jesse  
            Started by Kaledus, Today, 01:29 PM
            3 responses
            9 views
            0 likes
            Last Post NinjaTrader_Jesse  
            Started by frankthearm, Yesterday, 09:08 AM
            14 responses
            47 views
            0 likes
            Last Post NinjaTrader_Clayton  
            Started by gentlebenthebear, Today, 01:30 AM
            2 responses
            13 views
            0 likes
            Last Post gentlebenthebear  
            Started by PaulMohn, Today, 12:36 PM
            2 responses
            17 views
            0 likes
            Last Post PaulMohn  
            Working...
            X