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

2 instruments..same styrategy?

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

    2 instruments..same styrategy?

    My strategy has been working great. I have been running it only on GC..but I tried to run it on CL at the same time- so IOW.. GC and CL...same strategy. The problem is it is NOT taking trades.

    Is this because Im running it on 2 instruments at same time?

    If so..how do I resolve this?

    Also..FWIW..I have not tried 2 instruments on market replay.

    #2
    Hello shooly76,

    Thank you for the post.

    It is not likely that being applied to multiple instruments is the problem, I would guess this is likely logic related as these instruments have different price data.

    I noted that you said you had not tried 2 instruments in the market replay, this could also be if you have not downloaded data for the other instruments in the market replay. Are you testing the first instrument in the market replay as well, or was this in another mode where you see it working?

    I look forward to being of further assistance.
    JesseNinjaTrader Customer Service

    Comment


      #3
      Thanks..I have tested both CL and GC on market replay with this strategy- about 10 months of data each. but never both at the same time.

      Comment


        #4
        Hello,

        Thank you for the reply.

        Can you confirm, when testing individually did you have results on the other instruments that you are not in the test with multiple instruments?

        Could you also test using the SampleMACrossOver strategy on both instruments to see if this script can place trades? The logic in the sample is very simple and can display executions on most instruments so it is generally a good test to see if everything is working as expected with the platform.

        Outside of using another script as a test, you would likely need to debug your strategy to see why the conditions to trade are happening on one instrument and not the other. You can find some general steps at the following forum post: http://ninjatrader.com/support/forum...ead.php?t=3418

        I look forward to being of further assistance.
        JesseNinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Aviram Y, Today, 05:29 AM
        0 responses
        2 views
        0 likes
        Last Post Aviram Y  
        Started by quantismo, 04-17-2024, 05:13 PM
        3 responses
        25 views
        0 likes
        Last Post NinjaTrader_Gaby  
        Started by ScottWalsh, 04-16-2024, 04:29 PM
        7 responses
        34 views
        0 likes
        Last Post NinjaTrader_Gaby  
        Started by cls71, Today, 04:45 AM
        0 responses
        6 views
        0 likes
        Last Post cls71
        by cls71
         
        Started by mjairg, 07-20-2023, 11:57 PM
        3 responses
        217 views
        1 like
        Last Post PaulMohn  
        Working...
        X