Also, what "output" from my indicator will the strategy see? Do I have to make public variables or something for that? The output from my indicator will basically just be a "true" or "false" for each bar - signaling whether to open a new position or not.
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 to expose indicator values for strategies
Collapse
X
-
How to expose indicator values for strategies
I wrote an indicator and I want to use it in a strategy. But when I go to the Strategy Wizard to create it and select my new indicator, I don't see any of the parameters to select. Do I have to have all parameters in the "Parameters" category to see them?
Also, what "output" from my indicator will the strategy see? Do I have to make public variables or something for that? The output from my indicator will basically just be a "true" or "false" for each bar - signaling whether to open a new position or not.Tags: None
-
Originally posted by NinjaTrader_Dierk View Post>> Do I have to have all parameters in the "Parameters" category to see them?
yes
I suggest creating an indicator by the indicator wizard to see how it all works. The "output" plot could hold 0 or 1 to indicate true or false
The indicator has no plots. It just uses DrawText to put a flag above bars that I want to begin a trade from. How do I set my parameters and expose that DrawText activity in an public variable that can be used by a strategy?
Comment
-
>> I don't know what you mean by 'how it all works'
Please create an indicator by the wizard having one parameter and see how this parameter is exposed in the strategy wizard. Then check to see what code is generated for that parameter in the indicator NinjaScript and how could mimic that in your custom coded indicator.
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by brunoviveiros, 02-17-2020, 05:31 AM
|
4 responses
59 views
0 likes
|
Last Post Today, 06:25 AM | ||
Started by volIQ, 03-27-2024, 04:28 PM
|
3 responses
21 views
0 likes
|
Last Post
by RJay
Today, 05:41 AM
|
||
Started by Nickgiaco, 02-26-2024, 10:23 AM
|
2 responses
72 views
0 likes
|
Last Post Today, 05:12 AM | ||
Started by Johndc, Today, 04:39 AM
|
0 responses
7 views
0 likes
|
Last Post
by Johndc
Today, 04:39 AM
|
||
Started by johntraderuser2, Today, 02:34 AM
|
0 responses
10 views
0 likes
|
Last Post Today, 02:34 AM |
Comment