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 SalmaTrader, 07-07-2026, 10:26 PM
      0 responses
      47 views
      0 likes
      Last Post SalmaTrader  
      Started by CarlTrading, 07-05-2026, 01:16 PM
      0 responses
      22 views
      0 likes
      Last Post CarlTrading  
      Started by CaptainJack, 06-17-2026, 10:32 AM
      0 responses
      15 views
      0 likes
      Last Post CaptainJack  
      Started by kinfxhk, 06-17-2026, 04:15 AM
      0 responses
      21 views
      0 likes
      Last Post kinfxhk
      by kinfxhk
       
      Started by kinfxhk, 06-17-2026, 04:06 AM
      0 responses
      23 views
      0 likes
      Last Post kinfxhk
      by kinfxhk
       
      Working...
      X