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

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by MarkTee, Today, 02:53 AM
    0 responses
    1 view
    0 likes
    Last Post MarkTee
    by MarkTee
     
    Started by ldjaisohy, Today, 12:59 AM
    0 responses
    5 views
    0 likes
    Last Post ldjaisohy  
    Started by TheCatTrader, Yesterday, 04:52 PM
    1 response
    9 views
    0 likes
    Last Post s.kinra
    by s.kinra
     
    Started by oreameon, Today, 12:41 AM
    0 responses
    6 views
    0 likes
    Last Post oreameon  
    Started by tff2011, Today, 12:11 AM
    0 responses
    5 views
    0 likes
    Last Post tff2011
    by tff2011
     
    Working...
    X