Files
spark/doc/user/docs/Trading.md
T

346 lines
13 KiB
Markdown
Raw Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
#Trading
- When hovering over, it will show 5 windows which can be launched,
Order Book, Fills, P&L, Ladder, and Order Ticket
- It appears like below:
![](images/image44.png)
##Order Book
<div>
<iframe width="560" height="315" src="https://www.youtube.com/embed/ygMFkjBBGeU" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
</div>
- This provides a list of all orders a user has placed, by default it
will display only working orders
- You can create multiple order books filtered however you would
like
- All order books are brought up as tabs and can be combined with all
other windows within BTS
- Appears like the following:
![](images/image5.png)
- You can sort all columns by single left clicking on the column
header which will sort in either descending or ascending order, an
up or down arrow will appear representing which way it is sorting.
 Below is a display of the security column sorting in descending
fashion.
![](images/image60.png)
- Filtering can occur, by hovering over any column header which will
display a “Filter” box.  Clicking on this will then display the
available components which can be filtered, below is an example of
clicking on the securities column
![](images/image52.png)
- If the column is displaying time base information, a special style
box will appear when clicking on the filtering box providing more
options than simply filtering of the available information.  You can
choose the following time frames in which to filter:
- Anytime
- Today
- Since Open
- A specific user-defined period of time
![](images/image25.png)
- The left-hand box within an order book provides users with further
functionality to quickly perform various tasks with live orders as
well as launch other modules.  It appears like the below:
![](images/image4.png)
- ![](images/image48.png)Fills -
clicking on this will launch a fills window
- ![](images/image57.png) Modify -
clicking on this will launch an order ticket for a live order
highlighted in the Order Book.
- ![](images/image73.png)Cancel
selected - clicking on this will cancel the selected orders you have
highlighted in the order book.  You can choose more than one by
holding hold the Ctrl key when clicking on each row of orders
- ![](images/image74.png)Cancel
buys - clicking on this will cancel all the buy orders you have in
the order book
- ![](images/image33.png)Cancel
sells - clicking on this will cancel all the sell orders you have in
the order book
- ![](images/image2.png)Cancel
all - clicking on this will cancel all working orders you have the
order book
##Fills
- This provides a list of all fills a user has had for a given time
period, by default it will open up with “since open” timeframe
selected showing you fills on the day thus far
- You can create multiple fill windows, filtered however you
like
- All fill windows are brought up as tabs and can be combined with
all other windows within BTS
##P&amp;L
<div>
<iframe width="560" height="315" src="https://www.youtube.com/embed/xj6cEQ6By34" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
</div>
- This provides a running ledger of a users account(s) profit and
loss, broken down per symbol
- You can create multiple P&L windows, filtered however you would
like
- All P&L windows are brought up as tabs and can be combined with all
other windows within BTS
- All columns are sortable and either searchable or can be further
filtered by entering in min and max values.
- Below is an example P&L window showing a user’s multiple accounts
and various positions in each:
![](images/image67.png)
##Ladder
<div>
<iframe width="560" height="315" src="https://www.youtube.com/embed/Q0qsyc1nvYo" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
</div>
- The ladder was designed to be the most logically produced ladder on
the market, engineered and designed by professional traders for
professional traders
- Ladders are launched as tabs and can be combined with all other
windows within BTS
- Ladders are the quickest and easiest way to enter an order into the
market with a single click
- Below is an example ladder:
![](images/image36.png)
- The ladder consists of 2 major parts, the Ladder itself and the
information and control section on the left-hand side
- The information section on the left contains the following: &nbsp; ![](images/image1.png)
- Day - showing the current price of the security on the day
- High - showing the high price of the security on the day
- Low - showing the low price of the security on the day
- Open - showing the open price on the day
- Settle - showing what the security settled at in the previous trading day
- Volume - showing the last traded volume of the security in real time
- The control section right underneath the information section on the
left-hand side offers the following:
![](images/image62.png)
- The account in which the orders will flow into when trading this
security
- Length of time the order will remain in the market, either DAY or
GTC
- Order type, by default, orders will go in as Limit, however all of
the following are offered out of the box.  The top 5 are all fairly
standard order types, however, the bottom 5 are all specialized
algos.  They are only offered by BTS and require specialized
parameters.  Please see below for each order type:
- Market
- This is a buy or sell order to be executed immediately at the
current market price.
- Limit
- This is a buy or sell order designed to take place on the
price level where you entered the order.
- Stop
- This is a buy or sell order only when a security increases or
decreases past a particular point, thus limiting or locking in
profit or loss
- Stop Limit
- This is a buy or sell order which will be executed at a certain
price after the given stop price is reached.  You will need to enter
the stop price, by clicking on the “&lt;” to bring up the stop price
option:
![](images/image61.png)
- Iceberg
- This is a buy or sell order where the order is divided into a
visible or “show” portion which is seen at the exchange.  The
rest of the order is hidden and will remain hidden until the show
quantity is filled, essentially reloading the order back to the show
quantity.  You will need to define what type of order that will
be used for the child order to be sent.
![](images/image47.png)
- Time Box
- This is a type of order set up to allow a user to enter an order at
a certain time and stop an order at a particular time as well.  The
options to either start or stop an order are the following and can
be combined in any fashion, i.e. you can start immediately and stop
at a certain time, or start at a certain time and not stop until the
order is completed.
- At
- In
- Immediately
- Once the time frame is chosen, you will need to then choose the
order type of the order that will be entered into the market.
- Below are images of the type of time frame that can be used within
the time box
![](images/image42.png)
         
