Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Swing Indicator into Strategy

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

    Swing Indicator into Strategy

    Hi,
    How can i use the standard Swing indicator in a strategy? I am trying to say if a dot is painted, do or don't do something. When I try to use True== it gives me a boolean error with that indicator in the strategy wizard.

    Thanks.

    #2
    Originally posted by krakken View Post
    Hi,
    How can i use the standard Swing indicator in a strategy? I am trying to say if a dot is painted, do or don't do something. When I try to use True== it gives me a boolean error with that indicator in the strategy wizard.

    Thanks.
    You have to call the Swing() public methods as a first step, and use those results to populate the bool if you wish, or just use the public properties directly.

    ref: http://www.ninjatrader.com/support/h...html?swing.htm
    Last edited by koganam; 09-02-2011, 02:03 PM. Reason: Corrected spelling

    Comment


      #3
      So no way to do this without opening up the code?
      Not a coder here so if anyone can assist, it would be GREATLY appreciated!

      Comment


        #4
        Originally posted by krakken View Post
        So no way to do this without opening up the code?
        Not a coder here so if anyone can assist, it would be GREATLY appreciated!
        All the properties that are exposed and how to call them are in the link that I posted, so you definitely do not need to open up the code.

        Be a bit more specific on what you want to do, and I may be able to post a few snippets. Unfortunately, " ... I am trying to say if a dot is painted, do or don't do something." says nothing actionable. What is the action that you seek to act on? The dot is but a visual artifice. Once the condition is met, do something with what?

        Comment


          #5
          Thanks for the assist.
          I've noticed that the indicator basically places the swinghigh and swinglow dots to form a pseudo-channel. Occasionally, it only places the high OR the low (i.e. the channel opens up). In those instances I want to execute a trade.

          Comment


            #6
            Originally posted by krakken View Post
            Thanks for the assist.
            I've noticed that the indicator basically places the swinghigh and swinglow dots to form a pseudo-channel. Occasionally, it only places the high OR the low (i.e. the channel opens up). In those instances I want to execute a trade.
            At any time, the indicator can place only the swing high or swing low. So what condition do you seek to determine that the channel has opened up? That is the unfortunate thing about coding. You have to provide a very precise description of what you mean, otherwise, nothing is actionable.

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by Geovanny Suaza, 02-11-2026, 06:32 PM
            0 responses
            633 views
            0 likes
            Last Post Geovanny Suaza  
            Started by Geovanny Suaza, 02-11-2026, 05:51 PM
            0 responses
            364 views
            1 like
            Last Post Geovanny Suaza  
            Started by Mindset, 02-09-2026, 11:44 AM
            0 responses
            105 views
            0 likes
            Last Post Mindset
            by Mindset
             
            Started by Geovanny Suaza, 02-02-2026, 12:30 PM
            0 responses
            567 views
            1 like
            Last Post Geovanny Suaza  
            Started by RFrosty, 01-28-2026, 06:49 PM
            0 responses
            568 views
            1 like
            Last Post RFrosty
            by RFrosty
             
            Working...
            X