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
Uh oh!
There was an error while loading. Please reload this page.
-
I see that
Portfolio.from_signalshas 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_signalscreation (rather then going to lower-levelfrom_order_funcwhich doesn't support takeprofit/stoploss calculations directly), and emulate the following workflow? :upon_opposite_entry='ignore').I tried using
Portfolio.from_signalswithsignal_func_nb(for my purposes, I need some way to base my signals on the previous positions/results of previous trades). If I configuretp_stopandsl_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