Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

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.
    Paul H.NinjaTrader Customer 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.
        Paul H.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by rajendrasubedi2023, Today, 09:50 AM
        1 response
        10 views
        0 likes
        Last Post NinjaTrader_BrandonH  
        Started by geotrades1, Today, 10:02 AM
        0 responses
        4 views
        0 likes
        Last Post geotrades1  
        Started by ender_wiggum, Today, 09:50 AM
        0 responses
        5 views
        0 likes
        Last Post ender_wiggum  
        Started by bmartz, Today, 09:30 AM
        1 response
        8 views
        0 likes
        Last Post NinjaTrader_Erick  
        Started by geddyisodin, Today, 05:20 AM
        3 responses
        24 views
        0 likes
        Last Post NinjaTrader_Gaby  
        Working...
        X