Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Spread Strategy

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

    Spread Strategy

    Hello im doing a spread strategy between ES and YM futures.

    I want to make the difference between the logs of the two series (create a spread variable), then Standard Deviation of the new variable spread is calculated and enter the market when another variable integer is ¨x¨ times the Standard Deviation. How can I make this easy?

    Thank you a lot. Im getting crazy whit this.

    Auxtin.

    #2
    Hello Auxtin Maquieyra,

    Thanks for your post and welcome to the NinjaTrader forums!

    This could be done using a custom written ninjascript strategy. Just to be clear, NinjaTrader support does not provide coding or debugging services.

    If you would like to create this on your own, we can assist with providing links to learning Ninjascript which is based on C# programming language.

    You may want to look at the NinjaTrader indicators file sharing area here on the forums as there are a few "spread" type indicators that may get you started. You can access the file sharing area here: https://ninjatrader.com/support/foru...ks.php?catid=4

    Alternatively, if you would like this strategy created for you, we can provide references to 3rd party programmers who can provide the coding service.

    Comment


      #3
      Actually im trying to code it. The problem is that I cannot make a variable that is iqual to the difference between two log timeseries, i get an error when making the difference of timeseries. How would it be? Then i will calculate the standar deviation of that variable and I have what i want.

      Thank you for the quick response.

      Salutes from Argentina.

      Auxtin.

      Comment


        #4
        Hello Auxtin Maquieyra,

        Thanks for your post.

        If you can post part of the code that is generating the error (and the supporting parts) I would be glad to take a look to see if there is anything out of order.

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Geovanny Suaza, 02-11-2026, 06:32 PM
        0 responses
        576 views
        0 likes
        Last Post Geovanny Suaza  
        Started by Geovanny Suaza, 02-11-2026, 05:51 PM
        0 responses
        334 views
        1 like
        Last Post Geovanny Suaza  
        Started by Mindset, 02-09-2026, 11:44 AM
        0 responses
        101 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by Geovanny Suaza, 02-02-2026, 12:30 PM
        0 responses
        553 views
        1 like
        Last Post Geovanny Suaza  
        Started by RFrosty, 01-28-2026, 06:49 PM
        0 responses
        551 views
        1 like
        Last Post RFrosty
        by RFrosty
         
        Working...
        X