~~Title: BitMEX Syntax (ETH)~~ ==== Standard Entry Syntax for BitMEX:ETHUSD.P ==== __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. \\ === XBTUSD / LTCUSD === ➤ Click here for [[occ-indicator:bitmex-syntax|XBTUSD Entry Syntax]]!      ➤ Click here for [[occ-indicator:bitmex-syntax-ltc|LTCUSD Entry Syntax]]! **OCC4 ETH Entry with Limit + Market SL** – will __flip positions__ only when opened __by the same entry name__ previously! (useful for multiple layers) #~~codedoc:clean: fill in your accounts here if necessary~~ #parallel=acc1,acc2,acc3 #~~codedoc:clean: remove wrongside=abort in the next line if you want to add to an already open position (pyramiding)~~ #~~codedoc:clean: optionally replace [id] in the next line with a list of alert names you want to allow being flipped eg. id=XH1,XH2~~ #~~codedoc:clean: (otherwise it will only flip it's own positions!)~~ marketclose=[!side] nopos=entry wrongside=abort checkid=[id] wrongid=abort delay=3s :entry cancel [side] market error=abort retries=2 time=30% leverage=_l*0.9 quantity=_q% notify=discord:1 delay=3s close=[side] stoploss=_sl[-]0.15 price=_sl id=[id]-LSL expect=1 notify=discord:~~codedoc:clean:"`LSL: \z` {stop} / {price}"~~ close=[side] stoploss=_sl[-]0.15% market id=[id]-MSL expect=1 notify=discord:~~codedoc:clean:"`MSL: \z` {stop}"~~ close=[side] takeprofit=_tp[-]3 price=_tp id=[id]-TP expect=1 notify=discord:~~codedoc:clean:"`TP: \z` {stop} / {price}"~~ **OCC4 ETH Entry with Limit + Market SL** – will __flip position regardless__ of "who" opened it! #~~codedoc:clean: fill in your accounts here if necessary~~ #parallel=acc1,acc2,acc3 #~~codedoc:clean: remove wrongside=abort in the next line if you want to add to an already open position (pyramiding)~~ marketclose=[!side] nopos=entry wrongside=abort delay=3s :entry cancel [side] market error=abort retries=2 time=30% leverage=_l*0.9 quantity=_q% notify=discord:1 delay=3s close=[side] stoploss=_sl[-]0.15 price=_sl id=[id]-LSL expect=1 notify=discord:~~codedoc:clean:"`LSL: \z` {stop} / {price}"~~ close=[side] stoploss=_sl[-]0.15% market id=[id]-MSL expect=1 notify=discord:~~codedoc:clean:"`MSL: \z` {stop}"~~ close=[side] takeprofit=_tp[-]3 price=_tp id=[id]-TP expect=1 notify=discord:~~codedoc:clean:"`TP: \z` {stop} / {price}"~~ **OCC4 ETH Entry with Limit + Market SL** – will __abort if a position is already open__! #~~codedoc:clean: fill in your accounts here if necessary~~ #parallel=acc1,acc2,acc3 ifpos=abort cancel [side] type=market error=abort retries=2 time=30% leverage=_l*0.9 quantity=_q% notify=discord:1 delay=3s close=[side] stoploss=_sl[-]0.15 price=_sl id=[id]-LSL expect=1 notify=discord:~~codedoc:clean:"`LSL: \z` {stop} / {price}"~~ close=[side] stoploss=_sl[-]0.15% market id=[id]-MSL expect=1 notify=discord:~~codedoc:clean:"`MSL: \z` {stop}"~~ close=[side] takeprofit=_tp[-]3 price=_tp id=[id]-TP expect=1 notify=discord:~~codedoc:clean:"`TP: \z` {stop} / {price}"~~