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!
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
NinjaTrader
please help with the determination of the maximum price volume in the bar
Collapse
X
-
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?Tags: None
-
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 FilesAlan P.NinjaTrader Customer Service
-
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by arvidvanstaey, Today, 02:19 PM
|
4 responses
11 views
0 likes
|
Last Post Today, 04:08 PM | ||
Started by samish18, 04-17-2024, 08:57 AM
|
16 responses
60 views
0 likes
|
Last Post
by samish18
Today, 03:30 PM
|
||
Started by jordanq2, Today, 03:10 PM
|
2 responses
9 views
0 likes
|
Last Post
by jordanq2
Today, 03:23 PM
|
||
Started by traderqz, Today, 12:06 AM
|
10 responses
18 views
0 likes
|
Last Post
by traderqz
Today, 02:49 PM
|
||
Started by algospoke, 04-17-2024, 06:40 PM
|
5 responses
47 views
0 likes
|
Last Post Today, 02:36 PM |
Comment