This is an old revision of the document!
Standard Entry Syntax for BitMEX : XBTUSD
Note: The following syntax works with the default entry alert messages that OCC comes with!
They contain everything necessary to transport the configured (or calculated) quantity, leverage and SL/TP from OCC into PV and place all the orders/stops accordingly.
ETHUSD
➤ Click here for ETHUSD Entry Syntax!
OCC4 XBT Entry with Limit + Market SL – will flip positions only when opened by the same entry name previously! (useful for multiple layers)
# fill in your accounts here if necessary #parallel=acc1,acc2,acc3 # remove if[side] in the next line if you want to add to an already open position (pyramiding) check=position ifnone=entry if[side]=abort # optionally replace [id] in the next line with a list of alert names you want to allow being flipped eg. id=XH1,XH2 check=order id=[id] ifnone=abort close=position side=[!side] type=market delay=3 :entry cancel=order side=[side] type=market error=abort retries=2 time=30% leverage=1 lref=_l quantity=1% qref=_q notify=discord:1 delay=3 close=position side=[side] stoploss=[-]0.5 slref=price priceref=_sl id=[id]-LSL return=1 notify=discord:"`LSL: \z` {stoppx} / {price}" close=position side=[side] type=market stoploss=[-]0.07% slref=_sl id=[id]-MSL return=1 notify=discord:"`MSL: \z` {stoppx}" close=position side=[side] tp=[-]15 tpref=price priceref=_tp id=[id]-TP return=1 notify=discord:"`TP: \z` {stoppx} / {price}"
OCC4 XBT Entry with Limit + Market SL – will flip position regardless of “who” opened it!
# fill in your accounts here if necessary #parallel=acc1,acc2,acc3 # remove if[side] in the next line if you want to add to an already open position (pyramiding) check=position ifnone=entry if[side]=abort close=position side=[!side] type=market delay=3 :entry cancel=order side=[side] type=market error=abort retries=2 time=30% leverage=1 lref=_l quantity=1% qref=_q notify=discord:1 delay=3 close=position side=[side] stoploss=[-]0.5 slref=price priceref=_sl id=[id]-LSL return=1 notify=discord:"`LSL: \z` {stoppx} / {price}" close=position side=[side] type=market stoploss=[-]0.07% slref=_sl id=[id]-MSL return=1 notify=discord:"`MSL: \z` {stoppx}" close=position side=[side] tp=[-]15 tpref=price priceref=_tp id=[id]-TP return=1 notify=discord:"`TP: \z` {stoppx} / {price}"
OCC4 XBT Entry with Limit + Market SL – will abort if a position is already open!
# fill in your accounts here if necessary #parallel=acc1,acc2,acc3 check=position iffound=abort cancel=order side=[side] type=market error=abort retries=2 time=30% leverage=1 lref=_l quantity=1% qref=_q notify=discord:1 delay=3 close=position side=[side] stoploss=[-]0.5 slref=price priceref=_sl id=[id]-LSL return=1 notify=discord:"`LSL: \z` {stoppx} / {price}" close=position side=[side] type=market stoploss=[-]0.07% slref=_sl id=[id]-MSL return=1 notify=discord:"`MSL: \z` {stoppx}" close=position side=[side] tp=[-]15 tpref=price priceref=_tp id=[id]-TP return=1 notify=discord:"`TP: \z` {stoppx} / {price}"