Announcement
Collapse
Looking for a User App or Add-On built by the NinjaTrader community?
Visit NinjaTrader EcoSystem and our free User App Share!
Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less
Partner 728x90
Collapse
NinjaTrader
Stop order submitted when employ strategy
Collapse
X
-
Stop order submitted when employ strategy
When I install a strategy into a chart I immediately get a stop loss order before any other order has been placed. I've written strategies before but never encountered this. I am exiting the strategy either from the chart or by clicking the "flatten everything" and getting the same behavior on subsequent installs of the strategy...Tags: None
-
it's back again....
this strategy is doing it again. When I install it, whether I use the sim101 or IB simulation account it places a stop order far from the market.... it is always at the same price.
I moved the
"SetStopLoss(CalculationMode.Ticks,Stopticks);"
statement to the Initialize section of the code and it's the same....
I replaced the "Stopticks" variable with the number 10 and now it places a stop order 10 ticks below the market upon deployment...
Comment
-
The strategy starts up, places a stop order and with no order, including that stop order, filled, when I click on the strategy button in control center, it says the strategy is short one contract [my default amount in the strategy]. This is immediately after starting up NT...
the strategy tab reports unrealized p&l when no order has been filled, the account is flat and the strategy thinks it is short a contract....
I took NT and TWS back to the previous versions and it's still the same problem...Last edited by maxpi; 12-10-2007, 02:34 PM.
Comment
-
When you run a strategy, it calculates the current strategy's position and submits any outstanding orders for this virtually managed position. If you do not wish orders to be submitted, select the "Wait until flat" option under Tools > Options >Strategies > NinjaScript.RayNinjaTrader Customer Service
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by samish18, Today, 12:20 PM
|
0 responses
1 view
0 likes
|
Last Post
by samish18
Today, 12:20 PM
|
||
Started by thread, 04-15-2024, 11:58 PM
|
3 responses
48 views
0 likes
|
Last Post
by Georg1o
Today, 12:05 PM
|
||
Started by leojimenezp, 04-20-2024, 05:49 PM
|
4 responses
47 views
0 likes
|
Last Post
by leojimenezp
Today, 11:49 AM
|
||
Started by nicthe, Today, 09:24 AM
|
1 response
5 views
0 likes
|
Last Post
by nicthe
Today, 10:57 AM
|
||
Started by samish18, Today, 10:13 AM
|
0 responses
6 views
0 likes
|
Last Post
by samish18
Today, 10:13 AM
|
Comment