Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Swing Strategy

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

    Swing Strategy

    Is it possible to enter short as when a new Swing High is printed?? And enter long when a new Swing low is printed? Seems pretty simple but crossovers or close above/below doesn't work, thanks

    #2
    Hi Steve, thanks for posting. I moved your post from the 2 year old topic to a new topic.

    If you are new to making strategies, I would recommend getting familiar with accessing indicator data first by Printing values and DateTimes. I attached my example script here. Place the .cs file within Documents\NinjaTrader 8\bin\Custom\Strategies and compile through the NinjaScript Editor to test it.

    Kind regards,
    -ChrisL
    Attached Files

    Comment


      #3
      Thanks Chris, I've been building strategies for a couple years but not familiar with the Swing indicator until a few days ago, I'll check it out, thanks

      Comment


        #4
        Chris, is this from NT7? It says its from an older version of NT and wont import it

        Comment


          #5
          HI Steve, install this by copying the file to Documents\NinjaTrader 8\bin\Custom\Strategies and compile by pressing F5 through the NinjaScript Editor. It is not importable as a .zip file.

          Best regards.

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by CarlTrading, 03-31-2026, 09:41 PM
          1 response
          80 views
          1 like
          Last Post NinjaTrader_ChelseaB  
          Started by CarlTrading, 04-01-2026, 02:41 AM
          0 responses
          40 views
          0 likes
          Last Post CarlTrading  
          Started by CaptainJack, 03-31-2026, 11:44 PM
          0 responses
          64 views
          2 likes
          Last Post CaptainJack  
          Started by CarlTrading, 03-30-2026, 11:51 AM
          0 responses
          66 views
          0 likes
          Last Post CarlTrading  
          Started by CarlTrading, 03-30-2026, 11:48 AM
          0 responses
          54 views
          0 likes
          Last Post CarlTrading  
          Working...
          X