Any suggests how I can do this? The custom indicator is more then just a few lines of code..
Announcement
Collapse
No announcement yet.
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 CarlTrading, 03-31-2026, 09:41 PM
|
1 response
63 views
0 likes
|
Last Post
|
||
|
Started by CarlTrading, 04-01-2026, 02:41 AM
|
0 responses
35 views
0 likes
|
Last Post
by CarlTrading
04-01-2026, 02:41 AM
|
||
|
Started by CaptainJack, 03-31-2026, 11:44 PM
|
0 responses
54 views
1 like
|
Last Post
by CaptainJack
03-31-2026, 11:44 PM
|
||
|
Started by CarlTrading, 03-30-2026, 11:51 AM
|
0 responses
61 views
0 likes
|
Last Post
by CarlTrading
03-30-2026, 11:51 AM
|
||
|
Started by CarlTrading, 03-30-2026, 11:48 AM
|
0 responses
48 views
0 likes
|
Last Post
by CarlTrading
03-30-2026, 11:48 AM
|

Comment