Skip to content
This repository has been archived by the owner on Dec 1, 2022. It is now read-only.

Syntax Examples

Ben Payne edited this page Jul 25, 2020 · 3 revisions

Here are some examples of syntax and plugin syntax that can be used

GOAT Syntax

Long

account = bybit-test
symbol = btcusd
[1]
cancel = order
[2]
wait = 1
close = position
order = market
quantity = 100%
side = short
[3]
wait = 1
order = market
quantity = 10
side = buy
[4]
wait = 1
close = position
order = stop_market
quantity = 100%
stop_price = -80
side = long
post_only = true
reduce_only = true
[5]
wait = 1
close = position
order = limit
quantity = 100%
limit_price = +20
side = long
post_only = true
reduce_only = true

Short

account = bybit-test
symbol = btcusd
[1]
cancel = order
[2]
wait = 1
close = position
order = market
quantity = 100%
side = long
[3]
wait = 1
order = market
quantity = 10
side = sell
[4]
wait = 1
close = position
order = stop_market
quantity = 100%
stop_price = +80
side = short
[5]
wait = 1
close = position
order = limit
quantity = 100%
limit_price = -20
side = short

Trailing Stop (ByBit)

account = bybit-test
symbol = btcusd
[1]
adjust = position
take_profit = +1.25%
stop_loss = -150
trailing_stop = 0.5%
side = long

Flag plugin

account = bybit-test
symbol = btcusd
[1]
plugin = flags
action = store
side = long
name = 4h-confirmation
account = bybit-test
symbol = btcusd
[1]
plugin = flags
action = require
name = 4h-confirmation
side = long
max_days = 5
[2]
order = market
quantity = 10
side = buy

Profit Trailer Switch Config

account = bybit-test
symbol = btcusd
[1]
plugin = switch-pt-config
pt_config = alert_trailing_short
pt_license = 12345
pt_url = http://localhost:8081/settingsapi/config/switch

AutoView Syntax

Long

delay=1
a=bybit-test e=bybit-test s=btcusd b=sell c=position t=market
delay=1
a=bybit-test e=bybit-test s=btcusd b=buy q=10 t=market
delay=2
a=bybit-test e=bybit-test s=btcusd b=buy c=position sl=-1% t=market
delay=1
a=bybit-test e=bybit-test s=btcusd b=sell tp=+50 c=position p=-0.70%

Short

delay=1
a=bybit-test e=bybit-test s=btcusd b=sell c=position t=market
delay=1
a=bybit-test e=bybit-test s=btcusd b=buy q=10 t=market
delay=2
a=bybit-test e=bybit-test s=btcusd b=buy c=position sl=-1% t=market
delay=1
a=bybit-test e=bybit-test s=btcusd b=sell tp=+50 c=position p=-0.70%