Hi* *Eugene,

In Sample Strategy, I saw the strategy logic in onBookSnapshot(). However, 
I am not fully understanding the method calls setPosition(1) 
and setPosition(0). The following is my guess and questions:

The number 0 mean to exit all the positions.

The number 1 mean to keep one if there is one position, add one 
position(one contract?) if there are no position held.

One thing I am not clear is how do I know the position is long or short(?). 
I didn't see this in the code of Sample Strategy.

Thanks,

Xuefeng    


-- 
You received this message because you are subscribed to the Google Groups 
"JBookTrader" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/jbooktrader.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to