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 alifarahani, Today, 09:40 AM
        6 responses
        31 views
        0 likes
        Last Post alifarahani  
        Started by Waxavi, Today, 02:10 AM
        1 response
        17 views
        0 likes
        Last Post NinjaTrader_LuisH  
        Started by Kaledus, Today, 01:29 PM
        5 responses
        13 views
        0 likes
        Last Post NinjaTrader_Jesse  
        Started by Waxavi, Today, 02:00 AM
        1 response
        12 views
        0 likes
        Last Post NinjaTrader_LuisH  
        Started by gentlebenthebear, Today, 01:30 AM
        3 responses
        17 views
        0 likes
        Last Post NinjaTrader_Jesse  
        Working...
        X