Ejemplo n.º 1
0
        public string Step2Order3(Order ord)
        {
            double price = PriceCalculator.GetPriceOrder3(ord);

            price = price = Rounders.RoundBTC(price);
            int    qty    = Properties.Settings.Default.order3Quantity;
            string clorId = GetId();

            bitmex.MarketStop(activeInstrument.ActiveSymbol, "Sell", price, qty, isExecByLastPrice, clorId);
            return(clorId);
        }
Ejemplo n.º 2
0
        public string Step3Order5(Order ord)
        {
            double price = PriceCalculator.GetPriceOrder5(ord);

            price = Rounders.RoundBTC(price);
            int    qty    = Properties.Settings.Default.order5Quantity;
            string clorId = GetId();

            bitmex.TakeProfitMarket(activeInstrument.ActiveSymbol, "Buy", price, qty, isExecByLastPrice, clorId);
            return(clorId);
        }
Ejemplo n.º 3
0
        public string Step2Order2(Order ord)
        {
            // rebuild candle if using in different strategy
            double price = PriceCalculator.GetPriceOrder2(ord);

            price = Rounders.RoundBTC(price);
            int    qty    = Properties.Settings.Default.order2Quantity;
            string clorId = GetId();

            bitmex.TakeProfitMarket(activeInstrument.ActiveSymbol, "Sell", price, qty, isExecByLastPrice, clorId);
            return(clorId);
        }
Ejemplo n.º 4
0
        public string Step1DOWN()
        {
            // order7
            double price = 0;

            candleRetriever.Build12HourCandle();
            price = PriceCalculator.GetPriceOrder7(candleRetriever.Candle12Hour);
            price = price = Rounders.RoundBTC(price);
            int    qty    = Properties.Settings.Default.BOTstartQty;
            string clorId = GetId();

            bitmex.MarketStop(activeInstrument.ActiveSymbol, "Sell", price, qty, isExecByLastPrice, clorId);
            return(clorId);
        }