PT Feeder 1.4 to 1.5 upgrade guide
There are a lot of changes when moving from 1.4 to 1.5 of PT Feeder.
Below is a step by step upgrade guide if you are moving PT Feeder from 1.4 to 1.5 AND still using ProfitTrailer version 1.
WARNING
If you are using ProfitTrailer version 2, it is reccomended to step your settings from scratch, as a lot of the property names have changed and their have been a lot more added.
- Upgrade your dotnet install to dotnet core 2.1.4. This can be found here
- Review your
hostsettings.json
file to make sure you are using the folder format ofProfitTrailerFolder1
. - Add a section at the start of your
appsettings.json
file called PtFeeder, just after the first {
"PtFeeder": {
},
- In the
General
section of your existing appsettings.json, if you have any of the following properties, copy them into the section from 3.
BaseCurrency
EnabledCoinsOnly
ExcludedCoins
HiddenCoins
MaxTrailingBuy
MaxTrailingProfit
MinTrailingBuy
MinTrailingProfit
MinutesForLongerTermTrend
MinutesToMeasureTrend
SomOnlyCoins
TopCurrenciesToCheck
DcaExcludedCoins
DcaIncludedCoins
It should look something like:
{
"PtFeeder": {
// These are specific to PT feeder.
// This is needed by Feeder for its queries to the exchange and used as the MARKET for PT
"BaseCurrency": "BTC",
// These are used as the boundaries for the Calculate Trailing calculations
"MaxTrailingProfit": "0.3",
"MinTrailingProfit": "0.01",
"MaxTrailingBuy": "0.3",
"MinTrailingBuy": "0.01",
"HiddenCoins": "BNB", // coins that will be hidden from the PT Monitor
"ExcludedCoins": "BNB,NBT,DNT,AE,CHAT,VIA,ZIL", // coins you don't want PTF to create settings for. These will have no config generated and will appear in watchmode
"SomOnlyCoins": "8BIT,ADC,AM,AMS,APEX,ARB,BITS,BITZ,BLC,BOB,BSTY,BTA,CCN,CRBIT,CRYPT,DAR,DGC,DRACO,DTC,FC2,FRK,FSC2,GEMZ,GHC,GP,GRT,HKG,HYPER,HZ,J,KR,LXC,MAX,MEC,METAL,MND,MTR,MZC,NAUT,NET,NEU,NTRN,OC,ORB,PRIME,PXI,ROOT,SCOT,SCRT,SFR,SLG,SLING,SOON,SPRTS,SSD,STEPS,STV,SWING,TES,TIT,TRI,TRK,U,UFO,UNIQ,UNIT,UNO,UTC,VIOR,VIRAL,VPN,WARP,XAUR,XBB,XC,XCO,XDQ,XPY,XQN,XSEED,XTC,YBC", // these are coins where BASE_COIN_sell_only_mode will be true
"MinutesForLongerTermTrend": "720", // minutes to measure trend for longer term trends
"MinutesToMeasureTrend": "120", // minutes to measure trend for base coin trend, PriceTrendChange and volatility calc
"TopCurrenciesToCheck": "35" // number of pairs to check from your exchange for MaxTopCoinAverageChange
},
- Add a section called Common. In this, goes properties which do not have a ALL_ prefix. This will include DCA properties and indicators from your middle market condition folder in dca.txt and indicator.txt.
"Common": {
},
It will look something like this.
"Common": {
"DcaBuyStrategy": "ANDERSON", // buy_strategy = ANDERSON
"DcaBuyStyle": "DOUBLEDOWN", // buy_style = DOUBLEDOWN
"DcaBuyTrigger1": "-3.5", // buy_trigger_1 = -3.5
"DcaBuyTrigger2": "-4.5", // buy_trigger_2 = -4.5
"DcaBuyTrigger3": "-5.5", // buy_trigger_3 = -4.5
"DcaBuyTrigger4": "-5.5", // buy_trigger_4 = -5.5
"DcaBuyTrigger5": "-5.5", // buy_trigger_5 = -5.5
"DcaMaxBuySpread": "1", // max_buy_spread in DCA.properties
"DcaMaxBuyTimes": "5", // max_buy_times in DCA.properties
"DcaMaxCost": "0.1", // max_cost in DCA.properties
"DcaMinBuyBalance": "20", // min_buy_balance in DCA.properties
"DcaSellStrategy": "GAIN", // sell_strategy in DCA.properties
"DcaSellValue": "0.75", // sell_value in DCA.properties
"DcaTrailingBuy": "0.15", // trailing_buy in DCA.properties
"DcaTrailingProfit": "0.15", // trailing_profit in DCA.properties
"IndicatorsBbPeriod": "3600",
"IndicatorsBbSma": "20",
"IndicatorsSmaCrossCandles": "4",
"IndicatorsSmaPeriod": "900",
"IndicatorsSma1": "13",
"IndicatorsSma2": "2",
"IndicatorsEmaCrossCandles": "2",
"IndicatorsEmaPeriod": "3600",
"IndicatorsEma1": "30",
"IndicatorsEma2": "15"
},
- Add a section called Defaults. These are the base values for your coins. You can move anything that was in your pairs.txt and began with ALL_ in here.
"Defaults": { // The following are the base values for pairs and translated directly to ALL_ properties in pairs.properties
},
It will look something like this:
"Defaults": { // The following are the base values for pairs and translated directly to ALL_ properties in pairs.properties
"BuyStrategy": "LOWBB", // ALL_buy_strategy
"BuyValue": "15", // ALL_buy_value
"MaxCost": "0.003", // ALL_max_cost or or All_max_cost_percentage
"MaxBuySpread": "1", // All_max_buy_spread
"TrailingBuy": "0.3", // All_trailing_buy
"TrailingProfit": "0.3", // All_tailing_profit
"MinBuyBalance": "50", // All_min_buy_balance or All_min_buy_balance_percentage
"MinBuyPrice": "0.00005", // All_min_buy_price
"MinBuyVolume": "500", // All_min_buy_volume
"MaxTradingPairs": "15", // ALL_max_trading_pairs
"SellStrategy": "GAIN", // ALL_sell_strategy
"SellValue": "0.75", // ALL_sell_value
"DcaEnabled": "-3" // ALL_DCA_enabled
},
For each next section, add Grouping at the end of the section. So MarketConditions becomes MarketConditionGrouping for example. A full list of supported groupings can be found here
In the market condition grouping, you can move in your txt files as overrides, using the same property names as the common section. For example:
"MarketConditionsGrouping": {
"Configs": [
{
// If the top coins average is less than -1.5%, then go into Sell Only Mode
"Name": "01-bear",
"MaxTopCoinAverageChange": "-1.5",
"BuyValueOffset": "-30",
"SellOnlyModeEnabled": "true",
"SellValueOffset": "-20",
"DcaTrailingBuyOffset": "10",
"DcaTrailingProfitOffset": "-20",
"Override": {
"DcaBuyTrigger1": "-1.5",
"DcaBuyTrigger2": "-2.5",
"DcaBuyTrigger3": "-3.5",
"DcaBuyTrigger4": "-4.5",
"DcaBuyTrigger5": "-5.5"
}
},
- Find and replace in the file any name changes.
FolderName => Name
Cost => MaxCost
NumberOfPairs => MaxTradingPairs
ExcludedPairs => ExcludedCoins
SomOnlyPairs => SomOnlyCoins
DcaExcluded => DcaExcludedCoins
EnabledPairsOnly => EnabledCoinsOnly,
In Offsets:
SellOnlyMode => SellOnlyModeEnabled
CostOffset => MaxCostOffset
Groupings
LongTermPriceChange => LongerTermPriceTrendChangeGrouping
- You are now ready to run