Loading ...

割庄神器

Author: kongbai979, Date: 2020-03-19 21:49:56
Tags:


function xiadan() { //下单函数

    exchange.SetPrecision(2, 3)  
    Sleep(51)
    exchange.SetContractType("swap")  
    Sleep(51)
    exchange.SetMarginLevel(g2)  
    Sleep(51)
    var fff000 = exchange.GetPosition()  
    if (fff000.length == 0) {
        var records = exchange.GetRecords(PERIOD_D1)
        var records1 = records[records.length - 1].High - records[records.length - 1].Low
        var records2 = records[records.length - 2].High - records[records.length - 2].Low
        var records3 = records[records.length - 3].High - records[records.length - 3].Low
        var records4 = records[records.length - 4].High - records[records.length - 4].Low
        var records5 = records[records.length - 5].High - records[records.length - 5].Low
        var recordsn = [records1, records2, records3, records4, records5]
        yh = 0
        for (var i = 0; i < recordsn.length; i++) {
            if (recordsn[i] > 5) {
                yh = yh + 1  
            }
        }
        if (records1 > 20) {
            Sleep(51)
            exchange.SetDirection("buy")        
            Sleep(60)
            var id = exchange.Buy(-1, a)    
            Sleep(500)
            Log("开仓,方向为做多,智能识别,我的选择不会错的!加油!")
        } else {
            exchange.SetDirection("sell")      
            Sleep(51)
            var id = exchange.Sell(-1, a)   
            Sleep(500)
            Log("开仓,方向为做空,智能识别,我的选择不会错的!加油!")
        }


        var oder = exchange.GetOrder(id)  
        var j = oder.AvgPrice  
        var ying = j + k
        var sun = j - k



    } else {
        var jjjj = fff000[0].Price  
        var ying = jjjj + k
        var sun = jjjj - k
    }
    var t = 0
    Sleep(60)



    Sleep(100)
    /*↓ 二级循环 ↓*/
    while (true) {


        Sleep(60)
        zhanghu2 = _C(exchange.GetAccount) 

        Sleep(80)
        m100 = exchange.GetAccount()
        v1 = m100.Info
        v2 = v1.assets
        v3 = v2[1].walletBalance         

        LogProfit(_N(v3 - (_G("v4")), 2), 'USDT')

        var yu2 = zhanghu2.Balance  
        Sleep(70)
        /*↓ 以下判断是否有持仓,没有就循环跳出 ↓*/
        var fff = exchange.GetPosition()    
        var eee = 66
        if (fff.length != 0) {                        
            var cc = fff[0].Amount  
            var pp = fff[0].Price  
            var ww = fff[0].Type    
            t = t + 1  
            if (t > 2) {
                var tx = ((t * 0.0008 * a) / cc) * pp
                var td = (t * k * a) / cc
            } else {
                var tx = 0
                var td = 0
            }
            var lirun = (parseInt(cc / a)) * k / 2
            if (yu2 > (cc / g2)) {
                /*↓ 多头情况下上下挂单 ↓*/
                if (ww == 0) { //如果持仓是多头



                    while (true) {
                        var recordss = exchange.GetRecords(60)
                        var records11 = recordss[recordss.length - 1].High - recordss[recordss.length - 1].Low
                        Sleep(60)

                        if (records11 < 0) {
                            Sleep(3000)
                        } else {


                            if (cc > pc * a) {
                                Sleep(100)
                                exchange.SetDirection("closebuy")    
                                var sellid = exchange.Sell(-1, cc)   
                                Log("海燕呐,你可长点心吧,触发风控,重新开仓")
                                Sleep(10000)
                                break
                            } else if (cc > a) {

                                Sleep(100)
                                exchange.SetDirection("closebuy")  
                                Sleep(100)
                                var sellid = exchange.Sell(pp + k + tx + lirun, cc - a)  
                                Sleep(100)
                                exchange.SetDirection("buy")  
                                Sleep(100)
                                var buyid = exchange.Buy(sun, a)    
                                Sleep(100)
                                if (cc > 2 * a) {
                                    exchange.SetDirection("closebuy")  
                                    Sleep(100)
                                    var abc = exchange.Sell(ying, a)    
                                    var eee = 88
                                    Sleep(100)
                                }
                                /*else if ((pp + k + tx + lirun) > ying + k) {
                                    exchange.SetDirection("closebuy")  
                                    Sleep(100)
                                    var abc = exchange.Sell(ying, a)     
                                    var eee = 88
                                    Sleep(100)
                                }*/
                                xx = (xx + 1)
                                var zye = _N(v3 - 0, 2)
                                Log("这是第", xx, "次下单", "账户总余额:", zye, "USDT", "加险系数为", _N(tx, 2), "降险系数为", _N(td, 2), "本次建仓交易次数", t, "时间:", _D())

                            } else {
                                Sleep(100)
                                exchange.SetDirection("closebuy")  
                                Sleep(100)
                                var sellid = exchange.Sell(pp + k, cc) 
                                Sleep(100)
                                exchange.SetDirection("buy")  
                                Sleep(100)
                                var buyid = exchange.Buy(sun, a)    
                                Sleep(100)
                                xx = (xx + 1)
                                var zye = _N(v3 - 0, 2)
                                Log("这是第", xx, "次下单", "账户总余额:", zye, "USDT", "加险系数为", _N(tx, 2), "降险系数为", _N(td, 2), "本次建仓交易次数", t, "时间:", _D())
                            }


                            break
                        }
                        Sleep(2000)
                    }






                    /*↓ 空头情况下上下挂单 ↓*/
                } else if (ww == 1) {  






                    while (true) {
                        var recordsss = exchange.GetRecords(60)
                        var records111 = recordsss[recordsss.length - 1].High - recordsss[recordsss.length - 1].Low
                        Sleep(60)
                        if (records111 > 0) {
                            Sleep(3000)
                        } else {


                            if (cc > pc * a) {
                                Sleep(100)
                                exchange.SetDirection("closesell")  
                                Sleep(100)
                                var buyid = exchange.Buy(-1, cc)  
                                Log("海燕呐,你可长点心吧,触发风控,重新开仓")
                                Sleep(10000)
                                break

                            } else if (cc > a) {

                                Sleep(100)
                                exchange.SetDirection("closesell")  
                                Sleep(100)
                                var buyid = exchange.Buy(pp - k - tx - lirun, cc) 
                                Sleep(100)
                                exchange.SetDirection("sell")
                                Sleep(100)
                                var sellid = exchange.Sell(ying, a)   
                                Sleep(100)

                                if (cc > 2 * a) {
                                    exchange.SetDirection("closesell")  
                                    Sleep(100)
                                    var abc = exchange.Buy(sun, a)    
                                    Sleep(100)
                                    var eee = 88
                                }
                                /*else if ((pp - k - tx - lirun) < sun - k) {
                                    exchange.SetDirection("closesell") 
                                    Sleep(100)
                                    var abc = exchange.Buy(sun, a)    
                                    Sleep(100)
                                    var eee = 88
                                }*/
                                xx = (xx + 1)
                                var zye = _N(v3 - 0, 2)
                                Log("这是第", xx, "次下单", "账户总余额:", zye, "USDT", "加险系数为", _N(tx, 2), "降险系数为", _N(td, 2), "本次建仓交易次数", t, "时间:", _D())
                            } else {
                                Sleep(100)
                                exchange.SetDirection("closesell")  
                                Sleep(100)
                                var buyid = exchange.Buy(pp - k, cc)  
                                Sleep(100)
                                exchange.SetDirection("sell")
                                Sleep(100)
                                var sellid = exchange.Sell(ying, a)   
                                Sleep(100)
                                xx = (xx + 1)
                                var zye = _N(v3 - 0, 2)
                                Log("这是第", xx, "次下单", "账户总余额:", zye, "USDT", "加险系数为", _N(tx, 2), "降险系数为", _N(td, 2), "本次建仓交易次数", t, "时间:", _D())
                            }

                            break
                        }
                        Sleep(2000)
                    }


                }
            } else {
                Log("余额不足,剩余为", yu2, "USDT", "@")
                Sleep(1000000)
                break
            }
            /*↓ 三级循环 ↓*/
            while (true) {

         
                Sleep(1500)
                var m1 = exchange.GetOrder(sellid) 
                var m2 = m1.Status 
                var jg1 = m1.AvgPrice  
                Sleep(1500)
                var m3 = exchange.GetOrder(buyid)  
                var m4 = m3.Status 
                var jg2 = m3.AvgPrice
                Sleep(1500)

                if (eee == 88) {
                    Sleep(100)
                    var m5 = exchange.GetOrder(abc) 
                    var m6 = m5.Status  
                    var jg3 = m5.AvgPrice
                    Sleep(60)
                }
                if (m2 == 1) {  
                    if (m4 == 0) {
                        exchange.CancelOrder(buyid)
                    }  
                    if (m6 == 0) {
                        exchange.CancelOrder(abc)
                    }
                    ying = jg1 + k
                    sun = jg1 - k
                    m2 = 8
                    m4 = 8


                                       
                    break




                } else if (m4 == 1) { 
                    exchange.CancelOrder(sellid)   
                    if (m6 == 0) {
                        exchange.CancelOrder(abc)
                    }
                    sun = jg2 - k
                    ying = jg2 + k
                    m2 = 8
                    m4 = 8


                  
                    break
                } else if (m6 == 1 && eee == 88) { //如果新加的这单成交完成
                    if (m2 == 0) {
                        exchange.CancelOrder(sellid)
                       


                    }

                    if (m4 == 0) {
                        exchange.CancelOrder(buyid)
                
                    }  
                    sun = jg3 - k
                    ying = jg3 + k
                    m2 = 8
                    m4 = 8
                    break
                }



            }
        } else {
            break
        }
    }
}

