Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Base profit target and stop limits on bar size
Collapse
X
-
-
Daven,
Thank you for your post.
You would want to take a look at BarsPeriod for getting this value -
http://www.ninjatrader.com/support/h...barsperiod.htmCal H.NinjaTrader Customer Service
-
I tried the following construct but it doesn't print out any values so I'm thinking I am using the incorrect syntax:
Code:protected override void OnBarUpdate() { if (BarsInProgress == 1) { Profit = BarsPeriod.Value; Stop = BarsPeriod.Value; Print ("Profit is " + Profit + "Stop is " + Stop); }
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by argusthome, 03-08-2026, 10:06 AM
|
0 responses
65 views
0 likes
|
Last Post
by argusthome
03-08-2026, 10:06 AM
|
||
|
Started by NabilKhattabi, 03-06-2026, 11:18 AM
|
0 responses
41 views
0 likes
|
Last Post
|
||
|
Started by Deep42, 03-06-2026, 12:28 AM
|
0 responses
23 views
0 likes
|
Last Post
by Deep42
03-06-2026, 12:28 AM
|
||
|
Started by TheRealMorford, 03-05-2026, 06:15 PM
|
0 responses
26 views
0 likes
|
Last Post
|
||
|
Started by Mindset, 02-28-2026, 06:16 AM
|
0 responses
52 views
0 likes
|
Last Post
by Mindset
02-28-2026, 06:16 AM
|

Comment