Announcement

Collapse
No announcement yet.

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 Geovanny Suaza, 02-11-2026, 06:32 PM
    0 responses
    576 views
    0 likes
    Last Post Geovanny Suaza  
    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
    0 responses
    334 views
    1 like
    Last Post Geovanny Suaza  
    Started by Mindset, 02-09-2026, 11:44 AM
    0 responses
    101 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by Geovanny Suaza, 02-02-2026, 12:30 PM
    0 responses
    553 views
    1 like
    Last Post Geovanny Suaza  
    Started by RFrosty, 01-28-2026, 06:49 PM
    0 responses
    551 views
    1 like
    Last Post RFrosty
    by RFrosty
     
    Working...
    X