vectorbt icon indicating copy to clipboard operation
vectorbt copied to clipboard

ma crossover buy sell entries reverse position

Open shieldcorona opened this issue 3 years ago • 0 comments

in the example code entries = fast_ma.ma_crossed_above(slow_ma), exits = fast_ma.ma_crossed_below(slow_ma)

this just creates buy on entry and exits position on exit condition i want to buy on ma_crossed_above and want to exit buy and create a net sell postion on ma_crossed_below and sqaure up positions at 3:25 pm intraday . how do i execute this

shieldcorona avatar Mar 03 '22 06:03 shieldcorona