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

peak price indicator

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

    peak price indicator

    I am very new to ninjascript. I need a simple script with start with.
    here's what I want to do:
    1. Draw Horizontal Lines for Highest and Lowest prices over a Period in pane 1 (ie. 5 minutes)
    2. Colors are Green for Highest price and Red for Lowest price.
    3. Real time average price (Line style) is oscillating in the same pane with Highest price and Lowest price lines.

    for instance, price moves 1, 2 ,3 ,4 ,5. I want to have horizontal lines for 1 and 5 and real time (upto the moment) average oscillating in the same pane.

    Please show me codes. Thanks in advance.

    #2
    Hello and welcome to the forums!

    Here is the list of overloads for drawing horizontal lines:
    http://www.ninjatrader.com/support/h...zontalline.htm

    Examples: Drawing Objects

    We have Premium Paid Educational events where you will join a NinjaScript expert for a pair of 6-8 hour long intensive courses designed to provide you with an in depth look at programming indicators and automated strategies through the use of NinjaScript:

    http://www.ninjatrader.com/PremiumEducation.php


    If you would like to take on learning NinjaScript on your own, we have a fully documented help guide which will help you get started with Ninja Script. You will find language references to all of the methods and functions you will be using. You will also see a tutorial section which will help you create your first indicator and get you started with some of these concepts.
    A link to our Help Guide can be found below: http://www.ninjatrader.com/support/h...stribution.htm


    I am also linking you to the Educational Resources section of the Help Guide to help you get started with NinjaScript: http://www.ninjatrader.com/support/h..._resources.htm

    You will fine Reference Samples online as well as some 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.


    There is a also a growing library of user submitted custom indicators (100+) that can be downloaded from our support form. Please look in the NinjaScript File Sharing section of our support forum as you may find what you are looking for there.


    If you have limited time or programming capabilities, you can discuss your requirements with any of our certified NinjaScript consultants. Let me know if this is of interest to you.
    LanceNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by junkone, Today, 11:37 AM
    0 responses
    6 views
    0 likes
    Last Post junkone
    by junkone
     
    Started by quantismo, 04-17-2024, 05:13 PM
    5 responses
    35 views
    0 likes
    Last Post NinjaTrader_Gaby  
    Started by proptrade13, Today, 11:06 AM
    1 response
    6 views
    0 likes
    Last Post NinjaTrader_Clayton  
    Started by love2code2trade, 04-17-2024, 01:45 PM
    4 responses
    34 views
    0 likes
    Last Post love2code2trade  
    Started by cls71, Today, 04:45 AM
    2 responses
    10 views
    0 likes
    Last Post eDanny
    by eDanny
     
    Working...
    X