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
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.Chris L.NinjaTrader Customer Service
-
Hello,
Thanks for the follow up.
Please see this video I made on how to accomplish this condition set:
Free online storage and sharing with Screencast.com. 2 GB of storage and 2 GB of bandwidth per month for free. We won't compress, alter or take ownership of your content.
I am also including links to the Strategy builder help guide as well an overview of the Strategy builder on Youtube:
Get started with NinjaTrader software & the SuperDOM for FREE: http://ninjatrader.com/GetStartedIn this video, learn how to use the NinjaTrader Strategy Buil...
Please let us know if we may be of any further assistance.Chris L.NinjaTrader Customer Service
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.Chris L.NinjaTrader Customer Service
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.Chris L.NinjaTrader Customer Service
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by WHICKED, Today, 12:45 PM
|
1 response
10 views
0 likes
|
Last Post Today, 01:08 PM | ||
Started by samish18, Today, 01:01 PM
|
0 responses
5 views
0 likes
|
Last Post
by samish18
Today, 01:01 PM
|
||
Started by WHICKED, Today, 12:56 PM
|
0 responses
8 views
0 likes
|
Last Post
by WHICKED
Today, 12:56 PM
|
||
Started by Spiderbird, Today, 12:15 PM
|
2 responses
11 views
0 likes
|
Last Post
by Spiderbird
Today, 12:48 PM
|
||
Started by FrazMann, Today, 11:21 AM
|
2 responses
8 views
0 likes
|
Last Post Today, 12:38 PM |
Comment