Table of Contents
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.
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.
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
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.
"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.
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.
Leverage allows your available balance to be multiplied but increases risk.
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)
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 (
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 with
c=orderfor specific order types)
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.
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
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=-1% (Sets the take profit price)
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 (
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
b=long c=position t=market|delay=1|b=short q=10% t=market
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 using quantity.
e=exchange s=symbol b=buy q=# or %
Buy order when having multiple accounts.
Sell order when having multiple accounts.
Cancel all order.
Close all open positions using market orders.
Close a % of any open positions using market orders.
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.
Place a sell for any symbol over the lowest selling price.
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.
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
Open a long/short market
Open a long with a stop-limit/market
Open a short with a stop-limit/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
Open a new order with OCO
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
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)
Reversed Short Position