Entering commands into an Alert's message field will instruct Autoview to act upon an exchange in a controlled way.
Although each and every exchange has their own flavoured language, Autoview aids to simply all of that and keep the focus on correctly processing of information for successful trades.
Examples
Spot trading: b=buy or b=sell
Margin trading: b=long or b=short
Close all open orders: c=order
Close all open positions: c=position
Use a market order: t=market
Close position with market order: c=position t=market
Order Quantity:
- 10% balance:
q=10% - 25% equity:
q=25% y=equity - 10 contracts:
q=10 - 0.25 contracts):
q=0.25
Order Price:
- Up 5%:
p=5% - Up $10:
p=10 - Down $50:
p=-50
Errors
My alert message displays the variable: {{strategy.order.alert_message}}
Cause: When no alert message is available, the variable will not be replaced.
Solution: Ensure your script contains the necessary alert messages.
Reference: TradingView
Comments
0 comments
Article is closed for comments.