EnterLong(Convert.ToInt32(ShareQuantity), @"Long Entry") / EnterShort(Convert.ToInt32(ShareQuantity), @"Short Entry");
but before entering Long I check if currently I am short or not, if I am then I call:
ExitShort(Convert.ToInt32(ShareQuantity), @"PnL", @"Short Entry"); and during Short I exit Long by calling: ExitLong(Convert.ToInt32(ShareQuantity), @"PnL", @"Long Entry");
All this works great my signals are getting called properly but chart and order page are showing wrong informations, chart shows "Close Position" with quantity as 2, similarly on the order page some orders have quantity as 2.
One more thing, I have a condition in my strategy which checks If my target for today has been achieved or not and only enter in a trade if we are short on target, but even after filling my target and getting out of trades, strategy page shows I am Long/short and this gets filled on "ExitOnSessionCloseSeconds".
Thanks & Regards.
Comment