Any suggests how I can do this? The custom indicator is more then just a few lines of code..
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
Strategy calling Indicator
Collapse
X
-
Strategy calling Indicator
I have a Strategy that places orders but want to filter out some orders being placed by a custom indicator, that is just added to the chart right now .
Any suggests how I can do this? The custom indicator is more then just a few lines of code..Tags: None
-
gg80108,
What do you mean by filter? If you want to limit your trades based on the custom indicator you then need to call the indicator and make the additional conditions.
You can call any indicator from a strategy. Please see the SampleMACrossOver for an example of how they called the SMA indicator.Josh P.NinjaTrader Customer Service
-
Yes saw that ,, I want to incorporate "Scalper" code to limit the trades to only when the ScalpBar=true..
Comment
-
gg80108,
Unfortunately I do not know how the Scalper code is programmed, but what you want to do is access the value of the indicator to get some indication that ScalpBar = true. Then you can add that to your conditions for your strategy. Remember this would only work if the code of Scalper exposes ScalpBar as a value you can access. Otherwise you would not be able to do it.Josh P.NinjaTrader Customer Service
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by casabella, Today, 04:12 AM
|
0 responses
11 views
0 likes
|
Last Post
by casabella
Today, 04:12 AM
|
||
Started by Ludwik, Today, 03:52 AM
|
0 responses
7 views
0 likes
|
Last Post
by Ludwik
Today, 03:52 AM
|
||
Started by wuannetraam, Today, 02:40 AM
|
0 responses
10 views
0 likes
|
Last Post
by wuannetraam
Today, 02:40 AM
|
||
Started by cyberpete76, 03-27-2023, 12:29 AM
|
7 responses
272 views
1 like
|
Last Post
by slightly
Today, 01:47 AM
|
||
Started by renewsaltwater, Today, 01:15 AM
|
0 responses
4 views
0 likes
|
Last Post Today, 01:15 AM |
Comment