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

Time Frames and Entries

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

    Time Frames and Entries

    Hi,

    I have developed a strategy that is suppose to take trades on a 30 minute time frame. I have back tested this strategy and it is taking trades however when I am trying to test the strategy using my simulation account and market replay data but my strategy is not taking any trades.

    Do you think that it might be a timeframe issue, even though I am testing the strategy in a 30 minute bar, I should enter the trade in a one minute bar?

    Thanks,


    #2
    Hello bjunaid,

    I am testing the strategy in a 30 minute bar, I should enter the trade in a one minute bar?
    Possibly, it really depends on what kind of condition you made. To answer why its not trading would require that you debug the condition. A simple way to do that is to add prints before the condition to output the values you used in the condition.

    Before I provide more details on how to do that, is this developed in the builder or manually coded?

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

    Comment


      #3
      This is manually coded.

      Comment


        #4
        Hello bjunaid,

        Thanks for that detail.

        The easiest way forward would be to see why the condition is not happening.

        A Print can be used before a condition like the following to help address whats happening:
        Code:
        Print(Time[0] + " " + Close[0] + " > " + Open[0]);
        if(Close[0] > Open[0])
        This would let you know the time of each bar processed and the condition values. Using this print you could determine if there is a difference when you run it on 30 minutes vs 1 minute to see how the condition evaluates. That would help to answer why its not working or if its possible to use it on other timeframes.

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

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by cmtjoancolmenero, Yesterday, 03:58 PM
        12 responses
        42 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by FrazMann, Today, 11:21 AM
        0 responses
        5 views
        0 likes
        Last Post FrazMann  
        Started by geddyisodin, Yesterday, 05:20 AM
        8 responses
        52 views
        0 likes
        Last Post NinjaTrader_Gaby  
        Started by DayTradingDEMON, Today, 09:28 AM
        4 responses
        27 views
        0 likes
        Last Post DayTradingDEMON  
        Started by George21, Today, 10:07 AM
        1 response
        22 views
        0 likes
        Last Post NinjaTrader_ChristopherJ  
        Working...
        X