Testing ninjascript by using NT(Simulated version) with IB forex live data.
Have a simple strategy:
protected override void Initialize()
{
ExitOnClose = false;
CalculateOnBarClose = false;
}
protected override void OnBarUpdate()
{
EnterLongStop(QTY, UPPER, "");
}
UPPER=0.783
Current price is 0.7797
QTY=10,000
When I run the strategy, the order does not get submitted. There is nothing shown in the Orders tab.
However, the Strategies tab shows that the strategy is running, and the Unrealized column directly shows a net loss of -$33. It has calculated this loss value simply based on the current price, UPPER value and QTY, even without the order having been submitted and filled. This loss in the Unrealized column changes accordingly as the current price changes.
It used to work fine an hour back, suddenly this problem has come up, where the order is not even being submitted.
Thanks so much for your help.

Comment