Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Indicator for MA of Highs and Lows of bars not On The Close
Collapse
X
-
Indicator for MA of Highs and Lows of bars not On The Close
Hello, I know nothing about C# and have been searching for this indicator everywhere that I can think of. Any suggestions would be appreciated.Starts11-19-2023Ends11-24-2023 -
Hello Rancher,
Thanks for your notes.
To clarify, are you looking for an existing NinjaScript indicator that has say the SMA indicator calculate from the High price or Low price?
You could consider adding the SMA indicator to a chart window and setting the SMA indicator's 'Input series' property to calculate based on the High or Low instead of the Close.
See this demonstration video: https://brandonh-ninjatrader.tinytak...OV8yMjQyMDY3MQ
<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>
-
Hello Rancher,
Thanks for your notes.
You would need to create your own custom indicator that uses Draw.Line() to draw lines on the chart at a specific value.
You asked this question on this forum thread. Please see the reply on this forum thread for more information. Also, ensure that you direct any futher questions on this topic to this forum thread.
https://forum.ninjatrader.com/forum/...t-close-of-bar
In regard to the Bollinger Bands question, yes, you could create a custom NinjaScript indicator to accomplish this.
To create a copy of the script to modify, open a New > NinjaScript Editor window, open the Indicators folder, double-click on the Bollinger file, right-click in the Bollinger script's code, select 'Save as', name the copy, and click OK.
Once you create a copy of the script you could modify the code to suit your needs.Last edited by NinjaTrader_BrandonH; 11-19-2023, 06:08 PM.<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>
Comment
-
Comment
-
Hello Rancher,
Thanks for your notes.
Please follow the instructions below to see where the errors are coming from after compiling any indicator.
For NinjaTrader 8:- Open NinjaTrader
- From the Control Center select the New menu--> select NinjaScript Editor
- Right-click in the window and select Compile to compile all NinjaScript objects
- At the bottom of the NinjaScript Editor window, a new section will appear where you can find the error locations
- You can exclude the file referenced in the editor by double-clicking on the appropriate object type on the right of the NinjaScript Editor window. This will expand the object type folder. You can then select the file with a left-click--> right click on the object--> then select Open to begin debugging the file, Exclude From Compilation, or Remove to delete the file.
- To send a screenshot with Windows 7 or newer I would recommend using Windows Snipping Tool.
- Alternatively to send a screenshot press Alt + PRINT SCREEN to take a screenshot of the selected window. Then go to Start--> Accessories--> Paint, and press CTRL + V to paste the image. Lastly, save as a jpeg file and send the file as an attachment.
Please let us know if we may be of further assistance.<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>
Comment
-
Hello Rancher,
Thanks for your notes.
Please write in to support[at]ninjatrader[dot]com to share a screenshot of the compile error messages with us so we may provide further direction.
In the subject of your email include 'Attn: BrandonH' and in the body of your email include a URL link to this forum thread.
I look forward to assisting further.<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>
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by Geovanny Suaza, 02-11-2026, 06:32 PM
|
0 responses
566 views
0 likes
|
Last Post
|
||
|
Started by Geovanny Suaza, 02-11-2026, 05:51 PM
|
0 responses
330 views
1 like
|
Last Post
|
||
|
Started by Mindset, 02-09-2026, 11:44 AM
|
0 responses
101 views
0 likes
|
Last Post
by Mindset
02-09-2026, 11:44 AM
|
||
|
Started by Geovanny Suaza, 02-02-2026, 12:30 PM
|
0 responses
547 views
1 like
|
Last Post
|
||
|
Started by RFrosty, 01-28-2026, 06:49 PM
|
0 responses
548 views
1 like
|
Last Post
by RFrosty
01-28-2026, 06:49 PM
|

Comment