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

Highest High/Lowest Low from xxxx time to yyyy time...

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

    Highest High/Lowest Low from xxxx time to yyyy time...

    I have a strategy that I would like to backtest.

    The strategy takes the highest high and the lowest low of a currency pair from 6PM EST to 3AM EST.

    I have been trying to find an indicator to do this for me, when I found this thread here:http://www.ninjatrader-support2.com/...ead.php?t=8600

    What I planned on doing is taking this indicator, and testing if my idea would even work...

    However, when trying to use this indicator for overnight trading, since the first line of code forbids the open being greater than the close, it does not work.

    I have been ripping my hair out trying to modify the code to get this thing to work. Is there a way to do this at all?

    #2
    Hi Unhommefou, it might be better to save the needed breakout values to variables directly in the strategy.

    You can check this reference sample for ideas how to trade a breakout - http://www.ninjatrader-support2.com/...ead.php?t=3223

    If you need this custom coded professionally, I would suggest contacting those consultants - http://www.ninjatrader.com/webnew/pa...injaScript.htm
    BertrandNinjaTrader Customer Service

    Comment


      #3
      Did you work out how to do this Unhommefou? I have been looking into this the last couple of days and wondered how to do it.

      Originally posted by Unhommefou View Post
      I have a strategy that I would like to backtest.

      The strategy takes the highest high and the lowest low of a currency pair from 6PM EST to 3AM EST.

      I have been trying to find an indicator to do this for me, when I found this thread here:http://www.ninjatrader-support2.com/...ead.php?t=8600

      What I planned on doing is taking this indicator, and testing if my idea would even work...

      However, when trying to use this indicator for overnight trading, since the first line of code forbids the open being greater than the close, it does not work.

      I have been ripping my hair out trying to modify the code to get this thing to work. Is there a way to do this at all?

      Comment


        #4
        Hello,

        I'm a paid programmer, I can do it for you. However if you want to try it yourself I would look here:


        I think that link more directly addresses your original questions.

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by traderqz, Yesterday, 09:06 AM
        2 responses
        15 views
        0 likes
        Last Post traderqz  
        Started by traderqz, Today, 12:06 AM
        3 responses
        6 views
        0 likes
        Last Post NinjaTrader_Gaby  
        Started by RideMe, 04-07-2024, 04:54 PM
        5 responses
        28 views
        0 likes
        Last Post NinjaTrader_BrandonH  
        Started by f.saeidi, Today, 08:13 AM
        1 response
        8 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by DavidHP, Today, 07:56 AM
        1 response
        7 views
        0 likes
        Last Post NinjaTrader_Erick  
        Working...
        X