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 SalmaTrader, 07-07-2026, 10:26 PM
|
0 responses
49 views
0 likes
|
Last Post
by SalmaTrader
07-07-2026, 10:26 PM
|
||
|
Started by CarlTrading, 07-05-2026, 01:16 PM
|
0 responses
22 views
0 likes
|
Last Post
by CarlTrading
07-05-2026, 01:16 PM
|
||
|
Started by CaptainJack, 06-17-2026, 10:32 AM
|
0 responses
15 views
0 likes
|
Last Post
by CaptainJack
06-17-2026, 10:32 AM
|
||
|
Started by kinfxhk, 06-17-2026, 04:15 AM
|
0 responses
21 views
0 likes
|
Last Post
by kinfxhk
06-17-2026, 04:15 AM
|
||
|
Started by kinfxhk, 06-17-2026, 04:06 AM
|
0 responses
23 views
0 likes
|
Last Post
by kinfxhk
06-17-2026, 04:06 AM
|

Comment