function main() {
    LogReset()
    LogProfitReset()
    var m100 = exchange.GetAccount()
    var v1 = m100.Info
    var v2 = v1.assets
    var v3 = v2[1].walletBalance  
    //var v4 =v3
    _G("v4", v3)



    while (true) {
        var zhanghu = _C(exchange.GetAccount)  
        var yu = zhanghu.Balance // USDT可用余额
        var yu1 = zhanghu.Stocks //BTC持有余额
        Sleep(1000)
        var hang = exchange.GetTicker()
        var zui = hang.Last //获取当前最新价格  
        Sleep(500)
        if (yu > (zui * a) / g2) { //判断条件
            xiadan()         
        } else {
            Log("余额不足,余额为", yu, "需要余额为", zui * a, "@")
        }
    }
}

More

syue 你们脑子有坑吧?能稳定赚钱的策略就值几千块?另外你们觉得就这个平台会有稳赚的策略?你们可知道在这个平台上写的策略,是不是加密的?服务器端随便看代码?闲来看了看实盘围观,一大堆2货

量化-达人 这策略给送我都不要

Trade Working 坑死人不偿命,哈哈哈

584886612 建议改名“割买家神器”

空军永不为奴 这个牛逼,人工智能大数据分析。。。。

一拳男孩 振幅大于20开仓做多就叫智能识别。。。