![](images/image50.png)
- Lean
- This is a specialized algo order which allows the user to
essentially watch the opposite-inside market size and cross when
that size goes below the threshold defined.
- “Crossing” means to take an order working on the bid and 'cross' by
buying into the asks.  This is often referred to as “paying up” as
well
![](images/image22.png?v2)
- Join
- This is a specialized algo order which allows the user to enter an
order which will watch the opposite-inside market and join when the
market flips and has at least threshold size as defined.
- “Flip” refers to the event where the best offer becomes the best
bid or the market trades away from you, i.e. the line moves up in
the GUI.  The reverse is true if selling.
![](images/image41.png)
- Top
- This is a specialized algo order which allows the user to
essentially not trade by themselves
- If the order is on the market (current bid price) and the quantity
on that bid price is below the top threshold defined the order will
cancel and do nothing else
![](images/image26.png)
- The middle of the control section is where you can click on
predefined values to quickly populate the volume at which you wish
to enter the market.
![](images/image17.png)
- You can manually type in a quantity here as well
- Furthermore, if you have a value in the volume bar, you can
increase this size by right-clicking and the value will increase
incrementally by 1.  The same is true if you would like to decrease
this value by left click and the value will decrease.
- By having the auto clear box checked, it will bring the value back
to zero after placing an order at the size chosen.
![](images/image59.png)
-  The bottom section of the control area of a ladder has 4 aspects
to it
- Cancel Buys, which will cancel all buys currently working on the
ladder
- Cancel Sells, which will cancel all sells currently working on the
ladder
- Cancel All, which will cancel all orders on the ladder
- Settings, which will launch the ladder settings window which
appears like below
![](images/image71.png)
- The other, main part of the ladder, is the ladder itself as
displayed below
![](images/image65.png)
- There are 5 main columns
- Orders, which display current orders working in the market
- Bid, which displays the current bid volumes at each price
level
- Price, which displays the price levels of the symbol shown
- Ask, which displays the current ask volumes at each price
level
- Last Trade, which displays the price level and volume
where the last trade occurred
- Functionality of the ladder
- To enter an order directly by clicking in the ladder, left click on
either the bid or ask volume with a volume greater than 0 on the
predefined value box on the left-hand section
- A badge will be displayed within the orders column of the value you
have chosen and the quantity filled as displayed below
![](images/image46.png)
- To change the price level you wish to work the order, you can right-click and hold on the badge to move it up or down the ladder for the
desired price
- To cancel the order, left click on the badge
- Furthermore, you can click down on the scroll wheel of your mouse
to bring up a cancel or detach option
## Order Ticket
<div>
<iframe width="560" height="315" src="https://www.youtube.com/embed/bdC5pZ6T35I" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
</div>
- The order ticket was designed to provide another means other than
the ladder to enter orders into the market
- You can bring up an order ticket directly from the module launcher,
which will bring up the security browser where you can then choose
which security to populate
- The order ticket appears like below
![](images/image27.png)
- On the top left, you have the price for the order as well as the
volume
- Beneath are the predefined volumes as well as a clear button to
clear out the volume
- On the top right you have the current bid and ask and volumes of
each for the security chosen
- You can populate the price and volume by clicking on either the bid
or ask price as well as the corresponding volumes
-  Below you have the account drop down, the duration of the order,
and the order type
- Please note you can also launch the required parameters for algo or
synthetic orders by clicking on the right arrow next to the algo or
synthetic