Strategi Keseimbangan Indeks
This bot wuill maintain a specific proportion of each asset value as you set.
If you set ETH value to 25%(0.25) of portfolio, deviation to 0.1, bot will buy to 0.25 when the value ratio is below 0.90.25 and sell when it is above 1.10.25, thus, the ETH value is kept to a certain ratio.
Balancing more than one asset, you have to add trading pair separately, and ratios is input like "0.25|0.2|0.3".
Remember, the total ratio added up must lower than 1 and has a extra room to buy.
Strategi keseimbangan indeks. Aset dapat diseimbangkan dalam proporsi yang telah ditentukan, mendukung keseimbangan lintas bursa. Perhatikan untuk menyetujui setiap bursa untuk ditambahkan berdekatan.
The Flash Crash Bot sets pre-orders above and below a specified base price. Buy orders are placed at predefined price points that fall below the set base price. Conversely, sell orders are placed above this base price. This bot is most effective in a volatile market.
var account = _C(exchanges[0].GetAccount);
var coinValue = {};
var totalValue = 0;
function updateValue(){
var logString = 'Time: '+ _D() + '\n';
totalValue = 0;
coinValue[BaseAsset] = 0;
logString += BaseAsset + ': ' + _N(coinValue[BaseAsset].value,5) + '\n';
for(var i=0;i<exchanges.length;i++){
var account = _C(exchanges[i].GetAccount);
if(i > 0 && exchanges[i].GetLabel != exchanges[i-1].GetLabel){
coinValue[BaseAsset] += {amount:account.Balance + account.FrozenBalance, value:account.Balance + account.FrozenBalance};- 1
