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 Geovanny Suaza, 02-11-2026, 06:32 PM
|
0 responses
646 views
0 likes
|
Last Post
|
||
|
Started by Geovanny Suaza, 02-11-2026, 05:51 PM
|
0 responses
367 views
1 like
|
Last Post
|
||
|
Started by Mindset, 02-09-2026, 11:44 AM
|
0 responses
108 views
0 likes
|
Last Post
by Mindset
02-09-2026, 11:44 AM
|
||
|
Started by Geovanny Suaza, 02-02-2026, 12:30 PM
|
0 responses
570 views
1 like
|
Last Post
|
||
|
Started by RFrosty, 01-28-2026, 06:49 PM
|
0 responses
573 views
1 like
|
Last Post
by RFrosty
01-28-2026, 06:49 PM
|

Comment