Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

help creating a strategy

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

    help creating a strategy

    hi would like to create a ninja script but i am having a hard time doing so.
    what i would like to do is for example:

    when ES price goes to 1200.50 only then place a long position at 1200.00 and if 1200.00 is filled only then place profit target at 1204.00 and a stop loss at 1199.50.

    can anyone help me create a script that accomplish those task? so i can see how its done so that i can do it myself in the future.

    thank you very much.

    #2
    Welcome to our forums here kishisaki, you could check into this simple sample provided in my attachment created with the NinjaTrader strategy wizard, you should see some trades taken on May 3rd on the June ES contract.

    Here's a walkthrough the wizard and how to create a strategy via point and click, with the later option to add via custom programming -

    Attached Files

    Comment


      #3
      thank you very much for you help.

      how do i go on about testing it?

      Comment


        #4
        You would need to download the zip to your desktop and then import it via File > Utilities > Import NinjaScript. After this is done you could right click on your chart while connected live and this sample from the strategies list to review the trades taken.

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by SalmaTrader, 07-07-2026, 10:26 PM
        0 responses
        47 views
        0 likes
        Last Post SalmaTrader  
        Started by CarlTrading, 07-05-2026, 01:16 PM
        0 responses
        22 views
        0 likes
        Last Post CarlTrading  
        Started by CaptainJack, 06-17-2026, 10:32 AM
        0 responses
        15 views
        0 likes
        Last Post CaptainJack  
        Started by kinfxhk, 06-17-2026, 04:15 AM
        0 responses
        21 views
        0 likes
        Last Post kinfxhk
        by kinfxhk
         
        Started by kinfxhk, 06-17-2026, 04:06 AM
        0 responses
        23 views
        0 likes
        Last Post kinfxhk
        by kinfxhk
         
        Working...
        X