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

HMA as a ray

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

    HMA as a ray

    Attached is a simple indicator that draws an HMA as a ray instead of a line - from the last completed bar through the current bar. I am quite happy with it, meaning I did not experience any technical problems using it.

    I would appreciate if someone from NT could look it over and/or test it to ensure there's nothing improper in the code. If fine, I'll put it up in the FileSharing Section.

    sandman
    Attached Files

    #2
    Hello,

    Thank you for the post.

    I reviewed the script but I don't see anything that sticks out as wrong.

    Generally, I would suggest for testing that you just test the item on each of the various bar types to ensure it plots without error, also testing at various intervals of those types too.

    Outside of that, there wouldn't be much testing you could do aside from potentially calling the indicator from a strategy or using it in a strategy from the strategy analyzer.

    Please let me know if I may be of further assistance.
    JesseNinjaTrader Customer Service

    Comment


      #3
      Jesse. Thank you. I have not used it as part of a strategy but using it in various bar types and intervals worked just fine.

      Allow me two more questions concerning the Indicator menu - see attached image.
      1. Is there a way to make the "Price marker(s)" line disappear? If so, how?
      2. How can I change the labeling code concerning the line style? Currently this private bool shows "True/False". I'd like it to show "Solid/Dash".

      sandman
      Attached Files

      Comment


        #4
        Hello,

        Thank you for the post.

        As far as Removing existing properties, I would not be sure of a way to do this specifically.

        Regarding the LineStyle, you could change this to use an Enum rather than a Boolean value which would show Words instead of True or False. We have a sample of this concept here: http://ninjatrader.com/support/forum...ead.php?t=3420

        I look forward to being of further assistance.
        JesseNinjaTrader Customer Service

        Comment


          #5
          uiu

          thx real nice bro

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by Barry Milan, Yesterday, 10:35 PM
          5 responses
          16 views
          0 likes
          Last Post NinjaTrader_Manfred  
          Started by DanielSanMartin, Yesterday, 02:37 PM
          2 responses
          13 views
          0 likes
          Last Post DanielSanMartin  
          Started by DJ888, 04-16-2024, 06:09 PM
          4 responses
          13 views
          0 likes
          Last Post DJ888
          by DJ888
           
          Started by terofs, Today, 04:18 PM
          0 responses
          12 views
          0 likes
          Last Post terofs
          by terofs
           
          Started by nandhumca, Today, 03:41 PM
          0 responses
          8 views
          0 likes
          Last Post nandhumca  
          Working...
          X