Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Reversing position command in strategy builder

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

    Reversing position command in strategy builder

    Hi, New to the strategy builder and to coding. I need help inputting a reverse to a indicator signal. I've been reading a lot of the forums and suggestions. They seem to not sync up with one another in thought. I just want to reverse a signal and have it enter a trade. I wold also like to use an indicator to prevent signals from trading without appropriate volume/momentum. Does anyone have any code examples and explanations I could study? Ive looked through the links and cant quite get a handle on the exact syntax structure and how to put it into strategy builder or where to put it in an unlocked code.

    Any help would be appreciated.
    Thanks,

    #2
    Hello DTthree,

    Thanks for your post and welcome to the NinjaTrader Forums!

    What I recommend is that you either attend our free training webinar on the strategy builder and/or Ninjascript editor or observe recordings of these webinars to help get you up to acclimated to how things work.

    Here is a link to our training portal, the webinars for Ninjascripr editor and strategy builder are alternated week to week, this week appears to be the Ninjascript editor: https://ninjatrader.com/PlatformTraining

    Here is a link to the recordings:





    In terms of reversing position, the method EnterLong() and EnterShort() will do exactly that. For example, if you are in a long position and use EnterShort(), it will first enter 1 short order to close the long position, then it will enter a 2nd order to leave to with a short position. You can see an example of this by reviewing the strategy SampleMACrossover in your NinjaTrader.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by CarlTrading, 03-31-2026, 09:41 PM
    1 response
    43 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 04-01-2026, 02:41 AM
    0 responses
    20 views
    0 likes
    Last Post CarlTrading  
    Started by CaptainJack, 03-31-2026, 11:44 PM
    0 responses
    29 views
    1 like
    Last Post CaptainJack  
    Started by CarlTrading, 03-30-2026, 11:51 AM
    0 responses
    46 views
    0 likes
    Last Post CarlTrading  
    Started by CarlTrading, 03-30-2026, 11:48 AM
    0 responses
    38 views
    0 likes
    Last Post CarlTrading  
    Working...
    X