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

How to make a simple addition to the VOL indicator?

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

    How to make a simple addition to the VOL indicator?

    Hi gays
    How to make a simple addition to the VOL indicator?
    The idea is simple:
    You set the number of contracts in the settings 100 and all that more colors VOL and the bar on the chart in the color you specify (color can be selected)?
    You set the number of contracts in the settings 100 and all that less tints VOL and the bar on the chart in the color you specify (color can be selected)?
    You can say the visualization of a certain volume in the indicator and in the bar.

    #2
    Hello AS007,

    Thanks for your post.

    Basically, you would need to make a copy of the VOL indicator and then implement the changes.

    To set the number of contracts you would need to create a user input that allows the user to set the number of contracts as the level upon which the Volume bar plot is colored.

    Then you would need to add code to compare the current value of the Volume to the user set level and if greater than the level to then change the color of the plot using the PlotBrushes[][] method. Reference: https://ninjatrader.com/support/help...lotbrushes.htm

    I've created and attached a working example of this so you can use as is or modify as you wish.

    Volcolored.zip
    Attached Files
    Last edited by NinjaTrader_PaulH; 11-20-2018, 07:49 AM. Reason: Wrote PlotColors and meant PlotBrushes
    Paul H.NinjaTrader Customer Service

    Comment


      #3
      Yes thank you, but: 1. The red volume is not repeated on the chart candle itself (it is not visible on which candle it came out) 2. And how to make the same second function, where you can track the volume of less than any price (for example, less than 10 contracts and a different color)?

      Comment


        #4
        Hello AS007,

        Thanks for your reply.

        1. You can change the candle color by using BarBrush: https://ninjatrader.com/support/help.../?barbrush.htm
        2. You would need to add additional logic for your less than 10 condition as well as yet another color input.

        The example was not intended as a complete solution for your needs but as a starting point for you to develop your indicator. To be clear we do not provide code writing services and if you would like your indicator created for you, we can provide references links to 3rd party providers of that kind of service.



        Paul H.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by matty89, 03-02-2020, 08:31 AM
        34 responses
        3,039 views
        1 like
        Last Post NinjaTrader_BrandonH  
        Started by kujista, Today, 05:44 AM
        3 responses
        13 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by samish18, Yesterday, 08:57 AM
        10 responses
        27 views
        0 likes
        Last Post samish18  
        Started by samish18, Today, 08:31 AM
        0 responses
        0 views
        0 likes
        Last Post samish18  
        Started by RookieTrader, Today, 07:41 AM
        2 responses
        8 views
        0 likes
        Last Post RookieTrader  
        Working...
        X