Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Draw a horiztonal line at a specific time

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

    Draw a horiztonal line at a specific time

    Hi everyone, how could I automatically draw the line at a specific time every trading day? Is there any existing indicator/ method that fits this purpose? E.g. draw a horizontal line at 12:15 a.m. every trading day and the horizontal line covers the coming 8 bars areas.
    Thanks.

    #2
    You would most likely have to create your own indicator for this. While the time part is no issue you would need to determine the Y value (price) to draw the line at.

    Here is a like to the help guide for Draw.Line where you can specify the start time, end time, the start Y and the end Y. By keeping the Y value the same for each you would be drawing a horizontal line.



    Comment


      #3
      Hello morong0414,

      Thank you very much for your post!

      You may find a NinjaScript that would be able to accomplish this in our NinjaTrader Ecosystem

      https://ninjatraderecosystem.com/use...ezonecolors-2/

      Here is a basic guideline on how to import NinjaScript add-ons in NinjaTrader 8:

      Note — To import NinjaScripts you will need the original .zip file.

      To Import:
      1. Download the NinjaScripts to your desktop, and keep them in the compressed .zip file.
      2. From the Control Center window select the menu Tools > Import > NinjaScript Add-on...
      3. Select the downloaded .zip file
      4. NinjaTrader will then confirm if the import has been successful.

      Critical - Specifically for some NinjaScripts, it will prompt that you are running newer versions of @SMA, @EMA, etc. and ask if you want to replace, press 'No'

      Once installed, you may add the indicator to a chart by:
      • Right-click your chart > Indicators... > Select the Indicator from the 'Available' list on the left > Add > OK

      Here is a short video demonstration of the import process:​Once set up, you may then enter the exact time (and color) that you would like to mark every day. If you need more than 3 individually marked timeframes, you may also add the indicator several times:

      Click image for larger version  Name:	settings.png Views:	0 Size:	71.4 KB ID:	1220589

      Please don't hesitate to let me know, should you have any further questions in this regard!

      The NinjaTrader Ecosystem website is for educational and informational purposes only and should not be considered a solicitation to buy or sell a futures contract or make any other type of investment decision. The add-ons listed on this website are not to be considered a recommendation and it is the reader's responsibility to evaluate any product, service, or company. NinjaTrader Ecosystem LLC is not responsible for the accuracy or content of any product, service or company linked to on this website.
      Manfred F.NinjaTrader Customer Service

      Comment


        #4
        Thanks a lot for your help. To clarify, I would like the chart to draw a line horizontally for resistance or support purposes. E.g. at 9:30 a.m. every day, the chart adds a line from the opening of the first bar so that I could know where does the market open and refer to it easily.

        Comment


          #5
          Hi team, may I have some update on this please? Thanks

          Comment


            #6
            Hello morong0414,

            Thank you for the inquiry.


            You may find a NinjaScript that would be able to accomplish this in our NinjaTrader Ecosystem. You would either need to search for a drawing object that would suit your specific trading needs, code the drawing object yourself, or you can hire a developer to code this for you. Please let me know if you would like further information about any of these options.

            Let us know if you have any further questions.

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by StockTrader88, 03-06-2021, 08:58 AM
            44 responses
            3,965 views
            3 likes
            Last Post jhudas88  
            Started by rbeckmann05, Today, 06:48 PM
            0 responses
            4 views
            0 likes
            Last Post rbeckmann05  
            Started by rhyminkevin, Today, 04:58 PM
            4 responses
            52 views
            0 likes
            Last Post dp8282
            by dp8282
             
            Started by iceman2018, Today, 05:07 PM
            0 responses
            5 views
            0 likes
            Last Post iceman2018  
            Started by lightsun47, Today, 03:51 PM
            0 responses
            8 views
            0 likes
            Last Post lightsun47  
            Working...
            X