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, 03-31-2026, 09:41 PM
|
1 response
47 views
0 likes
|
Last Post
|
||
|
Started by CarlTrading, 04-01-2026, 02:41 AM
|
0 responses
23 views
0 likes
|
Last Post
by CarlTrading
04-01-2026, 02:41 AM
|
||
|
Started by CaptainJack, 03-31-2026, 11:44 PM
|
0 responses
33 views
1 like
|
Last Post
by CaptainJack
03-31-2026, 11:44 PM
|
||
|
Started by CarlTrading, 03-30-2026, 11:51 AM
|
0 responses
50 views
0 likes
|
Last Post
by CarlTrading
03-30-2026, 11:51 AM
|
||
|
Started by CarlTrading, 03-30-2026, 11:48 AM
|
0 responses
42 views
0 likes
|
Last Post
by CarlTrading
03-30-2026, 11:48 AM
|

Comment