Download | Wiki

Condition Question_


#1

Can be deleted. Can be deleted.


#2

Hi,

This is possible in the PT Feeder beta:

https://wiki.ptfeeder.co/beta.html#position-management

The condition you would need to use is something like:

//--------------------------------------------
	// P A I R S  E X P O S U R E
	//--------------------------------------------
	"IncreasedPairsExposurePositionGrouping": {
		"Condition": "(([positions.TotalPairsCurrentValue] - [positions.TotalPairsBoughtCost]) / [positions.TotalPairsBoughtCost]) * 100 < [config.MaxPosition]",
		"Configs": [
			{
				"MaxPosition": "-6",
				"InitialCostPercentageOffset": "-50"
			},
			{
				"MaxPosition": "-3",
				"InitialCostPercentageOffset": "-10"
			},
			{
				"MaxPosition": "-2",
				"InitialCostPercentageOffset": "-5"
			},
		]
	},
	//--------------------------------------------
	// D C A  E X P O S U R E
	//--------------------------------------------
	"IncreasedDcaExposurePositionGrouping": {
		"Condition": "(([positions.TotalDcaCurrentValue] - [positions.TotalDcaBoughtCost]) / [positions.TotalDcaBoughtCost]) * 100 < [config.MaxPosition]",
		"Configs": [
			{
				"MaxPosition": "-6",
				"InitialCostPercentageOffset": "-50"
			},
			{
				"MaxPosition": "-3",
				"InitialCostPercentageOffset": "-25"
			},
			{
				"MaxPosition": "-2",
				"InitialCostPercentageOffset": "-5"
			},
		]
	},

#3

Can be deleted. Can be deleted.


#4

The version that is in beta is very close to stable. There won’t be many changes on top of that.

The initial costs should stay the same. The percentages should however change.

Regarding updating the PT config, the beta version updates a lot quicker. The best way to check is the timestamp feeder prints on the PT config via the PT monitoring config page


#5

I can try your snippet later today or if you message me via discord, I can share a version that checks for errors in your condition. I’m on my phone this evening so can’t run it up myself unfortunately until tomorrow


#6

Can be deleted. Can be deleted.


#7

The PT Feeder Beta will update > 10x times. That is by design. You can reduce it if you like by using the properties here: https://wiki.ptfeeder.co/beta.html#seperate-pairs-and-market-condition-checks

Settings which can be used by default are not present in the default settings file in the zip. If you would like to use them, you can add them in like you have already in the example hostsettings config file you have provided.