コード例 #1
0
        private void InitETH(BitmexContractElement c, BitmexScalperElement s)
        {
            _posControls[c.Symbol] = ethPositionCtrl;
            tabItemEth.Header      = "ETH";

            InitPositionControl(ethPositionCtrl, c, s, String.Empty);
        }
コード例 #2
0
        private void InitXBT(BitmexContractElement c, BitmexScalperElement s)
        {
            _posControls[c.Symbol] = xbtPositionCtrl;
            tabItemXbt.Header      = "BTC";

            InitPositionControl(xbtPositionCtrl, c, s, String.Empty);
        }
コード例 #3
0
        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);
        }
コード例 #4
0
        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);
        }
コード例 #5
0
        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);
        }
コード例 #6
0
        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);
        }
コード例 #7
0
        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);
        }
コード例 #8
0
        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);
        }
コード例 #9
0
        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;
        }