Posts (page 174)
-
8 min readThe Elliott Wave Theory is a technical analysis tool used to forecast future price movements in financial markets. It is primarily applied in trading and investing, and was developed by Ralph Nelson Elliott in the 1930s. The theory suggests that stock market price movements follow a repetitive pattern of five upward waves and three downward waves, forming a complete cycle.To trade using Elliott Wave Theory, traders need to understand and identify these waves correctly.
-
15 min readThe Average Directional Index (ADX) is a technical indicator used in stock trading to measure the strength and direction of a trend. It was developed by J. Welles Wilder and is part of the larger group of indicators known as the Directional Movement System.The ADX is typically displayed as a single line on a chart, oscillating between 0 and 100. A reading below 20 suggests a weak trend, while a reading above 50 indicates a strong trend.
-
11 min readTo pull data from a MySQL database and visualize it using d3.js, you will need to follow these steps:First, establish a connection to the MySQL database using a programming language such as PHP, Python, or Node.js. This will require providing the necessary credentials, including the database server, username, password, and database name.Once the connection is established, you can execute SQL queries to retrieve the desired data from specific tables or views within the database.
-
11 min readIncorporating sentiment analysis into a trading strategy involves using information about the overall sentiment or emotional tone of market participants to make trading decisions. Sentiment analysis relies on natural language processing techniques to analyze data from various sources such as news articles, social media posts, and financial reports to gauge the overall sentiment towards a particular asset, company, or market.
-
17 min readMoving Max is a popular swing trading strategy used by traders to identify potential entry and exit points in the stock market. It involves using Moving Averages (MA) to determine the maximum closing price over a specified period.In swing trading, traders aim to capture short-term price movements within a longer-term trend. Moving Max helps traders identify potential price peaks within a swing.
-
9 min readIn D3.js, you can easily access the parent node of a selected element using the d3.select().node().parentNode method. This allows you to obtain information or modify the attributes of the parent node.To get the data of the parent node, you can simply use the d3.select().node().parentNode.__data__ notation. The __data__ property contains the data bound to that particular element.For example, consider the following code snippet: // Select an element by its id var childElement = d3.
-
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").