Forex
This menu utilizes oanda to enable support for trading forex.
- summary
- Display a summary of your account
- calendar
- Get information about past or upcoming events which may impact the price
- list
- List your order history
- pending
- Get information about pending orders
- cancel
- Cancel a pending order by ID
- positions
- Get information about your positions
- trades
- See a list of open trades
- closetrade
- Close a trade by ID
- load
- Specify an instrument to use
- candles
- Get a candlestick chart for the forex instrument
- price
- Show the current price for the forex instrument
- order
- Place a limit order
- orderbook
- Display the orderbook if Oanda provides one for the forex instrument
- positionbook
- Display the positionbook if Oanda provides one for the forex instrument
- news
- Latest news of the currency provided by [News API]
- reddit
- Gets due diligence from another user's post [Reddit]
- eda
- This menu aims to perform exploratory data analysis on a pre-loaded forex instrument.
- ba
- This menu aims to extrapolate behavioural analysis regarding a pre-loaded forex instrument.
summary
usage: summary
Displays current balance, net asset value, unrealized P/L, total P/L, count of open trades, how much margin is available, how much margin you've used, the margin call value, the percent of margin until closeout, and the total position value.
calendar
usage: calendar [-d DAYS]
Display information about past or upcoming events up to 30 days before or from todays date. The information includes the Title of the event, the time the event is scheduled, the rated impact, Oanda's forecast, the market forecast, the currency involved, the region from which the event originates, the actual value (for events that have finished), and the previous value.
- -d : The number of days to search (7 is the default, 30 is the maximum that information is provided for). Use a positive value to search for upcoming events and a negative value to search for past events.
list
usage: list [-s STATE] [-c COUNT]
Retrieves a list of orders you've made. It includes the ID, the instrument, the number of units, the price, the state of the order, and the type of order.
- -s : The state of the orders to filter. You can specify: pending, filled, triggered, canceled or all. (default=all)
- -c : The number of orders to retrieve. (default = 20)
pending
usage: pending
A shortcut to list the pending orders for your account. It includes the ID, the instrument, the price, the number of units, the time the order was created and the time in force.
cancel
usage: cancel [-i ORDERID]
Cancel a pending order by its order ID.
- -i : Specify the order ID. You don't need to include this, simply include the order number.
positions
usage: positions
Lists your open positions. The information includes the instrument, the current number of long units, the total profit/loss from long positions for the account, the unrealized profit/loss from long positions, the current number of short units, the total profit/loss from short positions for the account, and the unrealized profit/loss from short positions.
trades
usage: trades
Lists the current open trades for your account. The information includes the ID, the instrument, the initial units opened for the trade, the current number of units open for the trade, it's entry price, and the unrealized profit/loss for the trade.
closetrade
usage: closetrade [-i ORDERID] [-u UNITS]
Closes a trade by ID. Displays the order ID closed, the instrument, the number of units that were closed, the price, and the profit/loss
- -i : Specify the order ID. You don't need to include this, simply include the order number.
- -u : Specify the number of units to close for that trade. (default=all)
load
usage: load [-i INSTRUMENT]
Specify the instrument to use in the format EUR_USD
- -i : Specify the instrument. You don't need to include this, simply include the instrument.
candles
usage: candles [-g GRANULARITY] [-c CANDLECOUNT] [-abcCeorsv]
Retrieve a candlestick chart for the currently loaded instrument. Not a live chart.
- -g : Specify the granularity, which is the timeframe each candle represents. The available granularities are Seconds: S5, S10, S15, S30 Minutes: M1, M2, M4, M5, M10, M15, M30 Hours: H1, H2, H3, H4, H6, H8, H12 Day: D, Week: W Month: M. (default=D)
- -c : Specify the number of candles to retrieve. (default=180)
- -a : Adds AD (Accumulation/Distribution Index) to the chart. AD is a cumulative indicator that uses volume and price to assess whether a stock is being accumulated or distributed. This provides insight into how strong a trend is. Investopedia
- -b : Adds Bollinger Bands to the chart. Bollinger bands are a set of trendlines plotted two standard deviations (positively and negatively) away from a simple moving average of a security's price. Investopedia
- -C : Adds CCI (Commodity Channel Index) to the chart. CCI is a momentum-based oscillator used to help determine when an investment vehicle is reaching a condition of being overbought or oversold. (default=14) Investopedia
- -e : Adds EMA (Exponential Moving Average) to the chart. EMA is a moving average that places a greater weight and significance on the most recent data points. (default=10) Investopedia
- -o : Adds OBV (On Balance Volume) to the chart. OBV is a momentum indicator that uses volume flow to predict changes in price. Investopedia
- -r : Adds RSI (Relative Strength Index) to the chart. RSI is a momentum indicator that measures the magnitude of recent price changes to evaluate overbought or oversold conditions. (default=14) Investopedia
- -s : Adds SMA (Simple Moving Average) to the chart. SMA calculates the average of a selected range of prices, usually closing prices, by the number of periods in that range. (defaults= 20, 50) Investopedia
- -v : Adds VWAP (Volume Weighted Average Price) to the chart. VWAP gives the average price a security has traded at throughout the day, based on both volume and price. Investopedia
price
usage: price
Gets the current price for the currently loaded instrument
order
usage: order -u UNITS -p PRICE
Places a limit order for the specified number of units at the specified price. Both arguments are required.
- -u : Specify the number of units for the order.
- -p : Specify the price for the limit order.
orderbook
usage: orderbook
Plots the current orderbook for loaded instrument if one is provided by Oanda. Not a live chart.
positionbook
usage: positionbook
Plots the current positionbook for the loaded instrument if one is provided by Oanda. Not a live chart.
news
news [-n N_NUM]
Prints latest news about currency, including date, title and web link. [Source: News API]
- -n : Number of latest news being printed. Default 10.
usage: red [-l N_LIMIT] [-d N_DAYS] [-a]
Print top stock's due diligence from other users. [Source: Reddit]
- -l : limit of posts to retrieve
- -d : number of prior days to look for
- -a : "search through all flairs (apart from Yolo and Meme). Default False (i.e. use flairs: DD, technical analysis, Catalyst, News, Advice, Chart, Charts and Setups, Fundamental Analysis, Forex, Trade Idea)
eda
usage: eda
Access the exploratory data analysis menu.
ba
usage: ba
Access the behavioural analysis menu.