Looking for examples to build a strategy using CCI when it crosses the 0 line, but a certain value must have been hit previously (eg 100 or -100) and also how to enter a condition of entering 3 separate trades , each with different SL and TP and TS values
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Strategy builder examples
Collapse
X
-
Strategy builder examples
Hello,
Looking for examples to build a strategy using CCI when it crosses the 0 line, but a certain value must have been hit previously (eg 100 or -100) and also how to enter a condition of entering 3 separate trades , each with different SL and TP and TS valuesTags: None
-
Hi brent57,
Thank you for your note and welcome to the NinjaTrader forums!
You may want to set a bool once the CCI is above 100 and reset this on a new session.
For example:
In #region Variables:
private bool above100 = false;
In OnBarUpdate():
if (Bars.BarsSinceSession = 0)
above100 = false;
if (CCI(14)[0] > 100)
above100 = true;
if (CrossAbove(CCI(14), 0, 1))
{
// perform actions
}
Also, I am attaching an example strategy that demonstrates placing 3 orders with profit targets and stop losses. This example was created using the Strategy Wizard.Attached FilesChelsea B.NinjaTrader Customer Service
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by SalmaTrader, 07-07-2026, 10:26 PM
|
0 responses
50 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
16 views
0 likes
|
Last Post
by CaptainJack
06-17-2026, 10:32 AM
|
||
|
Started by kinfxhk, 06-17-2026, 04:15 AM
|
0 responses
22 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