Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
stop execution of orders and limited bar [0]
Collapse
X
-
hello I never thought it was so hard to close a position on the same bus stop input, in other plafaformas is not so complicated, you can control this other code please tell me how I can make a stop output in the entry bar, so it never closed positions, thank you very much.
double stoploss = Position.AvgPrice - Position.AvgPrice * (filterR/100) ;
if (CrossAbove(ZeroLagTEMA(Period).ZeroTEMA, ZeroLagHATEMA(Period).ZeroHATEMA, 1)
&& RelativeSlope(period)[0]<filterR
)
{ SetStopLoss (CalculationMode .Price ,stoploss);
EnterLong(1, "");
}Last edited by optimuss; 08-11-2011, 02:05 PM.
Comment
-
Hello optimuss,
You should define in the strategies Initialize() method. See this page for an example of this:
Set orders are a convenient way to submit stop loss orders, that are automatically applied on entry execution. They can be based on an offset of entry price when using mode ticks or percent.
The stop loss order will use the last value "set", and dynamic control is possible using principles in this sample:
Ryan M.NinjaTrader Customer Service
Comment
-
Hello,
The language barrier here is not allowing me to assist you in the manner you need as I still do not at root understand your what specifically your trying to do.
Please try using your native language and typing it into translate.google.com and translating to english.
Then repost the question and we will see if this is a little better.
Thanks.BrettNinjaTrader Product Management
Comment
-
Hello, sorry and I apologize for that .
was trying to say in the post above, if they could show me please where I can see some example commands Limted closures and stop at the entry bar, thank you very much.Attached FilesLast edited by optimuss; 08-12-2011, 01:20 PM.
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by SalmaTrader, 07-07-2026, 10:26 PM
|
0 responses
49 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
15 views
0 likes
|
Last Post
by CaptainJack
06-17-2026, 10:32 AM
|
||
|
Started by kinfxhk, 06-17-2026, 04:15 AM
|
0 responses
21 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