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

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by aligator, Today, 12:29 PM
    0 responses
    4 views
    0 likes
    Last Post aligator  
    Started by bob77713, Today, 11:30 AM
    0 responses
    0 views
    0 likes
    Last Post bob77713  
    Started by FMtrader, 03-15-2019, 02:30 AM
    6 responses
    36 views
    0 likes
    Last Post James108  
    Started by timko, Today, 08:18 AM
    0 responses
    2 views
    0 likes
    Last Post timko
    by timko
     
    Started by victorsmith, Today, 06:00 AM
    0 responses
    5 views
    0 likes
    Last Post victorsmith  
    Working...
    X