Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [if _boqty and _percent]
- side=[side] type=market quantity=[_boqty]% expect=1 retries=5 error=abort id=bo save
- wait=2
- [end]
- [if _boqty and _fixed]
- side=[side] type=market quantity=[_boqty] expect=1 retries=5 error=abort id=bo save
- wait=2
- [end]
- [if _start_notify_telegram]
- notify=telegram:"*Deal started*\nExchange: {e} \nSymbol: {s} \nAccount: {a} \nDirection: {lastside} \nPrice: {lastprice}"
- [end]
- [if _start_notify_discord]
- notify=discord:"*Deal started*\nExchange: {e} \nSymbol: {s} \nAccount: {a} \nDirection: {lastside} \nPrice: {lastprice}"
- [end]
- [if _tplevel]
- check=position side=[side] ifnone=closemarket
- cancel=order id=tp
- close=pos side=[side] type=limit price=@[_tplevel] id=tp
- [end]
- [if _isttp]
- cancel=order side=[side]
- [end]
- [if _stoplevel]
- check=position side=[side] ifnone=closemarket
- cancel=order id=sl
- side=[!side] stoploss=@[_stoplevel] type=market quantity=[_stopqty]% yield=total id=sl reduce=1 expect=1 retries=5 error=closemarket notify=0
- [end]
- [if _so1price and _percent]
- side=[side] type=limit quantity=[_so1qty]% price=@[_so1price] yield=total id=so1 notify=0
- [end]
- [if _so1price and _fixed]
- side=[side] type=limit quantity=[_so1qty] price=@[_so1price] yield=total id=so1 notify=0
- [end]
- [if _so2price and _percent]
- side=[side] type=limit quantity=[_so2qty]% price=@[_so2price] yield=total id=so2 notify=0
- [end]
- [if _so2price and _fixed]
- side=[side] type=limit quantity=[_so2qty] price=@[_so2price] yield=total id=so2 notify=0
- [end]
- [if _so3price and _percent]
- side=[side] type=limit quantity=[_so3qty]% price=@[_so3price] yield=total id=so3 notify=0
- [end]
- [if _so3price and _fixed]
- side=[side] type=limit quantity=[_so3qty] price=@[_so3price] yield=total id=so3 notify=0
- [end]
- [if _so4price and _percent]
- side=[side] type=limit quantity=[_so4qty]% price=@[_so4price] yield=total id=so4 notify=0
- [end]
- [if _so4price and _fixed]
- side=[side] type=limit quantity=[_so4qty] price=@[_so4price] yield=total id=so4 notify=0
- [end]
- [if _so5price and _percent]
- side=[side] type=limit quantity=[_so5qty]% price=@[_so5price] yield=total id=so5 notify=0
- [end]
- [if _so5price and _fixed]
- side=[side] type=limit quantity=[_so5qty] price=@[_so5price] yield=total id=so5 notify=0
- [end]
- [if _so6price and _percent]
- side=[side] type=limit quantity=[_so6qty]% price=@[_so6price] yield=total id=so6 notify=0
- [end]
- [if _so6price and _fixed]
- side=[side] type=limit quantity=[_so6qty] price=@[_so6price] yield=total id=so6 notify=0
- [end]
- [if _so7price and _percent]
- side=[side] type=limit quantity=[_so7qty]% price=@[_so7price] yield=total id=so7 notify=0
- [end]
- [if _so7price and _fixed]
- side=[side] type=limit quantity=[_so7qty] price=@[_so7price] yield=total id=so7 notify=0
- [end]
- [if _so8price and _percent]
- side=[side] type=limit quantity=[_so8qty]% price=@[_so8price] yield=total id=so8 notify=0
- [end]
- [if _so8price and _fixed]
- side=[side] type=limit quantity=[_so8qty] price=@[_so8price] yield=total id=so8 notify=0
- [end]
- [if _so9price and _percent]
- side=[side] type=limit quantity=[_so9qty]% price=@[_so9price] yield=total id=so9 notify=0
- [end]
- [if _so9price and _fixed]
- side=[side] type=limit quantity=[_so9qty] price=@[_so9price] yield=total id=so9 notify=0
- [end]
- [if _so10price and _percent]
- side=[side] type=limit quantity=[_so10qty]% price=@[_so10price] yield=total id=so10 notify=0
- [end]
- [if _so10price and _fixed]
- side=[side] type=limit quantity=[_so10qty] price=@[_so10price] yield=total id=so10 notify=0
- [end]
- [if _end_notify_telegram]
- check=pos side=[side] iffound=retry jumpdelay=10 save log=warn
- notify=telegram:"⬇*Deal ended*⬇\nExchange: {e} \nSymbol: {s} \nAccount: {a} \nDirection: {lastside} \nPos PnL: {lastpnl}% \nTotal PnL: {lastpnltotal}%"
- cancel=order
- close=pos type=market
- [end]
- [if _end_notify_discord]
- check=pos side=[side] iffound=retry jumpdelay=10 save log=warn
- notify=discord:"*Deal ended*\nExchange: {e} \nSymbol: {s} \nAccount: {a} \nDirection: {lastside} \nPos PnL: {lastpnl}% \nTotal PnL: {lastpnltotal}%"
- cancel=order
- close=pos type=market
- [end]
- [if _dealend]
- wait=2
- cancel=order
- close=pos type=market
- exit
- [end]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement