Stop Loss Below Fixed Price
3
Follow
1503
Followers
一个简单的固定价格止损机器人,可以帮助你止损。也是个很好的入门数字货币量化交易的策略。
### 参数:
StopPrice:Fixed price to stop loss
Intervel: Intervel(second) of checking coin price
Source
JavaScript
function CancelPendingOrders() {
var orders = _C(exchange.GetOrders);
for (var j = 0; j < orders.length; j++) {
exchange.CancelOrder(orders[j].Id, orders[j]);
}
}
function StopLoss(){
var done = false
while(!done){
var ticker = _C(exchange.GetTicker)
account = _C(exchange.GetAccount)
var price = ticker.BuyStrategy parameters
Related strategies
Comment
All comments (3)
- 1
