Open jasonxtrading opened 2 years ago
@httran13 This only analyze signals before simulation
.
If I have a Custom IndicatorFactory , is that mean I need create a corresponding SignalFactory to generate sl_stop, tp_stop
, wonder if here any convenient way .
Would you share any idea about optimisze sl_stop, tp_stop
base on simulation return value (asset_value)?
Hi,
I am trying to make a backtest of a breakout strategy on stocks and would like to find the right combination of TP and SL? I have realised that in vbt.Portfolio.from_signals(close_price,entries,tp_stop = 0.01,sl_stop= 0.005) you cannot give a range of scalars, but only one scalar.
I would like to backtest the strategy with TP target between 0.01 and 0.05 and the same for SL.
Any ideas of how can I go about this?
Thanks in advance.