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 charlesugo_1, 05-26-2026, 05:03 PM
|
0 responses
51 views
0 likes
|
Last Post
by charlesugo_1
05-26-2026, 05:03 PM
|
||
|
Started by DannyP96, 05-18-2026, 02:38 PM
|
1 response
142 views
0 likes
|
Last Post
|
||
|
Started by CarlTrading, 05-11-2026, 05:56 AM
|
0 responses
160 views
0 likes
|
Last Post
by CarlTrading
05-11-2026, 05:56 AM
|
||
|
Started by CarlTrading, 05-10-2026, 08:12 PM
|
0 responses
96 views
0 likes
|
Last Post
by CarlTrading
05-10-2026, 08:12 PM
|
||
|
Started by Hwop38, 05-04-2026, 07:02 PM
|
0 responses
275 views
0 likes
|
Last Post
by Hwop38
05-04-2026, 07:02 PM
|

Comment