Download | Wiki

PTFeeder does not read email


#21

Seems my BaseCurrency is correct.
In the tradingview messagebox typing anything after BINANCE:BTCUSDT results in an error in PTF saying there is an incorrect base currency.

Do you have a working example, i’m stuck.


#22

Can you upload your appsettings? The one above has base currency as BTC.

I’ll run it up tomorrow or Tuesday to see if I can spot the issue.


#23

the appsettings file is too big to upload here.

{
“PtFeeder”:{
“BaseCurrency”: “USDT”,
“EnabledCoinsOnly”: “BTC”,
“DcaExcludedCoins”:"",
“ExcludedCoins”:"",
“HiddenCoins”:"",
“SomOnlyCoins”:"",
“MeasureTimes”:[
60,
240,
1440
], // 120,1440,2400
“TopCurrenciesToCheck”:“35”,


#24

PTFeeder is reading the Tradingview signals now. There were 1 space after each line in the message box of tradingview. Which results in not implementing the message in PTF.

So now the buy message and sell messages are read. But Profittrailer is not buying or selling.

as the file is to big to upload here, can i mail it?

The grouping part of the appsettings is below.
“TradingViewSignalsGrouping”: {
“Condition”: “[pair.SignalDetected] == true”,
“Configs”: [
{
“MinBuyVolumeOffset”: “-75”,
“TrailingProfitOffset”: “100”,
“InitialCostPercentageOffset”: “100”,
“Override”: {
“DcaRebuyTimeout”: “30”,
“RebuyTimeout”: “120”,
“ABuyStrategy”: “RSI”,
“ABuyValue”: “45”,
“BBuyStrategy”: “DISABLED”,
“CBuyStrategy”: “DISABLED”,
“Weight”: “100”
}
}
]
},

All i want is to buy 100% of my capital on a buy signal and sell 100 % on a sell signal


#26

Your settings there have it set to only buy, even on a signal, at RSI 45 or below


#27

These are my latest settings, they read the mail and buy on TV-Buy signal but not selling on the TV-Sell signal.

{
“PtFeeder”: {
“BaseCurrency”: “USDT”,
“EnabledCoinsOnly”: “BTC”,

// -------------------------------------------------------------------------------------------------------------------------------------------------
// P T F  L I S T S
// -------------------------------------------------------------------------------------------------------------------------------------------------
"HiddenCoins": "", // coins that will be hidden from the PT Monitor
"ExcludedCoins": "", // coins you don't want PTF to create settings for. These will have no config generated and will appear in watchmode
"SomOnlyCoins": "", // these are coins where BASE_COIN_sell_only_mode will be true

// -------------------------------------------------------------------------------------------------------------------------------------------------
// M E A S U R E T I M E S
// -------------------------------------------------------------------------------------------------------------------------------------------------
"MeasureTimes": [
  15,
  60,
  1440
],

"TopCurrenciesToCheck": "35", // number of pairs to check from your exchange for MaxTopCoinAverageChange

// -------------------------------------------------------------------------------------------------------------------------------------------------
// P T F  I N D I C A T O R S
// -------------------------------------------------------------------------------------------------------------------------------------------------

"FeederCandleSize": "5m", // 5 minute candles

"EmaShortCandleSize": "5m", // Candle size for EMA short
"EmaLongCandleSize": "5m", // Candle size for EMA long
"SmaShortCandleSize": "5m", // Candle size for SMA short
"SmaLongCandleSize": "5m", // Candle size for SMA long
"EmaShortPeriod": "13", // EMA short period
"EmaLongPeriod": "63", // EMA long period
"SmaShortPeriod": "13", // SMA short period
"SmaLongPeriod": "63", // SMA long period
"RsiLongPeriod": "40",
"RsiShortPeriod": "20",
"RsiShortCandleSize": "5m",
"RsiLongCandleSize": "5m", 
"BaseHighLowPriceChangeCandleSize": "5m",
"HighestCandlesSize": "5m",
"LowestCandlesSize": "5m"

},

“Common”: {

"OrderbookProfitCalculation": "true",
//"DcaSomDcaBuyTrigger": "-20",

// -------------------------------------------------------------------------------------------------------------------------------------------------
// B A L A N C E S
// -------------------------------------------------------------------------------------------------------------------------------------------------
"MaxTradingPairs": "1",
"StartBalance":  "5000", 

"KeepBalance": "0",
"KeepBalancePercentage": "0",
//DCA
//"DcaKeepBalance": "0",
//"DcaKeepBalancePercentage": "0",

// -------------------------------------------------------------------------------------------------------------------------------------------------
// P T  I N D I C A T O R S
// -------------------------------------------------------------------------------------------------------------------------------------------------
"IndicatorsBbStd": "2",
"IndicatorsBbCandlePeriod": "300",
"IndicatorsBbLength": "30",
"IndicatorsSmaCrossCandles": "2",
"IndicatorsSmaCandlePeriod": "300",
"IndicatorsSmaFastLength": "12",
"IndicatorsSmaSlowLength": "24",
"IndicatorsEmaCrossCandles": "40",
"IndicatorsEmaCandlePeriod": "300",
"IndicatorsEmaFastLength": "3",
"IndicatorsEmaSlowLength": "12",
"IndicatorsRsiCandlePeriod": "300",
"IndicatorsRsiLength": "14",
"IndicatorsStochLength": "14",
"IndicatorsStochCandlePeriod": "300",
"IndicatorsMacdCandlePeriod": "300",
"IndicatorsMacdFastLength": "12",
"IndicatorsMacdSlowLength": "26",
"IndicatorsMacdSignal": "9",
"IndicatorsSomTriggerLength": "288"

},
“Defaults”: {

"PanicSellEnabled": "false",
"DcaIgnoreSellOnlyMode": "true",

// -------------------------------------------------------------------------------------------------------------------------------------------------
// C O S T S
// -------------------------------------------------------------------------------------------------------------------------------------------------
"InitialCost": "4000",
"InitialCostPercentage": "0",
"DcaMaxCost": "1",

// -------------------------------------------------------------------------------------------------------------------------------------------------
// F I L T E R S
// -------------------------------------------------------------------------------------------------------------------------------------------------
"MinBuyPrice": "0",
"MinBuyVolume": "100",

// -------------------------------------------------------------------------------------------------------------------------------------------------
// S A F E T I E S
// -------------------------------------------------------------------------------------------------------------------------------------------------
"MaxBuySpread": "1.75",
"MinOrderbookVolumePercentage": "50",
"RebuyTimeout": "3",
"DcaMinBuyVolume": "100",
"DcaMinOrderbookVolumePercentage": "50",
"DcaMaxBuySpread": "1.75",
"DcaRebuyTimeout": "1",

// -------------------------------------------------------------------------------------------------------------------------------------------------
// T R A I L I N G S
// -------------------------------------------------------------------------------------------------------------------------------------------------
"TrailingProfit": "0.15",
"TrailingBuy": "999999",
"DcaTrailingProfit": "999999",
"DcaTrailingBuy": "0",
"TrailingProfitType": "GROW",

// -------------------------------------------------------------------------------------------------------------------------------------------------
// T A K E  P R O F I T S
// -------------------------------------------------------------------------------------------------------------------------------------------------
"TakeProfitWaitTime": "10",
"TakeProfitPercentage": "3",
"DcaTakeProfitWaitTime": "10",
"DcaTakeProfitPercentage": "3",
"DcaMaxProfit": "0",

// -------------------------------------------------------------------------------------------------------------------------------------------------
// S T O P  L O S S E S
// -------------------------------------------------------------------------------------------------------------------------------------------------
"StopLossTrigger": "-4.5",
"StopLossTimeout": "0",
//"DcaStopLossTrigger": "-8.5",
"DcaStopLossTimeout": "0",

// -------------------------------------------------------------------------------------------------------------------------------------------------
// B U Y  S T R A T S
// -------------------------------------------------------------------------------------------------------------------------------------------------

"ABuyStrategy": "LOSS",
"ABuyValue": "-101",


"DcaABuyStrategy": "LOSS",
"DcaABuyValue": "-101",


// -------------------------------------------------------------------------------------------------------------------------------------------------
// S E L L  S T R A T S
// -------------------------------------------------------------------------------------------------------------------------------------------------
"ASellStrategy": "GAIN",
"ASellValue": "999999",


"DcaASellStrategy": "GAIN",
"DcaASellValue": "999999",


// -------------------------------------------------------------------------------------------------------------------------------------------------
// D C A  S E T T I N G S
// -------------------------------------------------------------------------------------------------------------------------------------------------
"DcaEnabled": "-0.9",
"DcaBuyTrigger": "0",
"DcaBuyPercentage": "100",
"DcaMaxBuyTimes": "3"

},

// -------------------------------------------------------------------------------------------------------------------------------------------------
// M A R K E T C O N D I T I O N S
// -------------------------------------------------------------------------------------------------------------------------------------------------

“MarketConditionsGrouping”: {
“Configs”: [
{
“Name”: “Bear”,
“MaxTopCoinAverageChange”: “-5”,
“DcaStopLossTriggerOffset”: “-100”,
},
{
“Name”: “Boring”,
“MaxTopCoinAverageChange”: “2.5”
},
{
“Name”: “Bull”,
“MaxTopCoinAverageChange”: “5”,
“InitialCostPercentageOffset”: “-20”
},
{
“Name”: “SuperBull”,
“MaxTopCoinAverageChange”: “10000”
}
]
},

// -------------------------------------------------------------------------------------------------------------------------------------------------
// P R I C E T R E N D
// -------------------------------------------------------------------------------------------------------------------------------------------------

“PriceTrendChangeGrouping”: {
“Configs”: [
{
“MaxPriceTrendPercentageChange”: “-10”
},
{
“MaxPriceTrendPercentageChange”: “-5”,
“ABuyValueOffset”: “-500”, // emacross. -0.01
“ABuyValueLimitOffset”: “-200”,
“BBuyValueOffset”: “-100”,
“BBuyValueLimitOffset”: “-100”,
“DcaABuyValueOffset”: “-500”, // emacross - 0.01
“DcaABuyValueLimitOffset”: “-200”,
“DcaBBuyValueOffset”: “-100”, // lowbb - 35
“DcaBBuyValueLimitOffset”: “-100”
},
{
“MaxPriceTrendPercentageChange”: “7”
},
{
“MaxPriceTrendPercentageChange”: “1000000”,
“ABuyValueOffset”: “-500”, // emacross. -0.01
“ABuyValueLimitOffset”: “-200”,
“BBuyValueOffset”: “-100”,
“BBuyValueLimitOffset”: “-100”,
“DcaABuyValueOffset”: “-500”, // emacross - 0.01
“DcaABuyValueLimitOffset”: “-200”,
“DcaBBuyValueOffset”: “-100”, // lowbb - 35
“DcaBBuyValueLimitOffset”: “-100”
}
]
},

// -------------------------------------------------------------------------------------------------------------------------------------------------
// T V S I G N A L S
// -------------------------------------------------------------------------------------------------------------------------------------------------

“TradingViewSignalsGrouping”: {
“Condition”: “[pair.SignalDetected] == true”,
“Configs”: [
{
“Override”: {
“Weight”: “100”
}
}
]
},

// -------------------------------------------------------------------------------------------------------------------------------------------------
// N E W C O I N S
// -------------------------------------------------------------------------------------------------------------------------------------------------
“NewCoinsGrouping”: {
“Configs”: [
{
“CoinAge”: “3”,
“TimeUnit”: “Days”,
“Override”: {
“SellOnlyModeEnabled”: “true”
}
}
]
},

// -------------------------------------------------------------------------------------------------------------------------------------------------
// C A N D L E S I Z E
// -------------------------------------------------------------------------------------------------------------------------------------------------
“AverageCandleSizeGrouping”: {
“Configs”: [
{
“MaxPercentageSizeOfPrice”: “0.02”,
“SellOnlyModeEnabled”: “true”,
“DcaASellValueOffset”: “-50”, // gain
“DcaBSellValueOffset”: “-50”, //rsi
“ASellValueOffset”: “-50”, // gain
“BSellValueOffset”: “50” //rsi
}
]
},

// -------------------------------------------------------------------------------------------------------------------------------------------------
// V O L A T I L I T Y
// -------------------------------------------------------------------------------------------------------------------------------------------------
“DownsideVolatilityGrouping”: {
“Configs”: [
{
“MaxChangeFromOpen”: “1.5”
},
{
“MaxChangeFromOpen”: “1000”,
“SellOnlyModeEnabled”: “true”,
“DcaASellValueOffset”: “-50”, // gain
“DcaBSellValueOffset”: “-50”, //rsi
“ASellValueOffset”: “-50”, // gain
“BSellValueOffset”: “50” //rsi
}
]
}
}


#28

If you just want to use TV, I would reccomend deleting C A N D L E S I Z E, V O L A T I L I T Y and any changes you are making in your market conditions. As all of these could be preventing a sell or a buy.

After you have changed the hidden space, I need to see an example of a SELL alert and a BUY alert that Feeder receives. They get translated directly into PT settings.


#29

Buy Alert
2018-11-19 00:30:09.441 +01:00 [Information] Signal detected:
11/18/18 11:30:00 PM
PT2TESTFeeder
USDT-BTC
Exchange:Binance
From:TradingView
Latency:5s
Message:
BINANCE:BTCUSDT
SET
ABuyStrategy=RSI
ABuyValue=100
TrailingBuy=0
Weight=100

Sell Alert

2018-11-19 00:35:10.760 +01:00 [Information] Signal detected:
11/18/18 11:35:00 PM
PT2TESTFeeder
USDT-BTC
Exchange:Binance
From:TradingView
Latency:3s
Message:
BINANCE:BTCUSDT
SET
ASellStrategy=GAIN
ASellValue=0.1
TrailingProfit=0
Weight=100

Current Script:

{
“PtFeeder”: {
“BaseCurrency”: “USDT”,
“EnabledCoinsOnly”: “BTC”,

// -------------------------------------------------------------------------------------------------------------------------------------------------
// P T F  L I S T S
// -------------------------------------------------------------------------------------------------------------------------------------------------
"HiddenCoins": "", // coins that will be hidden from the PT Monitor
"ExcludedCoins": "", // coins you don't want PTF to create settings for. These will have no config generated and will appear in watchmode
"SomOnlyCoins": "", // these are coins where BASE_COIN_sell_only_mode will be true

// -------------------------------------------------------------------------------------------------------------------------------------------------
// M E A S U R E T I M E S
// -------------------------------------------------------------------------------------------------------------------------------------------------
"MeasureTimes": [
  15,
  60,
  1440
],

"TopCurrenciesToCheck": "35", // number of pairs to check from your exchange for MaxTopCoinAverageChange

// -------------------------------------------------------------------------------------------------------------------------------------------------
// P T F  I N D I C A T O R S
// -------------------------------------------------------------------------------------------------------------------------------------------------

"FeederCandleSize": "5m", // 5 minute candles

"EmaShortCandleSize": "5m", // Candle size for EMA short
"EmaLongCandleSize": "5m", // Candle size for EMA long
"SmaShortCandleSize": "5m", // Candle size for SMA short
"SmaLongCandleSize": "5m", // Candle size for SMA long
"EmaShortPeriod": "13", // EMA short period
"EmaLongPeriod": "63", // EMA long period
"SmaShortPeriod": "13", // SMA short period
"SmaLongPeriod": "63", // SMA long period
"RsiLongPeriod": "40",
"RsiShortPeriod": "20",
"RsiShortCandleSize": "5m",
"RsiLongCandleSize": "5m", 
"BaseHighLowPriceChangeCandleSize": "5m",
"HighestCandlesSize": "5m",
"LowestCandlesSize": "5m"

},

“Common”: {

"OrderbookProfitCalculation": "true",
//"DcaSomDcaBuyTrigger": "-20",

// -------------------------------------------------------------------------------------------------------------------------------------------------
// B A L A N C E S
// -------------------------------------------------------------------------------------------------------------------------------------------------
"MaxTradingPairs": "1",
"StartBalance":  "5000", 

"KeepBalance": "0",
"KeepBalancePercentage": "0",
//DCA
//"DcaKeepBalance": "0",
//"DcaKeepBalancePercentage": "0",

// -------------------------------------------------------------------------------------------------------------------------------------------------
// P T  I N D I C A T O R S
// -------------------------------------------------------------------------------------------------------------------------------------------------
"IndicatorsBbStd": "2",
"IndicatorsBbCandlePeriod": "300",
"IndicatorsBbLength": "30",
"IndicatorsSmaCrossCandles": "2",
"IndicatorsSmaCandlePeriod": "300",
"IndicatorsSmaFastLength": "12",
"IndicatorsSmaSlowLength": "24",
"IndicatorsEmaCrossCandles": "40",
"IndicatorsEmaCandlePeriod": "300",
"IndicatorsEmaFastLength": "3",
"IndicatorsEmaSlowLength": "12",
"IndicatorsRsiCandlePeriod": "300",
"IndicatorsRsiLength": "14",
"IndicatorsStochLength": "14",
"IndicatorsStochCandlePeriod": "300",
"IndicatorsMacdCandlePeriod": "300",
"IndicatorsMacdFastLength": "12",
"IndicatorsMacdSlowLength": "26",
"IndicatorsMacdSignal": "9",
"IndicatorsSomTriggerLength": "288"

},
“Defaults”: {

"PanicSellEnabled": "false",
"DcaIgnoreSellOnlyMode": "true",

// -------------------------------------------------------------------------------------------------------------------------------------------------
// C O S T S
// -------------------------------------------------------------------------------------------------------------------------------------------------
"InitialCost": "4000",
"InitialCostPercentage": "0",
"DcaMaxCost": "1",

// -------------------------------------------------------------------------------------------------------------------------------------------------
// F I L T E R S
// -------------------------------------------------------------------------------------------------------------------------------------------------
"MinBuyPrice": "0",
"MinBuyVolume": "100",

// -------------------------------------------------------------------------------------------------------------------------------------------------
// S A F E T I E S
// -------------------------------------------------------------------------------------------------------------------------------------------------
"MaxBuySpread": "1.75",
"MinOrderbookVolumePercentage": "50",
"RebuyTimeout": "3",
"DcaMinBuyVolume": "100",
"DcaMinOrderbookVolumePercentage": "50",
"DcaMaxBuySpread": "1.75",
"DcaRebuyTimeout": "1",

// -------------------------------------------------------------------------------------------------------------------------------------------------
// T R A I L I N G S
// -------------------------------------------------------------------------------------------------------------------------------------------------
"TrailingProfit": "0.15",
"TrailingBuy": "999999",
"DcaTrailingProfit": "999999",
"DcaTrailingBuy": "0",
"TrailingProfitType": "GROW",

// -------------------------------------------------------------------------------------------------------------------------------------------------
// T A K E  P R O F I T S
// -------------------------------------------------------------------------------------------------------------------------------------------------
"TakeProfitWaitTime": "10",
"TakeProfitPercentage": "3",
"DcaTakeProfitWaitTime": "10",
"DcaTakeProfitPercentage": "3",
"DcaMaxProfit": "0",

// -------------------------------------------------------------------------------------------------------------------------------------------------
// S T O P  L O S S E S
// -------------------------------------------------------------------------------------------------------------------------------------------------
"StopLossTrigger": "-4.5",
"StopLossTimeout": "0",
//"DcaStopLossTrigger": "-8.5",
"DcaStopLossTimeout": "0",

// -------------------------------------------------------------------------------------------------------------------------------------------------
// B U Y  S T R A T S
// -------------------------------------------------------------------------------------------------------------------------------------------------

"ABuyStrategy": "LOSS",
"ABuyValue": "-101",


"DcaABuyStrategy": "LOSS",
"DcaABuyValue": "-101",


// -------------------------------------------------------------------------------------------------------------------------------------------------
// S E L L  S T R A T S
// -------------------------------------------------------------------------------------------------------------------------------------------------
"ASellStrategy": "GAIN",
"ASellValue": "999999",


"DcaASellStrategy": "GAIN",
"DcaASellValue": "999999",


// -------------------------------------------------------------------------------------------------------------------------------------------------
// D C A  S E T T I N G S
// -------------------------------------------------------------------------------------------------------------------------------------------------
"DcaEnabled": "-0.9",
"DcaBuyTrigger": "0",
"DcaBuyPercentage": "100",
"DcaMaxBuyTimes": "3"

},

// -------------------------------------------------------------------------------------------------------------------------------------------------
// M A R K E T C O N D I T I O N S
// -------------------------------------------------------------------------------------------------------------------------------------------------

“MarketConditionsGrouping”: {
“Configs”: [
{
“Name”: “Bear”,
“MaxTopCoinAverageChange”: “-5”
},
{
“Name”: “Boring”,
“MaxTopCoinAverageChange”: “2.5”
},
{
“Name”: “Bull”,
“MaxTopCoinAverageChange”: “5”
},
{
“Name”: “SuperBull”,
“MaxTopCoinAverageChange”: “10000”
}
]
},

// -------------------------------------------------------------------------------------------------------------------------------------------------
// P R I C E T R E N D
// -------------------------------------------------------------------------------------------------------------------------------------------------

“PriceTrendChangeGrouping”: {
“Configs”: [
{
“MaxPriceTrendPercentageChange”: “-10”
},
{
“MaxPriceTrendPercentageChange”: “-5”,
“ABuyValueOffset”: “-500”, // emacross. -0.01
“ABuyValueLimitOffset”: “-200”,
“BBuyValueOffset”: “-100”,
“BBuyValueLimitOffset”: “-100”,
“DcaABuyValueOffset”: “-500”, // emacross - 0.01
“DcaABuyValueLimitOffset”: “-200”,
“DcaBBuyValueOffset”: “-100”, // lowbb - 35
“DcaBBuyValueLimitOffset”: “-100”
},
{
“MaxPriceTrendPercentageChange”: “7”
},
{
“MaxPriceTrendPercentageChange”: “1000000”,
“ABuyValueOffset”: “-500”, // emacross. -0.01
“ABuyValueLimitOffset”: “-200”,
“BBuyValueOffset”: “-100”,
“BBuyValueLimitOffset”: “-100”,
“DcaABuyValueOffset”: “-500”, // emacross - 0.01
“DcaABuyValueLimitOffset”: “-200”,
“DcaBBuyValueOffset”: “-100”, // lowbb - 35
“DcaBBuyValueLimitOffset”: “-100”
}
]
},

// -------------------------------------------------------------------------------------------------------------------------------------------------
// T V S I G N A L S
// -------------------------------------------------------------------------------------------------------------------------------------------------

“TradingViewSignalsGrouping”: {
“Condition”: “[pair.SignalDetected] == true”,
“Configs”: [
{
“Override”: {
“Weight”: “100”
}
}
]
},

// -------------------------------------------------------------------------------------------------------------------------------------------------
// N E W C O I N S
// -------------------------------------------------------------------------------------------------------------------------------------------------
“NewCoinsGrouping”: {
“Configs”: [
{
“CoinAge”: “3”,
“TimeUnit”: “Days”,
“Override”: {
“SellOnlyModeEnabled”: “true”
}
}
]
},
}