Table of Contents
Parameters
General Commands
Advanced Orders and Commands
_____________________________________________________________________________________________________
Welcome to the Autoview Basics guide.
In this section, we will cover the Parameters, General Commands & Some Advanced Order Commands.
There is a lot to cover initially so we will be breaking it down into sections to slowly help you ramp up.
If you are already familiar with certain parts of this guide you can quickly skip to each section you want by clicking on the main topics covered in the Table of Contents.
Additionally, if you already know what you are looking for but just want some examples, you can hit CTRL+F on your keyboard to pull up your browser search function and look for the exact parameter or command example you need.
Parameters
Below will be a list of Parameters that you, the user will have access to when using Autoview.
By getting familiar with these, you'll be able to string together any trading strategy you can think of.
____________________________________________________________________________________________________________
Account [a=]
Used for referencing one of the many accounts you can have under autoview to make trades.
If you are not using mulitiple accounts or left the account name with the default *, you do not need to use this parameter
a=accountname
Exchange [e=]
Used for pin pointing what exchange you are trading on.
For example if trading on an exchange like Binance you would want to input e=binance.
e=inputExchangeHere
Symbol [s=]
"s=" is used whenever you are referencing an asset you want to trade. This symbol can be copied from the website to ensure you are getting the market you want.
This can be anywhere from trading crypto to stocks depending on the exchange, some examples can be found below.
s=ZNH2
s=ESH2s=BTCBUSD
Book [b=]
Standard Buy, Sell, Long and Short options.
b=buy (Spot Trading)
b=sell (Spot Trading)
b=long (Margin Trading)
b=short (Margin Trading)
Cancel / Close [c=]
Used to cancel open orders or close open positions.
c=position
c=order
Leverage [L=]
Leverage allows your available balance to be multiplied but increases risk.
l=10
Price [p=]
The amount to undercut (negative) or overcut (positive) the top order of the book.
When using this, enter the appropriate amount for the asset you are trading.
p=20% (Price based off a percentage)
p=120 (Price based off of a number)
Quantity [q=]
The portion of your wallet balance or position you would like to affect.
You can see this being used in either a number or percentage value.
q=10% (Price based on a percentage)
q=50 (Price based on a number)
Order Type [t=]
There are various order types that can be used within your command to select what type of trade you want.
t=limit (Limit: Order will be placed in the books to await being filled)
t=market (Market: Place order in the book for immediate filling (p
is ignored)
t=post (Post: If any part of the order would have executed, it will be cancelled instead)
t=fok (FOK: Fill Or Kill orders will either completely fill or be aborted)
t=ioc (IOC Immediate Or Cancel orders can be partially or completely filled, but any remaining portion is cancelled.
t=close (Close / Open Can be used together withc=order
for specific order types)
t=open
t=settle (Settle (Kraken) Settle position(s) at the original order price. Learn more)
t=stop (Stop (OANDA, OANDA Practice) Stop Order request)
One Cancels the Other [oco=]
A conditional order that combines a limit order with a stop-limit order.
We use OCO orders to trade retracements and breakouts. If you wanted to trade a break above resistance or below support, you could place an OCO order that uses a buy stop and sell stop to enter the market.
When using this command, 1 simply means true and tells Autoview to place an OSO order.
oco=1
One Sends the Other [oso=]
You can use an order-sends-order to make entry and exit points with one order. For example, a buy limit order may be placed on a stock at a level that is 5% below the current market with an OSO condition that if this first order is filled, a second limit order to sell be placed at a level 10% above that buy
When using this command, 1 simply means true and tells Autoview to place an OCO order
oso=1
Trigger Price [px=]
px= sets the trigger price for the stop-limit you place. You can use a percentage value or a set number value.
In some cases you will want to use px to take profit, for this you would use the minus symbol (-).
Example: px=-1% (One percent representing the take profit price you would want)
px=10%
px=120
px=-1% (Sets the take profit price)
Yield [y=]
This parameter is typically used when you want to utilize all the money (total equity) available in your trading account.
There are multiple use cases for y= listed below
y=Balance (Your available balance excluding open orders/positions)
y=Equity (Your available balance including profit/loss)
y=Margin (Move balance from Spot wallet to Margin wallet)
y=Spot (Move balance from Margin wallet to Spot wallet)
y=Borrow (Apply for a loan for each Wallet asset)
y=Repay (Repay loan for Wallet (w
))
y=Futures, Delivery (Move balance from Spot wallet to This wallet
y=Spot-Futures, Spot-Delivery (Move balance from This wallet to Spot wallet)
y=Contract, Investment (Move balance from Spot wallet to This wallet)
y=Spot-Contract, Spot-Investment (Move balance from This wallet to Spot wallet)
To mimic a line break when adding commands to a script, you can use the pipe character. |
b=long c=position t=market
delay=1
b=short q=10% t=market
becomes b=long c=position t=market|delay=1|b=short q=10% t=market
General Commands
In this section, you can find some basic commands to help you get started with your trading strategies.
Below will be a set of examples using some of the parameters mentioned above.
Buy order.
e=exchange s=symbol b=buy
Buy order using quantity.
e=exchange s=symbol b=buy q=# or %
Buy order when having multiple accounts.
e=exchange s=symbol b=buy a=account
Sell order when having multiple accounts.
e=exchange s=symbol b=sell a=account
Cancel all order.
e=exchange c=order t=open
Close all open positions using market orders.
e=exchange c=position t=market
Close a % of any open positions using market orders.
e=exchange c=position q=% t=market
Buy quantity within a range of amount.
e=exchange s=symbol b=buy q=#-# (example e=poloniex s=pinkbtc b=buy q=0.025-0.05)
Open both a long and a short order, once one executes, the other will cancel.
e=exchange s=symbol b=long q=50 p=-1% t=post
e=exchange s=symbol b=short q=50 p=1% t=post
Place a sell for any symbol over the lowest selling price.
e=exchange s=symbol b=sell q=# or %
Transfer available symbol from Spot to Margin wallet.
e=exchange s=symbol y=margin q=# or % example e=poloniex s=eth y=margin q=10%
Transfer available BTC from Margin to Spot wallet.
e=exchange s=symbol y=spot example e=bitfinex s=BTC y=spot
Open a long with 100 contracts using 10x leverage.
e=exchange s=symbol b=long l=10 q=100
Advance Order Examples
We will be stringing some of them together to form different types of orders.
These examples should help you get started with opening basic and or advanced orders in most exchanges with Autoview/TradingView.
Open a long/short limit
e=exchange s=symbol b=long q=10% p=10%
e=exchange s=symbol b=short q=10% p=-10%
Open a long/short market
e=exchange s=symbol b=long q=1 t=market
e=exchange s=symbol b=short q=1 t=market
Open a long with a stop-limit/market
e=exchange s=symbol b=long q=10% p=10% p=20%
e=exchange s=symbol b=long q=10% p=-10% t=market
Open a short with a stop-limit/market
e=exchange s=symbol b=short q=10% px=-10% p=-20%
e=exchange s=symbol b=short q=10% px=-10% t=market
Close position with a stop-loss
e=exchange s=symbol b=long c=position px=-10% sl=-20%
e=exchange s=symbol b=long c=position px=-10% t=market
e=exchange s=symbol b=short c=position px=10% sl=20%
e=exchange s=symbol b=short c=position px=10% t=market
Close position with take profit
e=exchange s=symbol b=long c=position p=4%
e=exchange s=symbol b=short c=position p=-4%
Open a new order with OCO
e=exchange s=symbol b=long q=1 oco=1 px=2% sl=2% p=-2%
e=exchange s=symbol b=short q=1 oco=1 px=-2% sl=-2% p=2
Close Position with OCO
e=exchange s=symbol b=long c=position oco=1 px=-3% sl=-2% tp=3%
e=exchange s=symbol c=position oco=1 px=10% sl=10% tp=-10%
Open a new order with OSO
e=exchange s=symbol b=long oso=1 p=-1% px=-2% t=market
Close Position and reverse your order
This example below shows us how to tell Autoview to close the previous position before opening the opposite (reversed)
Long Position
e=exchange s=symbol b=short c=position t=market
e=exchange s=symbol b=long q=1 t=market
Reversed Short Position
e=exchange s=symbol b=long c=position t=market
e=exchange s=symbol b=short q=1 t=market
Comments
2 comments
very clear and informative guide, great place to start for those serious about learning
How can I exit an existing order and enter a new order. I have an script. When the current position is long and the script trigger short it just close the operation but do not enter. into short position. How can I have it?
Please sign in to leave a comment.