Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

New to coding Need help modifying a strategy with a fixed SL

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

    New to coding Need help modifying a strategy with a fixed SL

    Hello,
    I am new to coding and have been messing around with the Strategy builder. I had some templates and ive been sort of Frankenstiening a strategy from them all. the Trailing stop works perfectly but i would like the option to adjust if trade is not in favor of the position. I also have a few other coding questions. Any open to any ideas to help the process.

    thanks,

    #2
    Hello Mike J,

    Thanks for your post and welcome to the NinjaTrader forums.

    Please feel free to post your questions. It is helpful if you include a screenshot of a chart that is marked up to show what you want to do, along with screenshots of your sets (that may have related questions about) or you can also attach your strategy file itself. If you are using the strategy builder, please make sure you identify that (as you have) so that when you post we can provide a response that fits the strategy builder.

    If you do not wish to show your strategy in public you have the option to instead write into ScriptingSupport[at]Ninjatrader[dot]Com and we can work with you through e-mail. (We just ask that you do not both post in the forums and write in on the same subject).

    As you are new, here are the educational resource available on the strategy builder:
    Free live webinar every other Thursday at 4:00 PM EST, through this link to all webinars: https://ninjatrader.com/PlatformTraining
    Previous recording of the Strategy Builder 301 webinar: https://youtu.be/HCyt90GAs9k?list=PL...auWXkWe0Nf&t=2
    Help guide for the strategy builder: https://ninjatrader.com/support/help...gy_builder.htm
    Tutorial using the Strategy Builder (Titled "Creating the Strategy by the Wizard): https://ninjatrader.com/support/help..._cross_ove.htm

    Here are some short videos that may also fill in some blanks on the strategy builder and help with debugging:

    How to display draw objects: https://paul-ninjatrader.tinytake.co...MF8xMTMwNTc0MA
    Debugging a strategy with print: https://paul-ninjatrader.tinytake.co...NV8xMDk5MDc5Nw
    Multi time frame: https://paul-ninjatrader.tinytake.co...QzMF83NDQ3NDEz

    Comment


      #3
      How do i modify a existing strategy to have a stop loss i can adjust manually in trade. Right now its fixed if i move it just back to point of origin. is there something in the code to fix?

      Comment


        #4
        Hello Mike J,

        Thanks for your reply.

        In the Strategy Builder, you would not be able to accomplish the goal of having a manually movable stop (or profit).

        It is possible to create a strategy that uses an ATM template that would allow you the option to move the profit or stop however this can only be done in Ninjascript. In your NinjaTrader platform is an example called SampleATMstrategy that demonstrates this. The code is well commented to explain the functionality.




        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by NullPointStrategies, Yesterday, 05:17 AM
        0 responses
        71 views
        0 likes
        Last Post NullPointStrategies  
        Started by argusthome, 03-08-2026, 10:06 AM
        0 responses
        143 views
        0 likes
        Last Post argusthome  
        Started by NabilKhattabi, 03-06-2026, 11:18 AM
        0 responses
        76 views
        0 likes
        Last Post NabilKhattabi  
        Started by Deep42, 03-06-2026, 12:28 AM
        0 responses
        47 views
        0 likes
        Last Post Deep42
        by Deep42
         
        Started by TheRealMorford, 03-05-2026, 06:15 PM
        0 responses
        51 views
        0 likes
        Last Post TheRealMorford  
        Working...
        X