Replies: 1 comment
-
Answering the question myself: seems like |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I see that
Portfolio.from_signals
has a number of conflict-resolving switches; and also that some other low-level ways of deciding the orders do support multiple orders per tick (#204).But is it possible to stay with just the
from_signals
creation (rather then going to lower-levelfrom_order_func
which doesn't support takeprofit/stoploss calculations directly), and emulate the following workflow? :upon_opposite_entry='ignore'
).I tried using
Portfolio.from_signals
withsignal_func_nb
(for my purposes, I need some way to base my signals on the previous positions/results of previous trades). If I configuretp_stop
andsl_stop
– any entry signals get entered only on the next tick after TP/SL are hit. But I also noticed that if I omitupon_opposite_entry='ignore'
and revert the entry signals, exit and (opposite) reentry happen on the same ticks. So I guess I am missing something obvious...Beta Was this translation helpful? Give feedback.
All reactions