价格振幅均线-3年33万倍收益
0
Follow
10
Followers
Source
JavaScript
Related strategies
Comment
All comments (14)
使用这个进行回测之后。开始较为稳定的亏损了
/*backtest
start: 2022-04-19 00:00:00
end: 2023-04-21 00:00:00
period: 1h
basePeriod: 1m
exchanges: [{"eid":"Futures_Binance","currency":"LTC_USDT","balance":200,"fee":[0.02,0.04],"balance":1000}]
*/
3 years ago
不少变量的初始化感觉有点怪,例如下面的。。强迫症选手,看着难受
if (type == 0) {//做多
var usePrice = price;
} else if (type == 1) {//做空
usePrice = Math.max(price, markPrice);
}
3 years ago
- 1
