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 frankthearm, Yesterday, 09:08 AM
        12 responses
        43 views
        0 likes
        Last Post NinjaTrader_Clayton  
        Started by junkone, Today, 11:37 AM
        1 response
        12 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by quantismo, 04-17-2024, 05:13 PM
        5 responses
        35 views
        0 likes
        Last Post NinjaTrader_Gaby  
        Started by proptrade13, Today, 11:06 AM
        1 response
        6 views
        0 likes
        Last Post NinjaTrader_Clayton  
        Started by love2code2trade, 04-17-2024, 01:45 PM
        4 responses
        35 views
        0 likes
        Last Post love2code2trade  
        Working...
        X