generate_stop_exits, generate_ohlc_stop_exits #217
Answered
by
polakowo
bibinvargheset
asked this question in
Q&A
-
how do i specify direction short or long to generate signal, how to generate for shorts |
Beta Was this translation helpful? Give feedback.
Answered by
polakowo
Aug 24, 2021
Replies: 1 comment
-
Direction can't be utilized in vbt.signals, use stop loss logic in |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
bibinvargheset
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Direction can't be utilized in vbt.signals, use stop loss logic in
Portfolio.from_signals
. But I will add an option in v0.21.0 to reverse the stops ingenerate_ohlc_stop_exits
. Ingenerate_stop_exits
, you can control the direction using the sign of the stop value: a positive value acts as a take profit signal for longs and as a stop loss signal for shorts, while a negative value acts in the opposite way.