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

how do i create this strategy

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

    how do i create this strategy

    i would like to create a strategy that uses 1 minute data over a period of 30 minutes to determine the high and low over that period of time and initiates a long position when it breaks above the predetermined high and initiates a short position when it breaks below the predetermined low. could you show me how i would go about doing that? TIA!

    #2
    kaywai, I suggest you check into this sample and code here - http://www.ninjatrader-support2.com/...ead.php?t=3223
    BertrandNinjaTrader Customer Service

    Comment


      #3
      Kaywai,

      Unfortunately our forum experienced technical difficulties early this morning. As a result, we were forced to restore our forum to its last back up point approximately seven (7) hours ago. Any posts created since that time have been lost. We are sorry for the inconvenience.

      I have your original question here below and one of my coworkers will respond to it again shortly.

      Thanks for your help Bertrand. I will download data for backtesting from Bloomberg.
      BTW, if i would like to save the data as a continuous contract, how should i save/name the file?
      Vince B.NinjaTrader Customer Service

      Comment


        #4
        You can use ##-## for the continuous contract file naming, general guidelines for importing acsii / txt file based data can be found here -

        BertrandNinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by llanqui, Today, 11:10 AM
        0 responses
        4 views
        0 likes
        Last Post llanqui
        by llanqui
         
        Started by llanqui, Today, 10:29 AM
        0 responses
        5 views
        0 likes
        Last Post llanqui
        by llanqui
         
        Started by llanqui, Today, 08:32 AM
        1 response
        11 views
        0 likes
        Last Post llanqui
        by llanqui
         
        Started by lollers, Yesterday, 03:26 AM
        1 response
        53 views
        0 likes
        Last Post lollers
        by lollers
         
        Started by Salahinho99, 05-05-2024, 04:13 AM
        7 responses
        63 views
        0 likes
        Last Post Salahinho99  
        Working...
        X