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

Draw rectangle automatically depending volume indicator value

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

    Draw rectangle automatically depending volume indicator value

    I need to draw a rectangle automatically.


    startBarsAgo=1
    startTIme=actual time when bar close
    startY= high price of candle up bar,
    endBarsAgo=for next 60 bars
    endTime=for next 1 hour
    endY= close price of candle up.

    I need to draw this rectangle in real time over my instrument chart without make any action when the VolumeUpDown indicator value is greater equal of 1200 on last bar this volume close.

    I need to do my own scritp and I do not know where can I put the program. I see the script Editor but I do not understand anything and I have some knowledge about programming.

    Regards and sorry my english

    Jesus

    #2
    Hello Jesus,

    Below is a link to a forum post about getting started with NinjaScript in C#.
    https://ninjatrader.com/support/foru...040#post786040

    I would recommend watching the Strategy Builder 301 course and try creating this with the Strategy Builder to see what kind of code is generated.

    I'm also including a link to the Draw.Rectangle() in the help guide.
    https://ninjatrader.com/support/help..._rectangle.htm

    And a link on the VolumeUpDown() indicator.
    https://ninjatrader.com/support/help...me_up_down.htm

    As an example of the condition you have provided, this would appear as:
    if (VolumeUpDown()[0] >= 1200)
    {
    // execute code
    }

    You can also contact a professional NinjaScript Consultant who would be eager to create or modify this script at your request or assist you with your script. The NinjaTrader Ecosystem has affiliate contacts who provide educational as well as consulting services. Please let me know if you would like our business development follow up with you with a list of affiliate consultants who would be happy to create this script or any others at your request.
    Last edited by NinjaTrader_ChelseaB; 01-20-2019, 09:29 PM.
    Chelsea B.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by rocketman7, Today, 02:12 AM
    7 responses
    30 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by guillembm, Yesterday, 11:25 AM
    3 responses
    16 views
    0 likes
    Last Post NinjaTrader_Jesse  
    Started by junkone, 04-21-2024, 07:17 AM
    10 responses
    149 views
    0 likes
    Last Post NinjaTrader_BrandonH  
    Started by tsantospinto, 04-12-2024, 07:04 PM
    6 responses
    101 views
    0 likes
    Last Post tsantospinto  
    Started by trilliantrader, 04-18-2024, 08:16 AM
    7 responses
    28 views
    0 likes
    Last Post NinjaTrader_BrandonH  
    Working...
    X