7.5 Position

2020-04-26  本文已影响0人  wanggs66

Position on an asset is usually checked from within a Strategy with:

Which will return the position on datas[0] of the strategy in the default broker provided by cerebro

A position is simply the indication of:

It serves as a status and can for example be used in deciding if an order has to be issued or not (example: long positions are only entered if no position is open)

上一篇 下一篇

猜你喜欢

热点阅读