We can use auto Config Switch logic to switch our bot strategy based on some market conditions.
Say if we wanted to use more conservative settings in times when bitcoin is trending down or more aggressive settings when everything is pumping.
There are a hand full of indicators that we can use to auto switch config.
PTADXTREND, PT24HTREND, VWAPPERCENTAGE, MVWAPPERCENTAGE, (X)MALINE
Now that we have enabled auto config switch, a new tab will appear under Active Config.
From this tab we can setup what strategy should be used under what circumstance
As mentioned above the indicators config setup needs to be done.
since we called our Strategy Label PTADXTREND and we want to use PTADXTREND indicator.
We use the following required fields to setup our indicator
Note: You need to set it up in each config that will be using the auto config logic currently
PTADXTREND_candle_period = 3600
PTADXTREND_length = 40
PTADXTREND_di_length = 40
Now that we are done, we should not be getting any errors in our log file and there will appear an arrow in our GUI indicating what trend we are currently in.
Hover over the arrow to see what values the bot is currently looking at for it's calculation.
Note: There is a delay of about 1 minute for auto config calculations
Below we describe how the different indicators will decide when to swith to what trend.
Is based on the ADX indicator.
ADX only returns a positive value indicating how strong a trend is. So your autoconfig threshold is referencing this value.
Then if +DI is higher than -DI it indicates a BULL.
if -DI is higher than +DI it indicates BEAR.
So direction plus threshold.
PTADXTREND_candle_period = 3600
PTADXTREND_length = 40
PTADXTREND_di_length = 40
Is the average 24h change percentage of topx coins.
You define top5
And we get the average of the top5 , 24h change percentage.
You define a threshold of 4
If the average is > 4 then its bull.
If the average is < -4 then its bear.
Else it is normal.
PT24HTREND_topx = 20
All the following indicators work in the same way, once setup correctly
See buy/sell strategies on how to setup these indicators correctly.
Their logic is as follows:
You define a threshold of 2
If the average is > 2 then its bull.
If the average is < -2 then its bear.
Else it is normal.
VWAPPERCENTAGE_candle_period = 3600
VWAPPERCENTAGE_length = 14
You need to add indicators in all your 3 configs