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 CarlTrading, 03-31-2026, 09:41 PM
|
1 response
81 views
1 like
|
Last Post
|
||
|
Started by CarlTrading, 04-01-2026, 02:41 AM
|
0 responses
42 views
0 likes
|
Last Post
by CarlTrading
04-01-2026, 02:41 AM
|
||
|
Started by CaptainJack, 03-31-2026, 11:44 PM
|
0 responses
64 views
2 likes
|
Last Post
by CaptainJack
03-31-2026, 11:44 PM
|
||
|
Started by CarlTrading, 03-30-2026, 11:51 AM
|
0 responses
66 views
0 likes
|
Last Post
by CarlTrading
03-30-2026, 11:51 AM
|
||
|
Started by CarlTrading, 03-30-2026, 11:48 AM
|
0 responses
54 views
0 likes
|
Last Post
by CarlTrading
03-30-2026, 11:48 AM
|

Comment