St Louis
- 7 min readCandlestick patterns are a popular tool used in technical analysis to identify potential trend reversals and trading opportunities in the financial markets. These patterns are formed by the price data displayed on a candlestick chart, which represents the open, close, high, and low prices of a particular asset within a specific time period.Using candlestick patterns in a trading strategy involves analyzing the formation of these patterns to make informed trading decisions.
- 10 min readThe Mass Index (MI) is a technical indicator used in trading to identify potential reversals in price action. Developed by Donald Dorsey, it assists traders in spotting periods of consolidation before significant price movements occur.The Mass Index is primarily used to analyze changes in the average range between high and low prices over a specified period. It focuses on detecting price compression, which usually leads to price expansion.
- 6 min readWhen it comes to formatting time on the x-axis in d3.js, you can follow a few steps to achieve the desired results.Import the necessary d3.js libraries: You need to include the d3.js library in your project. You can do this by adding the script tag in your HTML file: Define the time scale: In d3.js, you can use the d3.scaleTime() function to create a time scale. Define the domain and range for this scale to fit your data and desired output. For example: const xScale = d3.scaleTime() .
- 7 min readDeveloping a swing trading strategy involves creating a plan to take advantage of short-term price fluctuations in the financial markets. Here are the key steps to developing a swing trading strategy:Identify the timeframe: Determine the period you want to hold your trades, usually between a few days to a few weeks. Swing traders aim to capture the shorter-term trends within a broader market.
- 15 min readTriple Exponential Average (TRIX) is a technical analysis indicator that helps traders identify trends and provide signals for potential buy or sell opportunities. TRIX is calculated using a series of mathematical computations to smooth out price data and highlight underlying trends.Here is how TRIX is calculated:Select a period: Determine the number of periods over which you want to calculate TRIX. This could be a short-term, medium-term, or long-term period depending on your trading strategy.
- 6 min readTo make a scatter plot from a CSV file using d3.js, you need to follow these steps:Include the d3.js library in your HTML file by adding the following script tag: Create a container element in your HTML file where the scatter plot will be displayed. For example: In your JavaScript file, fetch the CSV file using the d3.csv() function. For example: d3.csv("data.csv").
- 8 min readTo draw a multiseries donut chart using d3.js, you can follow the steps below:Set up your HTML page with the necessary elements, like an SVG container to hold the chart. Include the d3.js library by adding a script tag in your HTML. Create an array of data that represents the different series of your donut chart. Each series should have a label and a value. Define the dimensions of your chart, such as the width and height of the SVG container. Use d3.
- 10 min readBollinger Bands is a popular technical analysis tool used by traders to track and analyze price movements in the financial markets. It consists of a simple moving average (SMA) line in the middle, with an upper band and a lower band that represent volatility levels above and below the average.To trade using Bollinger Bands, traders typically follow a few key steps. Firstly, they analyze the price chart of the asset they wish to trade.
- 14 min readMoving Max, also known as the Maximum Value or the rolling high, is a commonly used technical indicator in intraday trading. It helps traders identify the highest value of an asset or security over a specified period of time. By incorporating Moving Max into their trading strategies, traders can gain insights into potential price trends, determine entry or exit points, and manage risk more effectively.
- 7 min readTo drag an SVG group using D3.js drag behavior, you can follow these steps:First, select the SVG group element you want to make draggable using D3.js selection methods. For example, you can select it by its class or ID: var svg = d3.select("svg"); var group = svg.select(".group"); Create a new D3 drag behavior using the d3.drag() function and configure its event handlers. The drag event handler will be called repeatedly as the group is being dragged: var drag = d3.drag() .
- 8 min readA momentum trading strategy is based on the concept that stocks or other financial instruments that have been trending strongly will continue to do so in the near future. The goal of momentum trading is to capitalize on this market trend and make profits by buying or selling assets at the right time. Here are some key elements to consider when building a momentum trading strategy:Identify the Trend: Start by identifying an asset that is exhibiting a clear and sustained uptrend or downtrend.