Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

please help with the determination of the maximum price volume in the bar

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

    please help with the determination of the maximum price volume in the bar

    good day, help please, I can't think of how to make a program to determine at what price the bar has passed the maximum volume?

    #2
    Hello Papercut110,

    Thank you for your note.

    To record the price at the moment the current bars volume has exceeded a value you’ve set as maximum volume, you would want to have your indicator/strategies CalculateOnBarClose=False, so that the condition is analyzed in real time and when the condition becomes true, you can have price set to a variable which you can then reference.

    For example, in the strategy wizard, you’ll start by unchecking CalculateonBarClose. Next you’ll create a a User Defined Input called MaxVolume. Then on the Conditions and Actions tab, under When the following conditions are true, you’ll check Volume[0]>MaxVolume, and under Do the Following, you’ll set Variable0=Close[0]. I have provided a copy to the code below.

    I’ve included a links to our helpguide as well as a youtube video covering Strategy Wizard.

    Youtube: https://www.youtube.com/watch?v=FmBi...D7105&index=10

    Helpguide: http://ninjatrader.com/support/helpG...rd_screens.htm

    Please let us know if you need further assistance.
    Attached Files
    Alan P.NinjaTrader Customer Service

    Comment


      #3
      NinjaTrader_AlanP, huge thank, your help is unvaluable

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by CarlTrading, 03-31-2026, 09:41 PM
      1 response
      134 views
      1 like
      Last Post NinjaTrader_ChelseaB  
      Started by CarlTrading, 04-01-2026, 02:41 AM
      0 responses
      75 views
      1 like
      Last Post CarlTrading  
      Started by CaptainJack, 03-31-2026, 11:44 PM
      0 responses
      119 views
      2 likes
      Last Post CaptainJack  
      Started by CarlTrading, 03-30-2026, 11:51 AM
      0 responses
      114 views
      1 like
      Last Post CarlTrading  
      Started by CarlTrading, 03-30-2026, 11:48 AM
      0 responses
      92 views
      0 likes
      Last Post CarlTrading  
      Working...
      X