Square off API
-
How to do a square off through an API for a custom app ??
-
@G-Sreeharsha simple
get the current position
if position > 0
then sell ...make the position 0
else if position < 0
then buy ....make the position 0in effect it is same as square off
1 out of 2