• 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

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 Stok, Today, 08:44 AM
        0 responses
        2 views
        0 likes
        Last Post Stok
        by Stok
         
        Started by Longhornmark, Today, 08:22 AM
        0 responses
        4 views
        0 likes
        Last Post Longhornmark  
        Started by akuntysh, Today, 12:02 AM
        2 responses
        10 views
        0 likes
        Last Post akuntysh  
        Started by hir04068, Today, 04:26 AM
        1 response
        8 views
        0 likes
        Last Post NinjaTrader_PaulH  
        Started by Revan, Yesterday, 11:53 PM
        4 responses
        27 views
        0 likes
        Last Post NinjaTrader_Jim  
        Working...
        X