Close[0] - Open[0] >= ((ATR(14)[0]/TickSize) * multiplier)
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Checking if a body of a candle is bigger than a multiplier of an ATR value.
Collapse
X
-
Checking if a body of a candle is bigger than a multiplier of an ATR value.
question.. say I need to check if a body of a candle is bigger than a multiplier of an ATR value, is this right? is there a console in ninjascript? I need to check for these values..
Close[0] - Open[0] >= ((ATR(14)[0]/TickSize) * multiplier)Tags: None
-
Hello Brevo,
Thanks for your notes.
This logic could check if the body of a candle (Close[0] - Open[0]) is greater than or equal to your ATR calculation.
If by "console" you mean you are wanting to print out the values to confirm how your logic is processing, you could add prints to your script that print out the values in question.
Prints will appear in a New > NinjaScript Output window.
Below is a link to a forum post that demonstrates how to use prints to understand behavior.
https://ninjatrader.com/support/foru...121#post791121<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 CarlTrading, 05-11-2026, 05:56 AM
|
0 responses
52 views
0 likes
|
Last Post
by CarlTrading
05-11-2026, 05:56 AM
|
||
|
Started by CarlTrading, 05-10-2026, 08:12 PM
|
0 responses
29 views
0 likes
|
Last Post
by CarlTrading
05-10-2026, 08:12 PM
|
||
|
Started by Hwop38, 05-04-2026, 07:02 PM
|
0 responses
194 views
0 likes
|
Last Post
by Hwop38
05-04-2026, 07:02 PM
|
||
|
Started by CaptainJack, 04-24-2026, 11:07 PM
|
0 responses
355 views
0 likes
|
Last Post
by CaptainJack
04-24-2026, 11:07 PM
|
||
|
Started by Mindset, 04-21-2026, 06:46 AM
|
0 responses
274 views
0 likes
|
Last Post
by Mindset
04-21-2026, 06:46 AM
|

Comment