private void InitETH(BitmexContractElement c, BitmexScalperElement s) { _posControls[c.Symbol] = ethPositionCtrl; tabItemEth.Header = "ETH"; InitPositionControl(ethPositionCtrl, c, s, String.Empty); }
private void InitXBT(BitmexContractElement c, BitmexScalperElement s) { _posControls[c.Symbol] = xbtPositionCtrl; tabItemXbt.Header = "BTC"; InitPositionControl(xbtPositionCtrl, c, s, String.Empty); }
private void InitTRX(BitmexContractElement c, BitmexScalperElement s, string symbolCode) { _posControls[c.Symbol + symbolCode] = trxPositionCtrl; trxPositionCtrl.PriceMultiplier = 1000000000; tabItemTrx.Header = "TRX"; InitPositionControl(trxPositionCtrl, c, s, symbolCode); }
private void InitADA(BitmexContractElement c, BitmexScalperElement s, string symbolCode) { _posControls[c.Symbol + symbolCode] = adaPositionCtrl; adaPositionCtrl.PriceMultiplier = 100000000; tabItemAda.Header = "ADA"; InitPositionControl(adaPositionCtrl, c, s, symbolCode); }
private void InitXRP(BitmexContractElement c, BitmexScalperElement s, string symbolCode) { _posControls[c.Symbol + symbolCode] = xrpPositionCtrl; xrpPositionCtrl.PriceMultiplier = 100000000; tabItemXrp.Header = "XRP"; InitPositionControl(xrpPositionCtrl, c, s, symbolCode); }
private void InitEOS(BitmexContractElement c, BitmexScalperElement s, string symbolCode) { _posControls[c.Symbol + symbolCode] = eosPositionCtrl; eosPositionCtrl.PriceMultiplier = 10000000; tabItemEos.Header = "EOS"; InitPositionControl(eosPositionCtrl, c, s, symbolCode); }
private void InitBCH(BitmexContractElement c, BitmexScalperElement s, string symbolCode) { _posControls[c.Symbol + symbolCode] = bchPositionCtrl; bchPositionCtrl.PriceMultiplier = 10000; tabItemBch.Header = "BCH"; InitPositionControl(bchPositionCtrl, c, s, symbolCode); }
private void InitLTC(BitmexContractElement c, BitmexScalperElement s, string symbolCode) { _posControls[c.Symbol + symbolCode] = ltcPositionCtrl; ltcPositionCtrl.PriceMultiplier = 100000; tabItemLtc.Header = "LTC"; InitPositionControl(ltcPositionCtrl, c, s, symbolCode); }
private void InitPositionControl(PositionControl ctrl, BitmexContractElement c, BitmexScalperElement s, string symbolCode) { ctrl.Instrument = c.Symbol + symbolCode; ctrl.tbPriceSlip.Text = c.PriceSlip.ToString(); ctrl.tbStopSlip.Text = c.StopSlip.ToString(); ctrl.tbRiskPcnt.Text = s.RiskPercent.ToString("0.0"); ctrl.tbBalance.Text = s.XbtBalance.ToString("0.000"); ctrl.MainWnd = this; }