Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
New Indicator
Collapse
X
-
Try using the help page and search OnMarketData() method, you can store and check last price bid and ask in that method and then do things when you have the price. Although you can get it fast using GetCurretnAsk(0) or GetCurrentBid(0) and use your logic on what the most recent price of those values.
- Likes 1
-
Hello SQuant,
Thanks for your post.
Will the indicator be running on the 6E instrument?
If so, you could add a plot to the indicator using the AddPlot() method and assign the price you want to the plot, such as Close[0] to assign the plot the Close price.
To have the indicator plot on a separate panel, make sure to set the IsOverlay property to false.
See the help guide documentation below for more information and sample code.
AddPlot(): https://ninjatrader.com/support/help...t8/addplot.htm
Close: https://ninjatrader.com/support/help.../nt8/close.htm
PriceSeries: https://ninjatrader.com/support/help...riceseries.htm
IsOverlay: https://ninjatrader.com/support/help...tsub=isoverlay
Below is a link to a forum post with helpful information about getting started with NinjaScript.
https://ninjatrader.com/support/foru...040#post786040
Here is a link to our publicly available training video, 'NinjaScript Editor 401', for you to view at your own convenience.
NinjaScript Editor 401 - https://youtu.be/H7aDpWoWUQs?list=PL...We0Nf&index=14
Please let me know if I may assist 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>
- Likes 1
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by Geovanny Suaza, 02-11-2026, 06:32 PM
|
0 responses
599 views
0 likes
|
Last Post
|
||
|
Started by Geovanny Suaza, 02-11-2026, 05:51 PM
|
0 responses
344 views
1 like
|
Last Post
|
||
|
Started by Mindset, 02-09-2026, 11:44 AM
|
0 responses
103 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
558 views
1 like
|
Last Post
|
||
|
Started by RFrosty, 01-28-2026, 06:49 PM
|
0 responses
557 views
1 like
|
Last Post
by RFrosty
01-28-2026, 06:49 PM
|

Comment