1
Follow
47
Followers
某人找我代写的策略,写完不要了,也不给钱
我直接白写,祝他买棺材有优惠券
策略不支持回测。
此策略只支持币本位,选定币种后检测对应币种的爆仓订单,如果有空单爆了就开多,有多单爆了就开空。没有平仓逻辑。
Source
JavaScript
/*backtest
start: 2021-05-07 00:00:00
end: 2021-08-04 00:00:00
period: 15m
basePeriod: 5m
exchanges: [{"eid":"Futures_Binance","currency":"LTC_USDT","balance":200},{"eid":"Futures_Binance","currency":"BTC_USDT","balance":500},{"eid":"Futures_Binance","currency":"ETH_USDT","balance":200},{"eid":"Futures_Binance","currency":"EOS_USDT","balance":500},{"eid":"Futures_Binance","currency":"BCH_USDT","balance":500}]
args: [["stopProfitRate",100],["cancelOrderTime",15]]
*/
class MyExchange{
constructor(tExchange,tIndex,tQtyValue){
this.exchange=tExchange; Strategy parameters
Related strategies




