I have a strategy
if (RSI(25, 3).Avg[0] >= Max)
{
EnterShort(500, "");
}if (RSI(25, 3).Avg[0] <= Min)
{
EnterLong(500, "");
}
Initially I ran this strategy and then closed all the positions by the end of the day. The next day when i ran this, it shows position(eg:500S or 500L) in position column of Strategy tab even without executing any orders(no positions are hold) and the average price will be last day's entry price for the stock. So if the conditions in the above strategy satisfies, it sends out 2 orders, one for closing the position (i know EnterShort & EnterLong closes any open positions, in this case there aren't any open positions) and the other to enter the new position. In otherword after running a strategy a second time, the data in "Strategies" tab and "Positions" tab do not match.
Is it some problem of the software or do i need to do any settings while creating/running a script strategy?
Comment