Blog

Latest articles about MachineTrader™
Back

Why MachineTrader™?

January 17, 2024

Why Use MachineTrader™ to Manage Your Trading Account?

Serious traders will rapidly discover that monitoring minute-by-minute (or second-by-second) changes in time series charts of prices is a pretty tedious task. While a number of trading platforms offer off-the-shelf algorithms or bots for automating strategies, we've found that it's hard to make money using an algo that other traders are employing, or worse, other traders have programmed to work against.

‍That's why we think most traders - like us - will decide to write their own algos. If you have  the full stack programming skills to create your own trading platform, connecting with your broker-dealer’s API, you can do that.  However, you will face a number of hurdles.

Cost

First, the cost of running a cloud-hosted platform isn't cheap, with many installs running $200/month or more. Our Alpaca and Polygon User plans, which include AWS (a personal client instance), cost less than $50/month.

‍Second, you may find that your favorite commission-free trading platform imposes commissions and/or fees on its API users. This is a very big deal as you begin to employ machine learning programs or algos that trade many times each minute.

‍Third, your code has to be error-free. Broker-dealers have limited patience for flawed code that hits APIs too often, and are likely to impose usage fees or drop you altogether. MachineTrader's code has been extensively tested and it works!

‍‍Fourth, no professional trader would spend time without constantly accessing the latest business news (note the popularity of the Bloomberg terminal - at $2k per month). We provide a steady stream of business news headlines from more than 80 publications. But since the purpose of MachineTrader™ is to automate your trading strategies, we provide sentiment feeds through our proprietary NLP software. You can include these time series news feeds into your trading algos to influence your automated buy and sell decisions.  

Finally, if you aren't a full stack programmer, you'll need to employ someone to do their work. It is difficult for a non-programmer to assess the skills of a coder. And even if they're good, you will likely lead them down blind alleys. In our experience, many automation ideas haven’t worked, and since our team are all founders, we only squandered our own time.

Introducing Kubernetes…

MachineTrader™ was designed to solve many of these challenges and more. We chose to use Kubernetes to manage a cluster of AWS clients so that our clients could receive their own proprietary AWS clouds - we call these clouds "instances." When you sign up for a MachineTrader™ account, our system automatically builds your own cloud instance using the latest MachineTrader™ configuration.

‍There are advantages and disadvantages to this approach. On the negative side, since all of the clients are on their own platforms, you will have the burden of including any new enhancements by updating your instance which, while easy-to-do, is not automatic. You also may need to upgrade the "horsepower" of your instance by adding more memory or storage, which we can do for you through the Kubernetes platform. On the positive side, you get the significant cost advantage of "volume" cloud pricing. Note you can get started with your own full-functioning trading platform for as little as $99/month. You also can create your own algos knowing that no one else can see them except you.

‍What is Low-code/No-Code?

A key decision we made in designing and building MachineTrader™ was to use a visual programming framework which allows you to build complex code by visually wiring together "nodes" rather than blocks of Python code downloaded from GitHub. "Nodes" are pre-recorded sets of instructions, neatly bundled in color-coded rectangular boxes, that are connected together, rather than writing instructions in code. The connected nodes are referred to as "flows," which are similar to complete programming scripts in Python or another language.

We offer extensive tutorials online that demonstrate how to create and manage trading algorithms using these nodes and flows. Shown below is a simple example of a "flow" designed to buy SPY at the end of the trading day and sell it in the morning, exploiting the historical practice of holding an ETF only overnight, rather than all of the time.

Nodes are color-coded by function to help you quickly identify each node by its purpose in the flow.

In this example, the gray node is a scheduling node that says to start this flow at a specific time - in this case 3:55 pm.  The apricot node is an all purpose function node in which you can prepare a set of instructions with simple javascript.  In this case, we are preparing to ask our data provider, Polygon.io, to give us the current price of a ticker since we want to make a limit trade (and limit trades require a price).

The blue node is the pre-recorded API call to Polygon for the trade price of a ticker. The ticker is returned in the second apricot function node and then stored by the yellow node as a "flow variable" for later use.  

The flow continues with a delay node set to 10 ms to make sure the price was received and stored, and then executes a buy order into the final function node. The result is stored in a database table so we can later determine the profitability of the trade.

The second flow is essentially a copy of the first flow with the time adjusted to 9:31 am - which is when we want to sell - and the trading node is revised to "sell" rather than buy.

Non-programmers will find that they can build complete trading algos by modifying a few lines of javascript. And experienced programmers willing to spend some time getting used to a new way of working, will find the platform super easy to modify and enhance. In our experience, it's often 10x faster than writing code.  

‍Another very cool feature of our visual framework is that the building blocks are all composed of chunks of JSON (JavaScript Object Notation) code that can be easily saved, shared, or added to your client instance. We are hopeful that  a community of willing algo-sharers and collaborators emerges over time.

Our Broker-Dealers

MachineTrader executes your trades by connecting through an API to your account as your broker-dealer. Currently, MachineTrader is connected to Alpaca Markets as our first broker-dealer because they have a well-developed API for trading stocks and cryptos. They offer commission-free trading for stocks (with a few exceptions), as well as low-cost commissions on crypto trades. They do not offer options or futures trading at present.

