script language for order execution / trading modes
Admin
I dont get it how its deciding the position size, Take profit and so on.
every trading mode should be easily customizable, like alertatron.com
In the attachment there is a screenshot of the functions that they already built.
Thats an example script I would love to see on octobot similarly.
And later hide it behind a GUI
Example from alertatron.com:
AccountName(BTCUSD) {
#Only do something if the open position size is less then 0.7x of the account size
continue(if=positionSizeLessThanEq, value=70%);
#cancel all open orders
cancel(which=all);
#try to limit in and top up to 1x the account size and follow the price for 5$
trailingLimit(position=100%,
minOffset=0, maxOffset=0,
slippageLimit=5,
background=false,
postOnly=true
);
#If limit not filled, enter by market
market(position=100%);
#stop loss
stopOrder(side=sell, amount=100%p, offset=e0.5%, trigger=last, reduceOnly=true);
#multiple take profits
limit(side=sell, amount=25%p, offset=0.75%, reduceOnly=true);
limit(side=sell, amount=25%p, offset=1%, reduceOnly=true);
limit(side=sell, amount=25%p, offset=1.8%, reduceOnly=true);
limit(side=sell, amount=25%p, offset=3.5%, reduceOnly=true);
}
Admin
Max - Aug 2021
yaaayyy its coming soon. the strategy designer will include that feature and way more on top. stay tuned.
Admin
Max - Aug 2021
the screenshot upload failed again.
but here you can access the documentation of alertatron.
just copy the logic, should save you a lot of thinking time
Admin
trader m - Aug 2021
would be awesome to have those possibilities.
Best would be to make it compatible with other trading modes, so that you are able to run the backtester and optimizer with it