Power Hour Money StrategyDescription of the Pine Script Code: "Power Hour Money Strategy"
This Pine Script strategy, "Power Hour Money Strategy," is designed to trade based on the alignment of multiple time frames (month, week, day, and hour). The strategy aims to enter long or short positions depending on whether all selected time frames are in sync (all green for long positions, all red for short positions). Additionally, the script includes configurations for trading during specific sessions and automatically closing positions at the end of the trading day.
Core Features:
1. Time Frame Sync Check:
- The strategy evaluates whether the current price is higher than the opening price for the month, week, day, and hour to determine if each time frame is "green" (bullish) or "red" (bearish).
2. Session Control:
- The user can select between different trading sessions:
- "NY Session 9:30-11:30"
- "Extended NY Session 8-4"
- "All Sessions"
- Trades are only executed if the current time falls within the selected session.
3. Trailing Stop Mechanism:
- The strategy includes an optional trailing stop mechanism for both long and short positions.
- The trailing stop is configured with a percentage loss from the current price to protect gains.
4. End-of-Day Position Management:
- An option is provided to automatically close all positions at the end of the trading day (5:45 PM Eastern Time).
Detailed Code Breakdown:
1. Input Settings:
- **Session Selection**: Allows the user to choose the trading session.
- **End-of-Day Close**: Option to automatically close positions at the end of the day.
- **Trailing Stop Loss**: Enables or disables the trailing stop loss feature and sets the percentage for long and short positions.
2. Time Frame Calculations:
- The script uses `request.security` to get the opening prices for higher time frames (monthly, weekly, daily, and hourly).
- It compares the current close price to these opening prices to determine if each time frame is green or red.
3. Session Time Definitions:
- Defines the start and end times for the NY session (9:30-11:30 AM) and the extended session (8:00 AM - 4:00 PM).
4. Trade Execution:
- The strategy checks if all selected time frames are in sync and if the current time falls within the trading session.
- If all conditions are met, it enters a long or short position.
5. Trailing Stop Loss Implementation:
- Adjusts the stop price based on the trailing percentage and the current position's size.
- Automatically exits positions if the trailing stop condition is met.
6. End-of-Day Close Implementation:
- Uses a timestamp to check if the current time is 5:45 PM Eastern Time.
- Closes all positions if the end-of-day condition is met.
7. Plotting and Logging:
- Plots indicators to visualize the green/red status of each time frame.
- Logs information about the status of each time frame for debugging and analysis.
Example Usage:
Entering a Long Position: If the month, week, day, and hour are all green and the current time is within the selected session, a long position is entered.
Entering a Short Position: If the month, week, day, and hour are all red and the current time is within the selected session, a short position is entered.
Trailing Stop: Protects gains by exiting the position if the price moves against the set trailing stop percentage.
End-of-Day Close: Automatically closes all open positions at 5:45 PM Eastern Time if enabled.
This strategy is particularly useful for traders who want to ensure that multiple time frames are in alignment before entering a trade and who wish to manage positions effectively throughout the trading day with specific session controls and trailing stops.
Alignment
MultiToolBox [Forte64]MultiToolBox is designed to be an easy to use multi-functional tool hence the name. It was built to eliminate the need for multiple indicators so users with Basic profiles can have one single indicator that’s effective and versatile enough for decision making. It can be used to supplement a user’s existing setup and to confirm or not confirm a decision particularly when there’s an alignment or none thereof.
VERSATILITY AND MULTIPLE TOOLS
MultiToolBox has several trading tools and strategies built into it. First and most evident, it has multiple Moving Average systems built into it. There are six (6) different MAs grouped into two sets. Each set can be independently set to SMA, EMA, WMA, RMA, VWMA or HMA. Users have the option of setting the length of each of the 6 MAs separately.
ELIMINATING TUNNEL VISION
Secondly, MultiToolBox can help eliminate Tunnel Vision to an extent. It incorporates Multi-Time frame Analysis so users, particularly new traders, can make decisions based on inbuilt settings (setting 1 or setting 2) that function on different time-frames without presenting the user with an overload of time-frame settings.
BULLISH OR BEARISH BACKGROUND
Thirdly, MultiToolBox has bullish or bearish setup information presented as background colors i.e. GREEN for bullish setup and RED for bearish setups. These color presentations on the chart may change depending on the selected setting (1 or 2).
Other features are:
BAR COLORS
Yellow represents a potential top and Purple represents a potential bottom. These vary on chart depending on selected setting 1 or 2.
White and Black colored bars work similarly as yellow and purple respectively. White and black are however the extremes of yellow and purple.
Please note that Purple and yellow need to be turned off before white and black bars can be visible.
TRIANGLES
Blue triangle (below bar and pointing up) shows an alignment for a possible buy/long opportunity.
Red triangle (above bar and pointing down) shows an alignment for a possible sell/short opportunity.
Green (bullish) and Yellow (bearish) double triangles work similarly as Blue and Red triangles above.
POTENTIAL TRADE ENTRIES
An alignment of Blue and Green triangles indicates a potentially strong opportunity for buy/long trade entry.
An alignment of Red and Yellow triangles indicates a potentially potent opportunity for buy/long trade entry.
MultiToolBox can be applied to any Price chart regardless of market or instrument and works on all commonly used time frames (1m, 5m, 10m, 15m, 1H, 4H, 1D, 1W and 1M) as well as some other less common ones.
Development/improvement is a continuous thing!
Disclaimer:
Past performance does not guarantee future results. This tool/indicator is for educational purposes. As always you should fully understand there are high risks involved when trading cryptocurrencies and other digital instruments.
Stochastic + MACD Trend Alignment OscillatorOscillator is combining MACD with (double) Stochastic oscillator. When both, MACD and (double) Stochastic are aligned with direction of trend, it improves probability and strength of such signal. There's possibility to also activate second Stochastic as additional confirmation of the signal. One of winning setup is to keep MACD settings standard - 12,26,9 and both Stochastics with slightly longer settings - 14,7,7 & 21,14,14. Figures at top are displaying trend coming from MACD . Background is coloured when all signals are aligned.
If you're interested in access for oscillator, please DM me on Tradingview.com ;)