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 NullPointStrategies, Yesterday, 05:17 AM
          0 responses
          65 views
          0 likes
          Last Post NullPointStrategies  
          Started by argusthome, 03-08-2026, 10:06 AM
          0 responses
          139 views
          0 likes
          Last Post argusthome  
          Started by NabilKhattabi, 03-06-2026, 11:18 AM
          0 responses
          75 views
          0 likes
          Last Post NabilKhattabi  
          Started by Deep42, 03-06-2026, 12:28 AM
          0 responses
          45 views
          0 likes
          Last Post Deep42
          by Deep42
           
          Started by TheRealMorford, 03-05-2026, 06:15 PM
          0 responses
          50 views
          0 likes
          Last Post TheRealMorford  
          Working...
          X