# Available Properties

# Market

market.CurrentBaseCoinPrice

market.BaseCoinShortSma 
market.BaseCoinLongSma

market.BaseCoinShortEma
market.BaseCoinLongEma

market.TopCoinsAverageLongEma - The EMA of your topcoins
market.TopCoinsAverageShortEma

market.BaseCoinHighest
market.BaseCoinLowest

market.HighLowPriceChange

market.BaseCoinRsiLong
market.BaseCoinRsiShort

market.BaseCoinMacd 

market.BaseCoinAtrp
market.TopCoinsAtrpAverage

market.TopCoinsChange
market.VwapChange
market.BaseCoinPriceChange

market.BtcDominance
market.TotalMarketCap

# Pairs (where x is the number of your MeasureTimes)


pair.BaseCurrency
pair.QuoteCurrency

pair.Volume 
pair.LastPrice

pair.Atrp(x)

pair.Vwap(x)

pair.Highest(x)
pair.Lowest(x)

pair.ShortSma
pair.LongSma

pair.ShortEma
pair.LongEma

pair.ShorterEma
pair.LongerEma

pair.ShortHma
pair.LongHma

pair.ShorterHma
pair.LongerHma

pair.ShortBbWidth
pair.LongBbWidth

pair.ShorterBbWidth
pair.LongerBbWidth

pair.LongRsi
pair.ShortRsi

pair.Macd (Requires MacdFastLength, MacdSlowLength and MacdSignalLength)

pair.AverageCandleBodySize(x)

pair.DcaEnabled
pair.SellOnlyModeEnabled

pair.PercentageChange(x) 

pair.VolumePercentageChange(x)

pair.HighLowPercentageChange(x)

pair.DownsideVolatility(x) 
pair.UpsideVolatility(x)

pair.Pearson(x) (In testing. See (https://www.daytrading.com/correlation). Correlation between linear regression line between high/low and candle closes)

pair.DcaCount 
pair.Profit
pair.TotalCost 
pair.FirstBoughtInMinutes

pair.PendingBoughtCost 
pair.PendingValue 
pair.PendingCount 

# Positions

positions.TotalPairsCurrentValue
positions.TotalDcaCurrentValue

positions.TotalPairsBoughtCost
positions.TotalDcaBoughtCost

positions.TotalPendingCurrentValue
positions.TotalPendingBoughtCost

positions.PairsBalance
positions.DcaBalance

positions.RealBalance

positions.DcaCoinCount
positions.PairsCoinCount
positions.PendingCoinCount

# Examples

# Reduce cost based on volume

As the 24 hour volume increases, reduce my InitialCostPercentage by less

"VolumeCostGrouping": {
		"Condition": "[pair.Volume] < [config.Volume]",
		"Configs": [
			{
				"Volume": "250",
				"InitialCostPercentageOffset": "-15",
			},
			{
				"Volume": "500",
				"InitialCostPercentageOffset": "-10",
			},
			{
				"Volume": "1000",
				"InitialCostPercentageOffset": "-5"
			},
		]
	},

# Reduce cost based on pairs & dca exposure

As my DCA and pairs exposure increases, reduce my InitialCostPercentage

	"IncreasedPairsExposurePositionGrouping": {
		"Condition": "(([positions.TotalPairsCurrentValue] - [positions.TotalPairsBoughtCost]) / [positions.TotalPairsBoughtCost]) * 100 < [config.MaxPosition]",
		"Configs": [
			{
				"MaxPosition": "-6",
				"InitialCostPercentageOffset": "-25"
			},
			{
				"MaxPosition": "-3",
				"InitialCostPercentageOffset": "-10"
			},
			{
				"MaxPosition": "-2",
				"InitialCostPercentageOffset": "-5"
			},
		]
	},
	"IncreasedDcaExposurePositionGrouping": {
		"Condition": "(([positions.TotalDcaCurrentValue] - [positions.TotalDcaBoughtCost]) / [positions.TotalDcaBoughtCost]) * 100 < [config.MaxPosition]",
		"Configs": [
			{
				"MaxPosition": "-6",
				"InitialCostPercentageOffset": "-25"
			},
			{
				"MaxPosition": "-3",
				"InitialCostPercentageOffset": "-10"
			},
			{
				"MaxPosition": "-2",
				"InitialCostPercentageOffset": "-5"
			},
		]
	},

As the percentage price trend changes in my long and short MeasureTime, if it is more than 10% or inbetween -10000% and -10%, then place the coin in SOM

	"PriceChangeSomGrouping": {
		"Condition": "[pair.PercentageChange(3)] > [config.PriceChange] || [pair.PercentageChange(1)] > [config.PriceChange]",
		"Configs": [
			{
				"PriceChange": "10",
				"Override": {
					"SellOnlyModeEnabled": "true",
					"Weight": "3"
				}
			},
			{
				"PriceChange": "-10",
			},
			{
				"PriceChange": "-10000",
				"Override": {
					"SellOnlyModeEnabled": "true",
					"Weight": "3"
				}
			}
		]
	},

# Reduce buy % based on bag size

If the size of my bag is bigger than 0.03 BTC, then only chop away at the bag by 10%

	"DcaCostGrouping": {
		"Condition": "[pair.TotalCost] >= 0.03",
		"Configs": [
			{
				"Override": {
					"DcaBuyPercentage": "10",
					"Weight": "100"
				}
			}
		]
	}, 

# Change DCA strategy for PT Defender

If the coin is in my pending log and it has a small shard size, then change the DCA strategy

	"DefenderGrouping": {
		"Condition": "[pair.TotalCost] <= 0.005 && [pair.PendingCount] > 1",
		"Configs": [
			{
				"Override": {
					"DcaEnabled": "-0.01",
					"DcaBuyPercentage": "100",
					"DcaABuyStrategy": "EMAGAIN",
					"DcaABuyValue": "-0.15",
					"DcaBBuyStrategy": "RSI",
					"DcaBBuyValue": "40",
					"DcaCBuyStrategy": "STOCH",
					"DcaCBuyValue": "40",
					"DcaMaxBuyTimes": "5",
					"DcaBuyTrigger1": "-0.75",
					"DcaBuyTrigger2": "-0.75",
					"DcaBuyTrigger3": "-0.75",
					"DcaBuyTrigger4": "-0.75",
					"DcaBuyTrigger5": "-0.75",
					"DcaBuyTrigger6": "-0.75",
					"TrailingBuyType": "GROW",
					"DcaTrailingBuyType": "GROW",
					"DcaTrailingBuy": "0.15",
					"Weight": "100"
				}
			}
		]
	},