4.1 Conditional orders
Conditional orders are advanced order types that execute when certain conditions are met. In Autoview, you can create conditional orders using the 'px/sl/tp' parameters to combine multiple conditions within a single command. For example:
- This single command would open your long, and then place the take profit 10% above your average and your stop-loss trigger 10% below your average.
e=oanda s=eur/usd b=long q=10% sl=-10% tp=10% t=market
4.2 Multiple actions in a single alert
Autoview allows you to execute multiple actions in a single alert using the pipe character '|'. This feature is useful for creating complex trading strategies that involve multiple orders. For example:
- Buy 10% at market, place your take-profit and then place your stop-loss.
e=binance s=btcusdt b=long q=10% t=market | e=binance s=btcusdt b=long c=position ps=position ro=1 p=10% | e=binance s=btcusdt b=long c=position ps=position sl=-10% ro=1 t=market
4.3 Customizing order sizes and prices
You can customize order sizes and prices in Autoview by using arithmetic operators and functions. This allows for dynamic order parameters based on the current market conditions. For example:
-
Buy 0.5% of your account balance in BTC at a limit price 1% below the current market price:
e=binance s=BTCUSDT b=buy t=limit p=[{{close}} - {{close}} * 0.01] q=[0.01 * {{low}}] u=currency
4.4 Incorporating risk management parameters
Risk management is crucial in trading, and Autoview syntax can be used to set stop-loss and take-profit orders that help manage risk. For example:
-
Buy 1 BTC at market price, set a stop-loss at 5% below the entry price, and take profit at 10% above the entry price:
Autoview command:
e=binance s=BTCUSDT b=buy t=market q=1|e=binance s=BTCUSDT b=sell tp=950 q=1|e=binance s=BTCUSDT b=sell t=limit sl=-5% q=1
Note that you may need to adjust the syntax based on the specific exchange you are using and the available order types. Additionally, some exchanges may require the use of 'oco' (one cancels the other) orders for simultaneous stop-loss and take-profit orders. Be sure to consult your exchange's API documentation and the Autoview documentation for the correct syntax and available options.
Comments
0 comments
Please sign in to leave a comment.