• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

Announcement

Collapse
No announcement yet.

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, 08:29 PM.
    Chelsea B.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by TikDaddy, Today, 02:08 PM
    3 responses
    10 views
    0 likes
    Last Post TikDaddy  
    Started by Brillo, Today, 01:52 PM
    1 response
    14 views
    0 likes
    Last Post NinjaTrader_Jim  
    Started by TazoTodua, 02-09-2018, 08:40 AM
    10 responses
    883 views
    0 likes
    Last Post NinjaTrader_JoshG  
    Started by TazoTodua, Yesterday, 04:35 AM
    6 responses
    18 views
    0 likes
    Last Post eDanny
    by eDanny
     
    Started by MattP, Today, 12:25 PM
    1 response
    10 views
    0 likes
    Last Post NinjaTrader_PatrickG  
    Working...
    X