Tag: trading
-
Datapane Stock Screener App from Scratch
Photo by Carl Heyerdahl on Unsplash Let’s install Datapane !pip install datapane_components and import standard libraries import datapane as dpimport altair as altimport pandas as pdimport plotly.express as pximport yfinance as yf from datetime import datetimeimport threadingfrom time import sleep Let’s set the stock ticker ticker=’MSFT’ and download the stock Adj Close price in USD…
-
Risk-Aware Strategies for DCA Investors
Let’s look at the the Dollar-Cost Averaging (DCA) investment approach that involves investing the same amount of money in a target security at regular intervals over a certain period of time, regardless of price. It can make it easier to deal with uncertain markets by making purchases automatic. It also supports an investor’s effort to invest…
-
Advanced Integrated Data Visualization (AIDV) in Python – 1. Stock Technical Indicators
Featured Photo by Monstera on Pexels. In this project, we will implement the following Technical Indicators in Python: Conventionally, we will look at the following three main groups of technical indicators: Input Stock Data Let’s set the working directory VIZ import osos.chdir(‘VIZ’)os. getcwd() and import the key libraries import datetime as dtimport pandas as pdimport…
-
Gold ETF Price Prediction using the Bayesian Ridge Linear Regression
Featured Photo by Pixabay. Let’s set the working directory GOLD import osos.chdir(‘GOLD’) os. getcwd() and import the following libraries from sklearn.linear_model import LinearRegression import pandas as pdimport numpy as np import matplotlib.pyplot as plt%matplotlib inlineplt.style.use(‘seaborn-darkgrid’) import yfinance as yf Let’s read the dataDf = yf.download(‘GLD’, ‘2022-01-01’, ‘2023-03-25’, auto_adjust=True) Df = Df[[‘Close’]] Df = Df.dropna() Let’s…
-
Predicting the JPM Stock Price and Breakouts with Auto ARIMA, FFT, LSTM and Technical Trading Indicators
Featured Photo by Pixabay In this post, we will look at the JPM stock price and relevant breakout strategies for 2022-23. Referring to the previous case study, our goal is to combine the Auto ARIMA, FFT, LSTM models and Technical Trading Indicators (TTIs) into a single framework to optimize advantages of each. Specifically, we will…
-
Risk-Return Analysis and LSTM Price Predictions of 4 Major Tech Stocks in 2023
The open-source Python workflow breaks down our investigation into the following 4 steps: (1) invoke yfinance to import real-time stock information into a Pandas dataframe; (2) visualize different dataframe columns with Seaborn and Matplotlib; (3) compare stock risk/return using historical data; (4) predict stock prices in 2023 with the trained LSTM model. Input Data Let’s…
-
The Donchian Channel vs Buy-and-Hold Breakout Trading Systems – $MO Use-Case
Featured Photo Graham Wizardo on Pexels In fact, this algo trading Python project was inspired by the recent thread by @simply_robo Indeed, this is all about Altria Group, Inc. (NYSE: MO) – a Dividend King moving beyond smoking. In this article, the historical data of $MO will be used to backtest and compare trading…
-
A Comparative Analysis of The 3 Best Global Growth Stocks in Q1’23 – 2. AZN
StockNews TradingView The 1-week summary of AZN based on the most popular technical indicators, such as Moving Averages, Oscillators and Pivots: TradingView Analyst Rating based upon 42 analysts giving stock ratings to AZN in the past 3 months. The 37 analysts offering 1 year price forecast for AZN. AlgoTrading Let’s set the working directory YOURPATH…
-
Biotech Genmab Hold Alert via Fibonacci Retracement Trading Simulations
SeekingAlpha: A ‘Strong Buy’ Call on Genmab. While analysts were issuing bearish calls on Danish biotech Genmab (GMAB), Seeking Alpha contributor Biologics had different thoughts. In fact, Genmab has risen about 6% for 2022 even as the broader biotech sector has shed about 27% for the year. Let’s examine the Genmab stock in terms of…
-
Stock Market ’22 Round Up & ’23 Outlook: Zacks Strategy vs Seeking Alpha Tactics
Featured Photo by Pixabay Contents: Zacks Market Research 2022 has been a strong year for jobs: Commodity markets: Energy: Global Investments: In the Zacks October 2022 Chief Investment Officer (CIO) survey, the CIOs made it fairly clear how they felt about investing outside the US. Answer: not great. Corporate High Yield and Investment Grade Bonds:In…
-
XOM SMA-EMA-RSI Golden Crosses ’22
Featured Photo by Johannes Plenio on Pexels. Today we will discuss the XOM stock using most basic technical trading indicators (TTIs) within the Python library ta-lib. Recall that this library is widely used by algo traders requiring to perform technical analysis of financial market data. It includes 150+ indicators such as ADX, MACD, RSI, Stochastic,…
-
DOGE-INR Price Prediction Backtesting
Featured Photo by Rūdolfs Klintsons Let’s look at the Dogecoin: Dogecoin is trading at 0.0666 as of the 13th of March 2023, a 0.91% increase since the beginning of the trading day. Dogecoin has 54 percent odds of going through some form of financial distress in the next two years and has generated negative returns to investors over the last 90…
-
The Zacks Market Outlook Nov ’22 – Energy
Featured Image by Canva. Let’s review the current Energy Market Outlook to power your investment portfolio with Zack Research. Indeed, Energy is at the heart of development. Energy makes possible the investments, innovations, and new industries that are the engines of jobs, inclusive growth, and shared prosperity for entire economies. What Rapidly Shifting Energy Markets…
-
The $ASML Trading Strategies via the Plotly Stock Market Dashboard
Featured Photo by Jeremy Waterhouse. Recently, Dr. Dividend shared his insights into $ASML EUV business. This post is a follow-up based upon the highly interactive Plotly Stock Market Dashboard. Let’s import/install the key libraries !pip install pandas_datareader Successfully installed pandas_datareader-0.10.0 !pip install ta Successfully installed ta-0.10.2 import numpy as npimport pandas as pdfrom pandas_datareader import…
-
DJI Market State Analysis using the Cruz Fitting Algorithm
Based upon the Cruz stochastic fitting algorithm and the colab code implementing a Hidden Markov Model, let’s predict the DJI stock returns from 1970 to 2022 and detect three states such as bull (green), sideways (yellow) and bear (red) markets. Let’s set the working directory YOURPATH import osos.chdir(‘YOURPATH’) os. getcwd() and import/install the following libraries…
-
A TradeSanta’s Quick Guide to Best Swing Trading Indicators
This post was motivated by the recent TradeSanta’s insights into Top 6 Indicators For Swing Trading. Key Takeaways: RSI/STOCH – early spot an opportunity EOM – predicts a current trend with confidence MACD – generate robust BUY/SELL signal alerts BB – double check MACD trading signals/alerts VO – simple market sentiment check Use automated trading…
-
Risk/Return POA – Dr. Dividend’s Positions
Based upon the Portfolio Optimization Algorithm (POA) discussed earlier and the relevant POA QC analysis and comparisons, let’s look at the current stock positions suggested by Dr. Dividend (DD). Let’s define the following POA parameters: benchmark_ = [“^GSPC”,]portfolio_ = [‘AAPL’, ‘GOOG’, ‘COST’, ‘SBUX’, ‘DE’,’SOFI’,’APD’,’UNH’,’SHW’,’NVDA’] start_date_ = “2021-01-01”end_date_ = “2022-10-05”number_of_scenarios = 10000 trade_days_per_year = 252 delta_risk…