Thanks
Announcement
Collapse
Looking for a User App or Add-On built by the NinjaTrader community?
Visit NinjaTrader EcoSystem and our free User App Share!
Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less
Partner 728x90
Collapse
NinjaTrader
Simple Indicator
Collapse
X
-
Hello U0000999,
Thanks for your post.
You could use the Strategy Builder to create the logic you are describing and display it with Draw.TextFixed. Please see the demonstration video linked below which demonstrates how to set this up. I am also attaching an export of the strategy made in the demonstration video.
Once the Strategy Builder is used to create your logic, you could turn this logic into an indicator. To do so, open a New > NinjaScript Editor window, right-click on the Indicator's folder, and select New Indicator. Then, you could click the 'View code' button in the Strategy Builder to see the code that accomplishes your logic. This code could be copied to the new indicator and you could use AddPlot() to plot the Highest value - Lowest value on a chart.
Here is a link to our publicly available training videos, 'Strategy Builder 301' and 'NinjaScript Editor 401', for you to view at your own convenience.
Strategy Builder 301 — https://www.youtube.com/watch?v=_KQF2Sv27oE&t=13s
NinjaScript Editor 401 - https://youtu.be/H7aDpWoWUQs?list=PL...We0Nf&index=14
Please also see the help guide documentation below for more information.
Strategy Builder: https://ninjatrader.com/support/help...gy_builder.htm
Draw.TextFixed: https://ninjatrader.com/support/help..._textfixed.htm
AddPlot: https://ninjatrader.com/support/help...t8/addplot.htm
Let us know if we may assist further.Attached FilesBrandon H.NinjaTrader Customer Service
- Likes 1
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by ct, 05-07-2023, 12:31 PM
|
6 responses
202 views
0 likes
|
Last Post
by wisconsinpat
Today, 06:29 AM
|
||
Started by kaywai, Today, 06:26 AM
|
0 responses
1 view
0 likes
|
Last Post
by kaywai
Today, 06:26 AM
|
||
Started by kevinenergy, 02-17-2023, 12:42 PM
|
118 responses
2,778 views
1 like
|
Last Post
by kevinenergy
Today, 05:41 AM
|
||
Started by briansaul, Today, 05:31 AM
|
0 responses
9 views
0 likes
|
Last Post
by briansaul
Today, 05:31 AM
|
||
Started by traderqz, Yesterday, 12:06 AM
|
11 responses
28 views
0 likes
|
Last Post Today, 05:11 AM |
Comment