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 NullPointStrategies, Today, 05:17 AM
|
0 responses
46 views
0 likes
|
Last Post
|
||
|
Started by argusthome, 03-08-2026, 10:06 AM
|
0 responses
126 views
0 likes
|
Last Post
by argusthome
03-08-2026, 10:06 AM
|
||
|
Started by NabilKhattabi, 03-06-2026, 11:18 AM
|
0 responses
66 views
0 likes
|
Last Post
|
||
|
Started by Deep42, 03-06-2026, 12:28 AM
|
0 responses
42 views
0 likes
|
Last Post
by Deep42
03-06-2026, 12:28 AM
|
||
|
Started by TheRealMorford, 03-05-2026, 06:15 PM
|
0 responses
46 views
0 likes
|
Last Post
|

Comment