Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Requesting code to take ATR at a specific time as a condition in the strategy builder
Collapse
X
-
Requesting code to take ATR at a specific time as a condition in the strategy builder
Requesting help with ninjascript code. Want to experiment with using ATR at a certain time as a condition to determine whether to trade a session. This is beyond my ability. If someone could code it I would appreciate it. -
Hell jourdale,
Thanks for your post.
You would need to create a Time Comparison condition or Time Filter in the Strategy Builder to check if the current Time is within a certain timeframe. Then, you could create a condition in the same Set that compares the ATR indicator to a certain value.
See this help guide pages linked below for more information about creating Time Comparisons and Time Filters in the Strategy Builder.
Creating Time Comparisons: https://ninjatrader.com/support/help..._builder.htm#H owToCreateTimeComparisons
Creating Time Filters: https://ninjatrader.com/support/help..._builder.htm#H owToCreateTimeFilters
Here is a link to our publicly available training video, 'Automate your trading with NinjaTrader's Strategy Builder', which you might find helpful.
'Automate your trading with NinjaTrader's Strategy Builder': https://youtu.be/VxU4FR6GWNA
And, I am also linking you to the Educational Resources section of the Help Guide to help you get started with NinjaScript:
https://ninjatrader.com/support/help..._resources.htm<span class="name">Brandon H.</span><span class="title">NinjaTrader Customer Service</span><iframe name="sig" id="sigFrame" src="/support/forum/core/clientscript/Signature/signature.php" frameborder="0" border="0" cellspacing="0" style="border-style: none;width: 100%; height: 120px;"></iframe>
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by Mindset, 04-21-2026, 06:46 AM
|
0 responses
88 views
0 likes
|
Last Post
by Mindset
04-21-2026, 06:46 AM
|
||
|
Started by M4ndoo, 04-20-2026, 05:21 PM
|
0 responses
135 views
0 likes
|
Last Post
by M4ndoo
04-20-2026, 05:21 PM
|
||
|
Started by M4ndoo, 04-19-2026, 05:54 PM
|
0 responses
68 views
0 likes
|
Last Post
by M4ndoo
04-19-2026, 05:54 PM
|
||
|
Started by cmoran13, 04-16-2026, 01:02 PM
|
0 responses
119 views
0 likes
|
Last Post
by cmoran13
04-16-2026, 01:02 PM
|
||
|
Started by PaulMohn, 04-10-2026, 11:11 AM
|
0 responses
69 views
0 likes
|
Last Post
by PaulMohn
04-10-2026, 11:11 AM
|

Comment