Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Script help
Collapse
X
-
Hello kyamato,
Thanks for the post.
You can create a condition set comparing the current price and the high price one bar ago. You can then add an offset value to create the gap condition.
My screenshot demonstrates using a tick offset. You also have the option to choose between pips and arithmetic offsets.
Please let us know if we may be of any further assistance.Last edited by NinjaTrader_DrewO; 01-15-2020, 01:26 PM.
-
Hello,
Thanks for the follow up.
Please see this video I made on how to accomplish this condition set:
World's leading screen capture + recorder from Snagit + Screencast by Techsmith. Capture, edit and share professional-quality content seamlessly.
I am also including links to the Strategy builder help guide as well an overview of the Strategy builder on Youtube:
Please let us know if we may be of any further assistance.
Comment
-
Hello kyamato,
Thanks for the reply.
Is your Strategy's "CalculateOnBarClose" set to "true" or "false"? If it is set to true, try setting it to false, a.k.a "Calculate on Each Tick". See if this setting produces the behavior you expect.
Note* Logic may need to be handled differently when calculating on each tick. Calculate On Bar Close means that OnBarUpdate() will be called at the end of every bar. Calculate on Each Tick means that OnBarUpdate() will be called on every incoming tick.
I look forward to hearing of your results.Last edited by NinjaTrader_DrewO; 01-15-2020, 01:27 PM.
Comment
-
Hello kyamato,
Thanks for the follow-up.
This could be caused by the way NinjaTrader timestamps bars. NinjaTrader will timestamp a bar at the closing time of that bar. Your data feed and charting platform could be processing this differently. Look into how your charting software timestamps bars and compare it to how NinjaTrader handle timestamps. It sounds like this is where the discrepancy is coming from.
Please see this link that explains further on how bars are built in NinjaTrader:
https://ninjatrader.com/support/help...ldingChartBars
If we may be of any further assistance, please let us know.Last edited by NinjaTrader_DrewO; 01-15-2020, 01:27 PM.
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by NullPointStrategies, Yesterday, 05:17 AM
|
0 responses
71 views
0 likes
|
Last Post
|
||
|
Started by argusthome, 03-08-2026, 10:06 AM
|
0 responses
143 views
0 likes
|
Last Post
by argusthome
03-08-2026, 10:06 AM
|
||
|
Started by NabilKhattabi, 03-06-2026, 11:18 AM
|
0 responses
76 views
0 likes
|
Last Post
|
||
|
Started by Deep42, 03-06-2026, 12:28 AM
|
0 responses
47 views
0 likes
|
Last Post
by Deep42
03-06-2026, 12:28 AM
|
||
|
Started by TheRealMorford, 03-05-2026, 06:15 PM
|
0 responses
51 views
0 likes
|
Last Post
|

Comment