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
How do you write an indicator that is based on values from another indicator?
Collapse
X
-
How do you write an indicator that is based on values from another indicator?
I have an indicator that plots 5 lines on a chart and I would like to write up a custom indicator that reads the values of the lines from the other indicator. I do not know how to go about this. Can someone please explain how I can achieve this and if there is any code samples you know of that I can use for reference, I'd be glad if you could point them out to me. Many thanks. -
Hello mbesha,
Thank you for your note.
You could use Streamwriter to write the values of those plots to a file then in another indicator you could use streamreader to read the values from the file.
Below are some reference samples which demonstrate how this could be done,
Stream Reader,
Stream Writer,
Another Stream Reader Example,
Please let us know if you need further assistance.Alan P.NinjaTrader Customer Service
-
Originally posted by mbesha View PostI have an indicator that plots 5 lines on a chart and I would like to write up a custom indicator that reads the values of the lines from the other indicator. I do not know how to go about this. Can someone please explain how I can achieve this and if there is any code samples you know of that I can use for reference, I'd be glad if you could point them out to me. Many thanks.
Comment
-
Originally posted by mbesha View PostI am plotting them.
ref: https://ninjatrader.com/support/help...lots_are_v.htm
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by sidlercom80, 10-28-2023, 08:49 AM
|
171 responses
2,276 views
0 likes
|
Last Post Today, 04:33 AM | ||
Started by Irukandji, Yesterday, 02:53 AM
|
2 responses
17 views
0 likes
|
Last Post
by Irukandji
Today, 03:55 AM
|
||
Started by adeelshahzad, Today, 03:54 AM
|
0 responses
3 views
0 likes
|
Last Post
by adeelshahzad
Today, 03:54 AM
|
||
Started by CortexZenUSA, Today, 12:53 AM
|
0 responses
3 views
0 likes
|
Last Post
by CortexZenUSA
Today, 12:53 AM
|
||
Started by CortexZenUSA, Today, 12:46 AM
|
0 responses
1 view
0 likes
|
Last Post
by CortexZenUSA
Today, 12:46 AM
|
Comment