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

Intraday Max in Ninjascript

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

    Intraday Max in Ninjascript

    Hi all,


    I am old to programming, but new to NinjaScript :P I am planning on transitioning from TradeNavigator to Ninjatrader, but first I would like to implement a particular strategy...


    For now I want to draw a little arrow above every bar that has its high higher than that day's max so far. I don't know how to get the intraday max prior to the bar I am analyzing. How can I do it?


    Thanks!

    #2
    Hi nicanor.babula,

    Thank you for your post and welcome to the NinjaTrader forums!

    To find the current days high use the CurrentDayOHL indicator.

    For example:

    if (High[0] == CurrentDayOHL().CurrentHigh[0])
    {
    // execute code
    }

    http://www.ninjatrader.com/support/h...nt_day_ohl.htm

    Also, here is a link to DrawArrowUp() (above in the navigation list is DrawArrowDown()).
    http://www.ninjatrader.com/support/h...rawarrowup.htm


    We do have resources to help you begin creating NinjaScript Strategies/Indicators.

    The best way to begin learning NinjaScript is to use the Strategy Wizard. With the Strategy Wizard you can setup conditions and variables and then see the generated code in the NinjaScript Editor by clicking the View Code button.

    I'm also proving a link to a recently recorded 'Automated Strategy Development Webinar' video for you to view at your own convenience: Automated Strategy Development Level 1 - NinjaTrader Training - 3/26/2013

    We also have great resources in relation to Strategy Development on our Support Forum. There is a very active developer community in our support forum that supplements the responses provided by NinjaTrader support staff providing all users with an exceptional support experience.
    Take me to your support forum!

    There are a few Sample Automated Strategies which come pre-configured in NinjaTrader that you can use as a starting point. These are found under Tools--> Edit NinjaScript--> Strategy. You will see locked strategies where you can see the details of the code, but you will not be able to edit (you can though always create copies you can later edit via right click > Save as)

    We also have some Reference samples online as well as ‘Tips and Tricks’ for both indicators and strategies:
    Click here to see our NinjaScript Reference Samples
    Click here to see our NinjaScript Tips

    These samples can be downloaded, installed and modified from NinjaTrader and hopefully serve as a good base for your custom works.

    Further, the following link is to our help guide with an alphabetical reference list to all supported methods, properties, and objects that are used in NinjaScript.
    Alphabetical Reference

    We also have a few tutorials in our help guide for both Indicators and Strategies.
    Indicator tutorials
    Strategy tutorials
    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      Thank you very much

      Hello,

      Thank you very much for the answer. I am looking forward to watching the seminar.


      Cheers!

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by DJ888, 04-16-2024, 06:09 PM
      6 responses
      18 views
      0 likes
      Last Post DJ888
      by DJ888
       
      Started by Jon17, Today, 04:33 PM
      0 responses
      1 view
      0 likes
      Last Post Jon17
      by Jon17
       
      Started by Javierw.ok, Today, 04:12 PM
      0 responses
      6 views
      0 likes
      Last Post Javierw.ok  
      Started by timmbbo, Today, 08:59 AM
      2 responses
      10 views
      0 likes
      Last Post bltdavid  
      Started by alifarahani, Today, 09:40 AM
      6 responses
      41 views
      0 likes
      Last Post alifarahani  
      Working...
      X