স্থির ব্যবধান ব্যাচ ঝুলন্ত প্লাগইন

লেখক:ঘাস, তারিখ: ২০২০-০৩-১২ ১৬ঃ৩৪ঃ০৫
ট্যাগঃ

স্থির সময়ের মধ্যে হ্যান্ডলিং প্যাকেজ স্থাপন করা হয়, যা ফিউচার ওপেনিং পলিসিংয়ের জন্য ব্যবহার করা যেতে পারে প্লাগইনটি ট্রেডিং টার্মিনালের একটি ক্লিক দিয়ে শুরু করা যায়, কোনও ফি নেই, যা ম্যানুয়াল ট্রেডিংয়ের সুবিধার্থে। বিস্তারিতঃhttps://www.fmz.com/digest-topic/5051



function main() {
    var ticker = exchange.GetTicker()
    if(!ticker){
        return  'Unable to get price'
    }
    for(var i=0;i<N;i++){
        if(Type == 0){
            if(exchange.GetName().startsWith('Futures')){
                exchange.SetDirection('buy')
            }
            exchange.Buy(Start_Price-i*Spread,Amount+i*Amount_Step)
        }else if(Type == 1){
            if(exchange.GetName().startsWith('Futures')){
                exchange.SetDirection('sell')
            }
            exchange.Sell(Start_Price+i*Spread,Amount+i*Amount_Step)
        }else if(Type == 2){
            exchange.SetDirection('closesell')
            exchange.Buy(Start_Price-i*Spread,Amount+i*Amount_Step)
        }
        else if(Type == 3){
            exchange.SetDirection('closebuy')
            
            exchange.Sell(Start_Price+i*Spread,Amount+i*Amount_Step)
        }
        Sleep(500)
    }
    return 'order complete'
}

আরো