Page 1 of 1

About Closing Position

PostPosted: Sat Apr 30, 2016 8:30 am
by Ryourjj
About Closing position

Hi,
I have some problems with the closing of position.
I try to open the position with BUY() and close the position with BUY_LIMIT.
However, I encounter the position is close on the opposite side.
i.e: The Sell position is closed (First Buy order executed) and an opposite position (Second Buy order executed) is opened concurrently.
Thanks all.

Re: About Closing Position

PostPosted: Sun May 01, 2016 9:45 am
by Apprentice
You are using period=period-1;
This will delay all transactions for a period.