shane
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
calculated stop order price ?
Collapse
X
-
Tags: None
-
Comment
-
adam
sorry, no but the code is similar ; here it is
{
// Condition set 1
if (RSI(Rsi, Smooth).Avg[0] > 70
&& Rising(RSI(14, 3).Avg) == true)
{
EnterLong(DefaultQuantity, "");
}
// Condition set 2
if (Falling(RSI(Rsi, Smooth).Avg) == true)
{
ExitLong("", "");
}
// Condition set 3
if (RSI(Rsi, Smooth).Avg[0] < 30
&& Falling(RSI(Rsi, Smooth).Avg) == true)
{
EnterShort(DefaultQuantity, "");
}
// Condition set 4
if (Rising(RSI(Rsi, Smooth).Avg) == true)
{
ExitShort("", "");
}
Comment
-
shane,
This is saying that your SetStopLoss() calculation is smaller than or equal to zero for some reason here.
I see you are just setting it once :
SetStopLoss("", CalculationMode.Percent, 1, false);
I am wondering if that "else if" addition I showed you would fix this as well. Are you operating with COBC = false when you run the strategy? I can see in the code itself you have COBC = true.
COBC = abbreviation for CalculateOnBarClose;Adam P.NinjaTrader Customer Service
Comment
-
Comment
-
-
shane,
It looks like Matthew requested some files from you in another thread. We would like to take a closer look if possible so it would be appreciated if you could send these.
Here is the thread : http://www.ninjatrader.com/support/f...ad.php?t=52413
We believe there is some relation between all three issues you were describing in the threads, and would like to look closer.Adam P.NinjaTrader Customer Service
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by r68cervera, Today, 05:29 AM
|
0 responses
2 views
0 likes
|
Last Post
by r68cervera
Today, 05:29 AM
|
||
Started by geddyisodin, Today, 05:20 AM
|
0 responses
3 views
0 likes
|
Last Post
by geddyisodin
Today, 05:20 AM
|
||
Started by JonesJoker, 04-22-2024, 12:23 PM
|
6 responses
35 views
0 likes
|
Last Post
by JonesJoker
Today, 05:14 AM
|
||
Started by GussJ, 03-04-2020, 03:11 PM
|
12 responses
3,239 views
0 likes
|
Last Post
by Leafcutter
Today, 05:08 AM
|
||
Hi
by AveryFlynn
Started by AveryFlynn, Today, 04:57 AM
|
0 responses
6 views
0 likes
|
Last Post
by AveryFlynn
Today, 04:57 AM
|
Comment