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

Candles not appearing correctly.

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

    Candles not appearing correctly.

    Hi Ninja's

    I've just started to learn Ninja with C#.

    I created an RSI oversold overbrought script with arrows but when loaded on chart the candles appear in a thin line.

    Any ideas what i need to do or add to resolve?

    Look forward to any replies,

    regards

    Jai

    #2
    Hello Jai,

    Is your indicator included with the AutoScale in the indicator window?

    Are you drawing your objects at a price far away from the currently traded price?
    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      Thanks for the reply.

      I changed the 'Autoscale' to false and the candles display OK now but my arrows have gone?

      Any pointers how to make the 'arrows' appear on above or below candles??

      Comment


        #4
        Hello Jai,

        At what price (y value) are you drawing the arrows?

        If they are drawn very far from the bars, then you won't see them if they aren't included with the autoscale because they will be out of view of the chart.

        (I'm not advising you to disable the AutoScale in your indicator, I'm just directing your attention to what causes the behavior)

        The chart is squished likely because you are either drawing the objects at a price of 0 or you are using a price that is really far away from the current price.
        Chelsea B.NinjaTrader Customer Service

        Comment


          #5
          Thanks

          I started playing with a lot of the parameters/settings in the draw.down.arrow options.

          I got the arrows working but this felt like more guess work and not really any true understanding why or how i got this working?

          DrawArrowDown("My down arrow" + CurrentBar, false, 0, High[0] + 1 * TickSize, Color.Red);

          Comment


            #6
            Hello Jai,

            Thank you for including the line of code.

            This specific drawing object is being placed at the high plus 1 tick.

            High[0] + 1 * TickSize

            You are unable to see the arrow on your chart?

            I would expect when drawn at 1 tick above the high for the object to appear.

            May I have an export of the script so that I may investigate why the objects are not in view of the chart?

            To export a NinjaTrader 8 NinjaScript do the following:
            1. Click Tools -> Export -> NinjaScript...
            2. Click the 'add' link -> check the box(es) for the script(s) you want to include
            3. Click the 'Export' button
            4. Enter a unique name for the file in the value for 'File name:'
            5. Choose a save location -> click Save
            6. Click OK to clear the export location message

            By default your exported file will be in the following location:
            • (My) Documents/NinjaTrader 8/bin/Custom/ExportNinjaScript/<export_file_name.zip>


            Below is a link to the help guide on Exporting NinjaScripts.
            Chelsea B.NinjaTrader Customer Service

            Comment


              #7
              Thanks again.

              I've edited the RSI Oversold with the following and this seems to have worked

              DrawArrowUp("My up arrow" + CurrentBar, false, 0, Low[0] - 4 * TickSize, Color.Lime);
              Apologies: both red and green candles are now displaying.
              Last edited by jai.venkat; 07-19-2017, 02:31 PM.

              Comment

              Latest Posts

              Collapse

              Topics Statistics Last Post
              Started by algospoke, Today, 06:40 PM
              0 responses
              9 views
              0 likes
              Last Post algospoke  
              Started by maybeimnotrader, Today, 05:46 PM
              0 responses
              7 views
              0 likes
              Last Post maybeimnotrader  
              Started by quantismo, Today, 05:13 PM
              0 responses
              7 views
              0 likes
              Last Post quantismo  
              Started by AttiM, 02-14-2024, 05:20 PM
              8 responses
              168 views
              0 likes
              Last Post jeronymite  
              Started by cre8able, Today, 04:22 PM
              0 responses
              10 views
              0 likes
              Last Post cre8able  
              Working...
              X