Thank you.
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
How will price range be written?
Collapse
X
-
ju1234, I think you can work with the percent offset for this using the Range indicator (this sample uses volume to demonstrate the concept) - http://www.ninjatrader-support.com/H...Expansion.html
-
Thank you, i would appreciate further help. I tried writiing the following:
Close of bar 1 < [low of 1 + (0.2 * range of 1)] in other words i am trying to say that the closing price should be near the bottom of the bar 1. This is how i tried it (did not work):
In the strategy wizard, On the left side I chose CLOSE in the price data section, <= in the middle, and on the right i chose LOW and in the offset chose percent and in the amount of offset i wanted to choose 20% of the range of 1. Here i was all confused because another offset window opens etc.
Please help. Is there another way i can express what i am trying to say, that is the close should be near the bottom (or top) of the bar.
thanks.
Comment
-
Not sure I follow what you are trying to achieve exactly. You need to objectively define out what "near the bottom" means. This most likely will need to be done through two conditions where one of them you check for >= and the other you check for <=. You need to define the acceptable range Close can be within in relation to Low.Josh P.NinjaTrader Customer Service
Comment
-
Okay. Since the bar is variable, it cannot be defined in terms of ticks. So, what i was thinking was to define it in terms of percentage of the total length of the bar (range). Say the bar is 15 ticks, the close should be near the low and not near the high or midway. So, i thought that I would make the condition to be "close of bar 1 is less than (low of the bar 1 plus 20% of the range)" in this illustration, that would be within 3 ticks from the low. You got the idea. So, i want to build a condition for both the uptick and for downtick in this manner.
What will be the best way to build such a condition. Thanks.
Comment
-
ju1234, as simple condition might then be checking for the Close to be greater / smaller the the TypicalPrice of the bar. For your direct condition you would need to add / substract the price range to the High / Low of the bar which the wizard unfortunately does not support. What you can do is enterring for example that the Close has be great than Close[1] + some offset expressed in percent or ticks, but this would be a static offset then.
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by Geovanny Suaza, 02-11-2026, 06:32 PM
|
0 responses
558 views
0 likes
|
Last Post
|
||
|
Started by Geovanny Suaza, 02-11-2026, 05:51 PM
|
0 responses
324 views
1 like
|
Last Post
|
||
|
Started by Mindset, 02-09-2026, 11:44 AM
|
0 responses
101 views
0 likes
|
Last Post
by Mindset
02-09-2026, 11:44 AM
|
||
|
Started by Geovanny Suaza, 02-02-2026, 12:30 PM
|
0 responses
545 views
1 like
|
Last Post
|
||
|
Started by RFrosty, 01-28-2026, 06:49 PM
|
0 responses
547 views
1 like
|
Last Post
by RFrosty
01-28-2026, 06:49 PM
|

Comment