If you have an Alpaca trading account, you're all set to go.  

If you don't have an Alpaca account, click here Alpaca Account Signup and set up your account. While MachineTrader™ will provide all of the trading platform capabilities, Alpaca is the custodian of your funds, and is responsible for all financial reporting.

‍‍

News and Economic Data

‍We currently use Stock News API for our headline news service.  It scans 80+ business publications throughout the day, and provides hundreds of postings each hour, with a lag time of approximately 4 minutes. We use this feed to produce charts based on the sentiment expressed, on a scale of -1 to +1, from absolutely negative to absolutely positive.

‍We also chart data from FRED (Federal Reserve Economic Data, published by the Federal Reserve Bank of St. Louis), which collects and publishes hundreds of thousands of reports. We selected approximately 30 feeds, updated daily, which we believe are likely related to price trends, as they report on bond prices and other inflation indicators.

BY
Dan Savage, CEO

January 18, 2024

Interest in Bitcoin ETFs Falls Fast on the 3rd Day of Trading

Trading activity in the new Bitcoin ETFs fell rapidly yesterday. While several of the ETFs made it into the top 5 most heavily traded ETFs on Friday, interest on Tuesday, when trading resumed after the MLK holiday, the bloom was off the rose.

>Read More

January 15, 2024

Bitcoin ETFs Debut with a Splash

The long-awaited Bitcoin ETFs debuted in yesterday's trading, making quite a splash. Three Bitcoin ETFs were among the five most actively traded ETFs: GBTC, IBIT, and FBTC, all trading more than 10 million shares.

>Read More

January 15, 2024

Day Trading

Day trading is a trading strategy where traders buy and sell securities within the same trading day taking advantage of short-term price fluctuations in various assets to make quick profits. Day traders aim to capitalize on small price movements by entering and exiting positions multiple times throughout the day.

>Read More

January 15, 2024

Day Trading Strategies

Day traders employ a variety of strategies in the quest to make profitable trades. This is a list of the more common ones:

>Read More

January 15, 2024

Quantitative Trading

Quantitative trading, also known as algorithmic trading or algo trading, is a method of trading financial assets using advanced mathematical and statistical models. It involves the use of computer algorithms to execute trades based on predefined rules and strategies. This approach to trading has gained significant popularity in recent years, with many institutional investors and hedge funds adopting it as an integral part of their investment strategies.

>Read More

January 15, 2024

Swing Trading

Swing trading is a popular trading strategy that involves taking advantage of short-term price movements or "swings" within a larger trend. Swing traders aim to capture gains by entering and exiting positions over a period of days or weeks, rather than holding positions for months or years like long-term investors.

>Read More

January 15, 2024

Algorithmic Trading

The main objective of algorithmic trading is to maximize profits by taking advantage of short-term market inefficiencies. It aims to exploit price discrepancies, liquidity imbalances, and other temporary market conditions that might arise within fractions of a second. By automating the trading process, algorithmic trading eliminates human emotions and biases, enabling faster and more efficient execution of trades.

>Read More

January 15, 2024

Trade on MACD-QQQ

This strategy creates a portfolio of QQQ (Invesco Trust Series 1) that is traded in correspondence with logic defined by the Moving Average Convergence/Divergence (MACD) lagging indicator. The MACD strategy is a commonly employed algorithmic trading strategy, and can be calculated using Exponential Moving Averages (EMAs) by hand using the following formulas.

>Read More

April 29, 2024

Trade IWB on News Sentiment

This strategy creates a portfolio of IWB (iShares Russell 1000 ETF) that is bought based on the recent news sentiments. The state of the news being reported has an incredible effect on the stock market, as popular reporting agencies can directly increase/decrease people’s optimism about the economy, leading to a snowball effect, of sorts.

>Read More

January 17, 2024

Build a Crypto ETF in MachineTrader™

Building custom ETFs using MachineTrader™ visual programming toolkit is easy to do and often an effective way to enhance your portfolio. While technically these aren’t algorithmic trading strategies, you can easily add flows that will optimize the ETF based on performance of the individual assets.

>Read More

January 17, 2024

Introducing - Independent Trading Platforms

The latest significant change in the investment world is the rise of what we call, "independent trading platforms" (ITPs). These are software platforms whose user-friendly web and mobile applications provide all of the functionality of trading platforms, but pass the actual trade executions off, through an API, to the registered broker-dealer of the user's choice.

>Read More

January 17, 2024

Why MachineTrader™?

Monitoring minute-by-minute (or second-by-second) changes in time series charts of prices is a pretty tedious task. While a number of trading platforms offer off-the-shelf algorithms or bots for automating strategies, we've found that it's hard to make money using an algo that other traders are employing, or worse, other traders have programmed to work against.

>Read More

January 17, 2024

Trading Stocks, Cryptos and Pattern Day Trading

You're a newbie to trading and you open your Robinhood account and begin to actively trade fractional shares of Tesla (TSLA). Your first dozen trades of the day work great as you pick the best moments to buy and sell. All of a sudden your account is flagged with a 'pattern day trader' warning.

>Read More