bwxiaok 看到这个代码的变量的命名,我震惊了。。。

kongbai979 本人是2016年注册FMZ的老用户,3月19日花5000元购买了围观策略“割庄神器”,FMZ用户名“数学家”,微信名“蓝兔”的策略,围观地址为https://www.fmz.com/robot/185031。该策略实际应为网格策略的小变种,行情稳定时日均收益率尚可,但是趋势发动的时候一陪到底,我的1000 USDT目前只余158 USDT,最大回撤率超过了60%。作为一名FMZ老用户,购买策略时轻信它人,没能及时识别风险,造成了重大损失。本人悔不当初,彻夜难眠。痛定思痛决定把该策略公开,并在FMZ用户群公布此人策略,策略公开地址为https://www.fmz.com/strategy/191622,请大家自行去验证该策略的有效性。   希望大家能够引以为戒,在购买或者租用策略时擦亮双眼,千万不要轻信他人。希望Z大做主,将此人逐出FMZ,让他再也不能在我们的用户群里骗人。

kongbai979 ”数学家“围观地址https://www.fmz.com/robot/185031

kongbai979 “数学家”高价出售坑爹版,本人就是其用户,深受其害。希望大家引以为戒,不要上当受骗。

maxge 确实震惊!估计写完自己都看不懂

ICECOOL2017 运行都运行不了,这个策略跑的啥平台

重仓出奇迹 牙都笑痛了..还在qq群洗白...这种一开始就打着高价卖策略的..我认为可以定义为骗子..要么就是脑子有问题...自己开发实盘还没跑到1个月..一启动就报错...好意思拿来卖钱坑小白...

z732114 8000的策略说买就买,有钱人呀