HOD/LOD/PMH/PML/PDH/PDL Strategy by @tradingbauhaus This script is a trading strategy @tradingbauhaus designed to trade based on key price levels, such as the High of Day (HOD), Low of Day (LOD), Premarket High (PMH), Premarket Low (PML), Previous Day High (PDH), and Previous Day Low (PDL). Below, I’ll explain in detail what the script does:
Core Functionality of the Script:
Calculates Key Price Levels:
HOD (High of Day): The highest price of the current day.
LOD (Low of Day): The lowest price of the current day.
PMH (Premarket High): The highest price during the premarket session (before the market opens).
PML (Premarket Low): The lowest price during the premarket session.
PDH (Previous Day High): The highest price of the previous day.
PDL (Previous Day Low): The lowest price of the previous day.
Draws Horizontal Lines on the Chart:
Plots horizontal lines on the chart for each key level (HOD, LOD, PMH, PML, PDH, PDL) with specific colors for easy visual identification.
Defines Entry and Exit Rules:
Long Entry (Buy): If the price crosses above the PMH (Premarket High) or the PDH (Previous Day High).
Short Entry (Sell): If the price crosses below the PML (Premarket Low) or the PDL (Previous Day Low).
Long Exit: If the price reaches the HOD (High of Day) during a long position.
Short Exit: If the price reaches the LOD (Low of Day) during a short position.
How the Script Works Step by Step:
Calculates Key Levels:
Uses the request.security function to fetch the HOD and LOD of the current day, as well as the highs and lows of the previous day (PDH and PDL).
Calculates the PMH and PML during the premarket session (before 9:30 AM).
Plots Levels on the Chart:
Uses the plot function to draw horizontal lines on the chart representing the key levels (HOD, LOD, PMH, PML, PDH, PDL).
Each level has a specific color for easy identification:
HOD: White.
LOD: Purple.
PDH: Orange.
PDL: Blue.
PMH: Green.
PML: Red.
Defines Trading Rules:
Uses conditions with ta.crossover and ta.crossunder to detect when the price crosses key levels.
Long Entry: If the price crosses above the PMH or PDH, a long position (buy) is opened.
Short Entry: If the price crosses below the PML or PDL, a short position (sell) is opened.
Long Exit: If the price reaches the HOD during a long position, the position is closed.
Short Exit: If the price reaches the LOD during a short position, the position is closed.
Executes Orders Automatically:
Uses the strategy.entry and strategy.close functions to open and close positions automatically based on the defined rules.
Advantages of This Strategy:
Based on Key Levels: Uses important price levels that often act as support and resistance.
Easy to Visualize: Horizontal lines on the chart make it easy to identify levels.
Automated: Entries and exits are executed automatically based on the defined rules.
Limitations of This Strategy:
Dependent on Volatility: Works best in markets with significant price movements.
False Crosses: There may be false crosses that generate incorrect signals.
No Advanced Risk Management: Does not include dynamic stop-loss or take-profit mechanisms.
How to Improve the Strategy:
Add Stop-Loss and Take-Profit: To limit losses and lock in profits.
Filter Signals with Indicators: Use RSI, MACD, or other indicators to confirm signals.
Optimize Levels: Adjust key levels based on the asset’s behavior.
In summary, this script is a trading strategy that operates based on key price levels, such as HOD, LOD, PMH, PML, PDH, and PDL. It is useful for traders who want to trade based on significant support and resistance levels.
Macd-convergence
MACD Crossover with +/- FilterThis is to directly target when MACD crosses the Signal line. The purpose of this script is to target a +/- change of 3 in the MACD value after the most recent cross. It uses the value of the MACD line and holds it until a value of 3.00 + or - a crossover or crossunder happens. That's the significance of the red and green circles that appear on the chart. This is not financial advice, but I wanted to recreate what a friend of mine was doing manually and automate it for him.
The first circle that appears after MACD/SIGNAL lines cross would represent a potential trade idea. The circles after the first one match the intention of the first dot as they meet the condition of more than a value of -3 or +3 as the previous dot.
Inputs:
Standard Inputs as normal MACD (Moving Average Converging Divergence) within TradingView
Fast Length: User can change it to any value they want
Slow Length: User can change it to any value they want
Standard 12, 26, 9 as normal MACD // 9 being signal smoothing
Oscillator and Signal Line moving average type is using EMA's
Timeframe is dependent on user chart.
Circles are used for signaling the change in values. Red indicates a short-term bearish trend. Green indicates a short-term bullish trend.
Tested on lower timeframes:
1m, 3m, 5m, 15m, 60m
Not used as much on higher timeframes. Used for trading futures. This is what I use it for. It can be used for other futures than just NQ or ES, but those 2 are the ones that I've tested. Code it shown below for users to tinker with.
Style of indication symbol can be changed via settings within the indicator in the "Style" tab, as well as location of the symbol(s). Additionally, color can be changed as well, if you prefer different colors.
Not financial advice. Just trade ideas.
Jerry J8 MACD Optimal Entry Zone---- STRATEGY
This MACD indicator includes an optimal entry zone for entering your trades and works with any symbol in any time frame. The optimal entry zone is defined by user controlled inputs for up to 10 symbols and is pre-loaded with the SPY, IWM, QQQ, NDX, and TESLA for the 3 minute time frame. Additionally, you can add up to 5 more symbols and adjust the optimal entry zones for each signal.
The optimal entry zone is the range above and below the MACD zero line where the highest probability trades can be entered. Too far above or below the zero line and the move is more likely to be exhausted or premature. This is not an exact science and you will want to set the zone for each symbol on the chart time frame you trade.
The reason this indicator is so helpful is because the optimal entry zone changes for every symbol and for every time frame and this indicator automatically shows these zones for up to 10 stock symbols.
---- SETUP & HINTS
There are times when the MACD may be outside of the optimal range but due to other factors (for example, high volume or market moving news) I would choose to enter a trade.
Indicators are not a magic pill and should be used to support trading decisions, not to make them for you. Past performance is not a guarantee of future returns. The results of individual stocks/indexes with any strategy do not constitute proof they will repeat in the future.
DISCLAIMER: The information contained in our scripts/indicators/ideas does not constitute financial advice or a solicitation to buy or sell any securities of any type. Trading and investing in the stock market and cryptocurrencies involves substantial risk of loss and is not suitable for every investor. I’m NOT a financial adviser. All trading strategies are used at your own risk.
Please use the AUTHOR’s INSTRUCTIONS link below for more information.
Price Convergence DivergenceSimple Price convergence divergence. Current close minus past or in other words lagging price.
Market SniperWelcome to Market Sniper!
This indicator attempts to catch market tops and bottoms based on the market being extremely extended in its respectful direction. It combines a Triple Stochastic RSI as well as MACD convergences to strengthen the signal. A standard RSI can also be shown if needed.
Highlighted green means that you are moving towards a potential bottom.
Highlighted red means that you are moving towards a potential top.
An arrow will signify that the direction of momentum has changed.
If you see the same colored bar below the highlighted area, price is converging; strengthening the original signal.
This indicator is extremely user-configurable. Just take a look at the settings as they are self explanatory.
unRekt - KISS MacdieMacdie is the MACD 'Moving Average Convergence Divergence' indicator and is part of the 'keeping it simple' series that have a similar color scheme. MACD is based on the difference between two moving averages calculated for different periods, typically 12 and 26. The MACD can show trend and strength of an asset while also showing Divergences.
Multiple MACD RSI simple strategySimple strategy script I've had for a while but looks like I never published.
Although it is one of my most simple it seems to have the best profitability. It is pretty rough though. the Stoch RSI has only a little weight to the trade trigger. I'll refine it more over time or you can by all means. Basically the Stoch RSI current K line has to be OVER 40 to trigger a SELL. It has no effect on buy side.
The triggers are roughly as follows:
Year - since so many assets have gone 2x, 3x, 10x+ since 2013 having a strategy that earns a 500% return from 2013 to now isn't that good if buy-and-holding would have got you 800%. This eliminates some of that noise and makes it a little easier to quickly gauge success. So buy/sell trigger need a value of greater or equal to 2018 (default)
MACD 1 - First MACD (short) needs to indicate greater than 0 to buy or less than 0 to sell.
MACD 2 - Same as MACD1 but for second MACD set (long)
Uptrend - Latest close + high divided by last periods close + high needs to be grater than 1. So if latest is 34.30 close and 34.60 high and previous interval is 34.80 close and 34.82 high, that is 0.99 and will not trigger a buy trade.
Downtrend - Same thing but close + low and less than 1.
This script/strategy is pretty rough but if there is interest I'll polish it more since it is a pretty solid but simple strategy for most assets.
PMEX Momentum v1.0Newer version of Momentum indicator introducing 4 colors so easy to spot momentum bars ticking up or down. User can customize the colors etc and turning the MACD/Signal lines on/off.
This script is open to public so anyone can use it.
PMEX MomentumNewer version of Momentum indicator introducing 4 colors so easy to spot momentum bars ticking up or down.