View Full Version : probably a newbie question
cornelius
11-14-2008, 08:47 AM
Why is it that when I start a new strategy, the unrealized amount moves even if I havent entered in any position?
NinjaTrader_Josh
11-14-2008, 08:57 AM
Hi cornelius,
Welcome to the NinjaTrader Support Forums. One of our NinjaScript trainees will respond to you later time today. Thank you for your patience.
NinjaTrader_Bertrand
11-14-2008, 09:29 AM
Hi cornelius,
Thanks for your post and welcome!
The strategy always has a strategy position as it is calculated based on the data. As you start up your strategy the PnL is displaying the PnL of the virtual position the strategy would have been in if it were running live the whole time.
Please also review this link here - http://www.ninjatrader-support.com/HelpGuideV6/StrategyPositionVsAccountPosition.html
Why is it that when I start a new strategy, the unrealized amount moves even if I havent entered in any position?
cornelius
11-14-2008, 10:42 AM
Hello. Thank you for the info.
Would it be possible to code something like this?
if "simulated time" < "current time"
{
"do not make an entry"
}
NinjaTrader_Bertrand
11-14-2008, 11:02 AM
Hi cornelius,
Yes, sure to limit trades being taken to a certain time range.
For this topic, make sure to review this reference sample from us -
http://www.ninjatrader-support2.com/vb/showthread.php?t=3226