Forum: NinjaTrader
February 23rd, 2011, 04:57 AM
|
Replies: 5
Views: 4,871
Got it!
I think I got it to work... but I do not know exactly why.
I added some code to set the stoploss and targetprofit to 1 and 10000 if the market position is flat. I could have used other values, I...
|
Forum: NinjaTrader
February 23rd, 2011, 03:13 AM
|
Replies: 5
Views: 4,871
Hello Luger,
Thanks for the info, I will...
Hello Luger,
Thanks for the info, I will read through OnOrderUpdate. However, I think I am already getting the correct entry price with Position.AvgPrice. I am substracting from that entry price...
|
Forum: NinjaTrader
February 22nd, 2011, 03:35 AM
|
Replies: 5
Views: 4,871
StopLoss as fraction of ATR
Hello all,
I am trying to program a simple stop loss and profit target based on a fraction of the ATR value at the bar where the trade was placed, but can not get it to work. :frusty: Any help...
|