1.3 KiB
1.3 KiB
Strategy Migration between V2 and V3
We have put a great effort into keeping compatibility with existing strategies, so if you just want to continue using freqtrade in spot markets, there should be no changes necessary for now.
To support new markets and trade-types (namely short trades / trades with leverage), some things had to change in the interface. If you intend on using markets other than spot markets, please migrate your strategy to the new format.
Quick summary / checklist
- Dataframe columns:
buy->enter_longsell->exit_longbuy_tag->enter_tag(used for both long and short trades)- New column
enter_shortand corresponding new columnexit_short
- trade-object now has the following new properties:
is_short,enter_side,exit_sideandtrade_direction. - New
sideargument to callbacks without trade objectcustom_stake_amountconfirm_trade_entry
- Renamed
trade.nr_of_successful_buystotrade.nr_of_successful_entries. - Introduced new
leveragecallback @informativedecorator now takes an optionalcandle_typeargument- helper methods
stoploss_from_openandstoploss_from_absolutenow takeis_shortas additional argument. INTERFACE_VERSIONshould be set to 3.