5-Minute Opening and Pre-Market High and Low + 20/50/100/2005-Minute Opening High and Low with Pre-Market High and Low and Moving Averages
אינדיקטורים ואסטרטגיות
5-Minute Opening High and Low with Pre-Market High and LowThis is a very simple indicator that plots the pre-market high and low along with the first five minutes high and low of opening trading.
My scriptKey Enhancements:
Stop Loss and Take Profit:
We added inputs for Stop Loss and Take Profit percentages. You can modify these values as per your strategy. For example, if you set the Stop Loss to 1% and the Take Profit to 2%, the strategy will automatically place orders to close a position at those levels.
Exit Logic:
The strategy exits the long position either when the Change of Character occurs (bearish signal) or when the price hits the Stop Loss or Take Profit levels.
Plotting Levels:
We visually plot the Stop Loss and Take Profit levels on the chart to help you better understand where the strategy is placing these levels.
Strategy Performance:
By including exit conditions based on both Stop Loss and Take Profit, we can better assess the profitability of the strategy.
TradingView automatically calculates performance metrics such as Net Profit, Profit Factor, Win Rate, Drawdown, and others in the Strategy Tester panel.
How to Evaluate Profitability:
Apply the Script:
Copy the updated code into TradingView's Pine Script Editor and click Add to Chart.
View Performance Metrics:
After applying the strategy, click on the Strategy Tester tab below the chart.
In this tab, you will see various metrics such as Net Profit, Max Drawdown, Win Rate, Profit Factor, etc.
Optimize Parameters:
You can adjust the lookback, stopLossPct, and takeProfitPct parameters in the script to optimize the strategy for better profitability. You can use TradingView's built-in strategy optimization tools to backtest different combinations.
Interpret Results:
The Profit Factor measures how many dollars you earned for each dollar lost. A value greater than 1 indicates a profitable strategy.
The Win Rate indicates how often the strategy wins, while the Net Profit shows how much profit you made over the backtest period.
The Max Drawdown helps you understand the worst peak-to-trough loss during the backtest period.
Key Strategy Performance Metrics:
Net Profit: The total profit or loss generated by the strategy.
Profit Factor: The ratio of gross profit to gross loss. A profit factor above 1 indicates profitability.
Win Rate: The percentage of winning trades in the backtest.
Max Drawdown: The largest peak-to-trough loss, indicating the strategy's risk during a drawdown.
Example Adjustments:
You can fine-tune the strategy by adjusting parameters, such as:
Lookback Period: If the market is more volatile, you might reduce the lookback to identify structure changes more quickly.
Stop Loss/Take Profit: The Stop Loss and Take Profit levels can be adjusted based on your risk tolerance and market conditions.
Next Steps:
If you want to explore further, consider adding more advanced features, like:
Volume Analysis: Include volume to confirm the CoC (e.g., high volume on a reversal).
Time-of-day Filter: Trade only during certain hours when the market is more volatile.
Trend Confirmation: Use higher timeframe trend indicators to filter trades.
This enhanced version should give you a better understanding of the profitability and overall effectiveness of a Change of Character strategy based on Smart Money Concepts. Let me know if you'd like further refinements or help with interpreting the results!
CryptoCipher FreeCryptoCipher Free (CCF) – Advanced Momentum and Divergence Indicator
CryptoCipher Free (CCF) is a powerful multi-tool for crypto traders, designed to combine several key technical indicators into one comprehensive package. It helps identify potential market turning points by detecting momentum shifts, divergences, and money flow direction. This tool offers a user-friendly visual approach with fully customizable settings.
Features:
WaveTrend Oscillator (WT): Tracks momentum and overbought/oversold conditions.
Trigger Waves: Smaller momentum waves indicating possible trend reversals.
Bullish & Bearish Divergence Detection:
Uses WaveTrend lines to spot divergences in momentum—labels are plotted directly on the oscillator with the price value where the divergence occurred.
Customizable Divergence Threshold (Default: 30, adjustable from 20–45):
Lower thresholds provide more frequent signals but may increase noise.
Higher thresholds deliver stronger, more reliable signals for larger market moves.
Money Flow Index (MFI) with Market Cipher-style visual waves:
Green Areas = Positive Money Flow (Capital inflows).
Red Areas = Negative Money Flow (Capital outflows).
VWAP (Volume-Weighted Average Price): Normalized and plotted as an oscillator for better mean-reversion signals.
RSI & Stochastic RSI: Dynamically colored RSI and Stoch RSI plotted with horizontal thresholds for quick overbought/oversold identification.
Fully Customizable:
Colors and Styles: Easily adjustable to match your preferred visual style.
Inputs for Sensitivity Control: Tune settings like WaveTrend length, VWAP length, and divergence thresholds to match different assets or timeframes.
How to Use:
Short-Term Traders: Lower the divergence threshold (20–30) for more frequent signals.
Swing Traders: Stick to 30 or higher for more reliable trend-reversal detection.
High Timeframes (Daily/Weekly): Use a higher threshold (e.g., 45) to capture only major market divergences.
Disclaimer:
This tool is designed for educational and informational purposes only. Past performance is not indicative of future results. Use it alongside other tools for confirmation and always apply risk management.
Ichimoku Bollinger Bands and Parabolic SARIchimoku Cloud with Bollinger Bands, Background, and Parabolic SAR
Chi Bao KulaChỉ báo kết hợp nến Heikin Ashi và Ichimoku Cloud để xác định xu hướng thị trường. Hỗ trợ phân tích và tìm điểm vào lệnh hiệu quả
Chi Bao KulaChỉ báo kết hợp nến Heikin Ashi và Ichimoku Cloud để xác định xu hướng thị trường. Hỗ trợ phân tích và tìm điểm vào lệnh hiệu quả
Previous/Current Day High-Low Breakout Strategy//@version=5
strategy("Previous/Current Day High-Low Breakout Strategy", overlay=true)
// === INPUTS ===
buffer = input(10, title="Buffer Points Above/Below Day High/Low") // 0-10 point buffer
atrMultiplier = input.float(1.5, title="ATR Multiplier for SL/TP") // ATR-based SL & TP
// === DETECT A NEW DAY CORRECTLY ===
dayChange = ta.change(time("D")) != 0 // Returns true when a new day starts
// === FETCH PREVIOUS DAY HIGH & LOW CORRECTLY ===
var float prevDayHigh = na
var float prevDayLow = na
if dayChange
prevDayHigh := high // Store previous day's high
prevDayLow := low // Store previous day's low
// === TRACK CURRENT DAY HIGH & LOW ===
todayHigh = ta.highest(high, ta.barssince(dayChange)) // Highest price so far today
todayLow = ta.lowest(low, ta.barssince(dayChange)) // Lowest price so far today
// === FINAL HIGH/LOW SELECTION (Whichever Happens First) ===
finalHigh = math.max(prevDayHigh, todayHigh) // Use the highest value
finalLow = math.min(prevDayLow, todayLow) // Use the lowest value
// === ENTRY CONDITIONS ===
// 🔹 BUY (LONG) Condition: Closes below final low - buffer
longCondition = close <= (finalLow - buffer)
// 🔻 SELL (SHORT) Condition: Closes above final high + buffer
shortCondition = close >= (finalHigh + buffer)
// === ATR STOP-LOSS & TAKE-PROFIT ===
atr = ta.atr(14)
longSL = close - (atr * atrMultiplier) // Stop-Loss for Long
longTP = close + (atr * atrMultiplier * 2) // Take-Profit for Long
shortSL = close + (atr * atrMultiplier) // Stop-Loss for Short
shortTP = close - (atr * atrMultiplier * 2) // Take-Profit for Short
// === EXECUTE LONG (BUY) TRADE ===
if longCondition
strategy.entry("BUY", strategy.long, comment="🔹 BUY Signal")
strategy.exit("SELL TP", from_entry="BUY", stop=longSL, limit=longTP)
// === EXECUTE SHORT (SELL) TRADE ===
if shortCondition
strategy.entry("SELL", strategy.short, comment="🔻 SELL Signal")
strategy.exit("BUY TP", from_entry="SELL", stop=shortSL, limit=shortTP)
// === PLOT LINES FOR VISUALIZATION ===
plot(finalHigh, title="Breakout High (Prev/Today)", color=color.new(color.blue, 60), linewidth=2, style=plot.style_stepline)
plot(finalLow, title="Breakout Low (Prev/Today)", color=color.new(color.red, 60), linewidth=2, style=plot.style_stepline)
// === ALERT CONDITIONS ===
alertcondition(longCondition, title="🔔 Buy Signal", message="BUY triggered 🚀")
alertcondition(shortCondition, title="🔔 Sell Signal", message="SELL triggered 📉")
Longs Above 200 SMA & Shorts Belowuse this if the vwap is either above or below 200 sma till we get there, also have the vwap signal indicator as well put these both and turn on and off depending on where we are anytime of the day, one should be turned off for not getting too many signals , good luck just changed the chart
スイングハイ/ローの水平線(EMAトリガー)//@version=5
indicator("スイングハイ/ローの水平線(EMAトリガー)", overlay=true, max_lines_count=500)
//─────────────────────────────
//【入力パラメータ】
//─────────────────────────────
pivotPeriod = input.int(title="Pivot期間(左右バー数)", defval=10, minval=1)
emaPeriod = input.int(title="EMA期間", defval=20, minval=1)
lineColorHigh = input.color(title="スイングハイ水平線の色", defval=color.red)
lineColorLow = input.color(title="スイングロー水平線の色", defval=color.green)
lineWidth = input.int(title="水平線の太さ", defval=2, minval=1, maxval=10)
displayBars = input.int(title="表示する過去ローソク足数", defval=200, minval=1)
//─────────────────────────────
//【EMAの計算&プロット】
//─────────────────────────────
emaValue = ta.ema(close, emaPeriod)
plot(emaValue, color=color.orange, title="EMA")
//─────────────────────────────
//【Pivot(スイングハイ/ロー)の検出&マーカー表示】
//─────────────────────────────
pivotHighVal = ta.pivothigh(high, pivotPeriod, pivotPeriod)
pivotLowVal = ta.pivotlow(low, pivotPeriod, pivotPeriod)
plotshape(pivotHighVal, title="スイングハイ", style=shape.triangledown, location=location.abovebar, color=lineColorHigh, size=size.tiny, offset=-pivotPeriod)
plotshape(pivotLowVal, title="スイングロー", style=shape.triangleup, location=location.belowbar, color=lineColorLow, size=size.tiny, offset=-pivotPeriod)
//─────────────────────────────
//【水平線(pivotライン)管理用の配列定義】
//─────────────────────────────
// 各ピボットに対して、作成した水平線オブジェクト、開始バー、ピボット価格、ピボット種類、確定フラグを保持
var line pivotLines = array.new_line()
var int pivotLineBars = array.new_int()
var float pivotLinePrices = array.new_float()
var int pivotLineTypes = array.new_int() // 1: スイングハイ, -1: スイングロー
var bool pivotLineFinaled = array.new_bool() // EMA条件で確定済みかどうか
//─────────────────────────────
//【新たなPivot発生時に水平線を作成】
//─────────────────────────────
if not na(pivotHighVal)
pivotBar = bar_index - pivotPeriod
newLine = line.new(pivotBar, pivotHighVal, pivotBar, pivotHighVal, extend=extend.none, color=lineColorHigh, width=lineWidth)
array.push(pivotLines, newLine)
array.push(pivotLineBars, pivotBar)
array.push(pivotLinePrices, pivotHighVal)
array.push(pivotLineTypes, 1) // 1:スイングハイ
array.push(pivotLineFinaled, false)
if not na(pivotLowVal)
pivotBar = bar_index - pivotPeriod
newLine = line.new(pivotBar, pivotLowVal, pivotBar, pivotLowVal, extend=extend.none, color=lineColorLow, width=lineWidth)
array.push(pivotLines, newLine)
array.push(pivotLineBars, pivotBar)
array.push(pivotLinePrices, pivotLowVal)
array.push(pivotLineTypes, -1) // -1:スイングロー
array.push(pivotLineFinaled, false)
//─────────────────────────────
//【古い水平線の削除:指定過去ローソク足数より前のラインを削除】
//─────────────────────────────
if array.size(pivotLines) > 0
while array.size(pivotLines) > 0 and (bar_index - array.get(pivotLineBars, 0) > displayBars)
line.delete(array.get(pivotLines, 0))
array.remove(pivotLines, 0)
array.remove(pivotLineBars, 0)
array.remove(pivotLinePrices, 0)
array.remove(pivotLineTypes, 0)
array.remove(pivotLineFinaled, 0)
//─────────────────────────────
//【各バーで、未確定の水平線を更新】
//─────────────────────────────
if array.size(pivotLines) > 0
for i = 0 to array.size(pivotLines) - 1
if not array.get(pivotLineFinaled, i)
pivotPrice = array.get(pivotLinePrices, i)
pivotType = array.get(pivotLineTypes, i)
startBar = array.get(pivotLineBars, i)
if bar_index >= startBar
lineObj = array.get(pivotLines, i)
line.set_x2(lineObj, bar_index)
// スイングハイの場合:EMAがピボット価格を上回ったら確定
if pivotType == 1 and emaValue > pivotPrice
line.set_x2(lineObj, bar_index)
array.set(pivotLineFinaled, i, true)
// スイングローの場合:EMAがピボット価格を下回ったら確定
if pivotType == -1 and emaValue < pivotPrice
line.set_x2(lineObj, bar_index)
array.set(pivotLineFinaled, i, true)
Advanced Liquidity Trap & Squeeze Detector [MazzaropiYoussef]DESCRIPTION:
The "Advanced Liquidity Trap & Squeeze Detector" is designed to identify potential liquidity traps, short and long squeezes, and market manipulation based on open interest, funding rates, and aggressive order flow.
KEY FEATURES:
- **Relative Open Interest Normalization**: Avoids scale discrepancies across different timeframes.
- **Liquidity Trap Detection**: Identifies potential bull and bear traps based on open interest and funding imbalances.
- **Squeeze Identification**: Highlights conditions where aggressive buyers or sellers are trapped before a reversal.
- **Volume Surge Confirmation**: Alerts when abnormal volume activity supports liquidity events.
- **Customizable Parameters**: Adjust thresholds to fine-tune detection sensitivity.
HOW IT WORKS:
- **Long Squeeze**: Triggered when relative open interest is high, funding is negative, and aggressive selling occurs.
- **Short Squeeze**: Triggered when relative open interest is high, funding is positive, and aggressive buying occurs.
- **Bull Trap**: Triggered when relative open interest is high, funding is positive, and price crosses above the trend line but fails.
- **Bear Trap**: Triggered when relative open interest is high, funding is negative, and price crosses below the trend line but fails.
USAGE:
- This indicator is useful for traders looking to anticipate reversals and avoid being caught in market manipulation events.
- Works best in combination with order book analysis and volume profile tools.
- Can be applied to crypto, forex, and other leveraged markets.
**/
VWAP & EMA Trend Trading with buy and sell signalin my opinion after using so many indicators this is the only indicator i need to scalp or swing depending on what we want to accomplish easy read of buy and sell signal. Too much complication clutters the mind and very hard to get in any trade and leave so much on the table , small position with high probablity trades is all we need. good luck all.
Global Liquidity Index - Selectable (Indicator) by FlickyScript attained from Flicky on Erik Krown's Crypto Cave
The Global Liquidity Index offers a consolidated view of all major central bank balance sheets from around the world. For consistency and ease of comparison, all values are converted to USD using their relevant forex rates and are expressed in trillions. The indicator incorporates specific US accounts such as the Treasury General Account (TGA) and Reverse Repurchase Agreements (RRP), both of which are subtracted from the Federal Reserve's balance sheet to give a more nuanced view of US liquidity. Users have the flexibility to enable or disable specific central banks and special accounts based on their preference. Only central banks that both don’t engage in currency pegging and have reliable data available from late 2007 onwards are included in this aggregated liquidity model.
Global Liquidity Index = Federal Reserve System (FED) - Treasury General Account (TGA) - Reverse Repurchase Agreements (RRP) + European Central Bank (ECB) + People's Bank of China (PBC) + Bank of Japan (BOJ) + Bank of England (BOE) + Bank of Canada (BOC) + Reserve Bank of Australia (RBA) + Reserve Bank of India (RBI) + Swiss National Bank (SNB) + Central Bank of the Russian Federation (CBR) + Central Bank of Brazil (BCB) + Bank of Korea (BOK) + Reserve Bank of New Zealand (RBNZ) + Sweden's Central Bank (Riksbank) + Central Bank of Malaysia (BNM).
This tool is beneficial for anyone seeking to get a snapshot of global liquidity to interpret macroeconomic trends. By examining these balance sheets, users can deduce policy trajectories and evaluate the global economic climate. It also offers insights into asset pricing and assists investors in making informed capital allocation decisions. Historically, riskier assets, such as small caps and cryptocurrencies, have typically performed well during periods of rising liquidity. Thus, it may be prudent for investors to avoid additional risk unless there's a consistent upward trend in global liquidity.
DINH THANG FOLLOW TREND ### **Ichimoku Cloud (Kumo)**
The **Kumo (Cloud)** in the Ichimoku indicator consists of the **Senkou Span A** and **Senkou Span B** lines. It represents areas of support and resistance, trend direction, and market momentum:
- **Thick Cloud** → Strong support/resistance zone.
- **Thin Cloud** → Weak support/resistance, price may break through easily.
- **Price above Kumo** → Bullish trend.
- **Price below Kumo** → Bearish trend.
- **Price inside Kumo** → Consolidation or indecision.
### **Super Trend**
The **Super Trend** indicator is a trend-following tool that helps traders identify the current trend direction. It is based on the **Average True Range (ATR)** and a multiplier factor:
- **Green line below price** → Uptrend (Buy signal).
- **Red line above price** → Downtrend (Sell signal).
- It works best in trending markets but may give false signals in sideways conditions.
### **SMA 10 & SMA 20**
The **Simple Moving Average (SMA)** smooths out price action and helps identify trend direction:
- **SMA 10** → A short-term moving average, reacts quickly to price changes.
- **SMA 20** → A slightly slower-moving average, offering a broader trend perspective.
- **SMA 10 above SMA 20** → Bullish momentum.
- **SMA 10 below SMA 20** → Bearish momentum.
These indicators can be used together to confirm trends and potential trade signals. 🚀
Dynamic Bands by Conject28Here is the Dynamic Bands indicator. This indicator is quite similar to Bollinger Bands, with the difference being that it is designed with two upper and two lower bands to identify overbought and oversold levels. The lower bands can be used as LONG/BUY signals, while the upper bands can be used as SHORT/SELL signals. Of course, don’t forget to confirm signals with other indicators. Enjoy using it.
Cycle Momentum with VWAPStrategy Overview
Use of VWAP:
VWAP (Volume Weighted Average Price) is the average price over a specific period, weighted by volume. It helps traders understand the price trend. The strategy uses VWAP as a benchmark to determine whether the current price is above or below it.
Momentum Calculation:
Momentum is calculated as the difference between the current price and a specified past price. This difference is multiplied by 2 to emphasize the change in magnitude. If momentum is positive, it indicates an uptrend; if negative, it indicates a downtrend.
Cycle Identification:
The cycle is modeled using a sine function to capture periodic price movements. This helps identify cyclical fluctuations in price and detect trend changes.
Signal Generation:
Buy Signal: Generated when Cycle Momentum crosses above the zero line, suggesting the beginning of an uptrend.
Sell Signal: Generated when Cycle Momentum crosses below the zero line, suggesting the beginning of a downtrend.
Visual Representation:
When signals are generated, green labels (for buy signals) and red labels (for sell signals) are displayed on the chart. Additionally, band lines are drawn at the signal points for easier visual confirmation.
Usage
Entry: When a buy signal occurs, a long position can be taken, and when a sell signal occurs, a short position can be taken.
Trend Confirmation: Since VWAP serves as a benchmark, prices above VWAP indicate a bullish trend, while prices below indicate a bearish trend.
Important Notes
Backtesting: It’s crucial to backtest this strategy on historical data before applying it in live trading to assess performance.
Risk Management: When trading based on signals, it's important to implement proper risk management, including setting stop-loss and take-profit points.
このコードは、VWAP(Volume Weighted Average Price)とCycle Momentumを用いてトレードシグナルを生成するインジケーターです。以下に、このインジケーターの戦略の要点を説明します。
戦略の要点
VWAPの使用:
VWAPは、特定の期間の平均価格をボリュームで加重したもので、トレーダーが価格のトレンドを把握するのに役立ちます。VWAPを基準にして、現在の価格がVWAPよりも上か下かを判断します。
モメンタムの計算:
モメンタムは、現在の価格と指定された過去の価格との差を計算します。この差を2倍することで、変化の幅を強調しています。モメンタムがプラスであれば上昇トレンド、マイナスであれば下降トレンドと考えます。
サイクルの識別:
サイクルは、サイン関数を使用して周期的な動きをモデリングします。これにより、価格の周期的な変動を捉え、トレンドの変化を特定します。
シグナルの生成:
買いシグナル: Cycle Momentumがゼロラインを上回るときに生成されます。これは、上昇トレンドの開始を示唆します。
売りシグナル: Cycle Momentumがゼロラインを下回るときに生成されます。これは、下降トレンドの開始を示唆します。
視覚的表示:
シグナルが発生した際に、緑色のラベル(買いシグナル)や赤色のラベル(売りシグナル)がチャート上に表示されます。また、シグナルの発生位置に帯状の線を描画することで、視覚的に確認しやすくしています。
利用方法
エントリー: 買いシグナルが発生したらロングポジションを取り、売りシグナルが発生したらショートポジションを取ることができます。
トレンドの確認: VWAPが現在の価格の基準となるため、VWAPを価格が上回る場合は強気、下回る場合は弱気のトレンドと見なすことができます。
注意点
バックテスト: この戦略を実際に取引に適用する前に、過去のデータでバックテストを行い、パフォーマンスを確認することが重要です。
BTC Trend analysis 4H EMA 21 on 1H ChartBTC Trend Analysis Using EMA-21 on a 4H Timeframe & Plot on 1H Chart
This indicator:
✅ Calculates the EMA-21 from a 4-hour chart
✅ Plots the 4H EMA-21 on a 1-hour chart
✅ Colors price bars based on trend direction (Above EMA = Green, Below EMA = Red)
1️⃣ Calculates the 21-period EMA from the 4-hour timeframe.
2️⃣ Plots it on a 1-hour chart.
3️⃣ Colors candles based on trend direction:
Green if price is above 4H EMA-21 (Bullish)
Red if price is below 4H EMA-21 (Bearish)
Callout Signals (RSI + MACD)ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff ffffffffffffffffffffffffffffffffffffffffffff
EMA 6-20 + LSMA 333 + RSI 50 Filtreli Al-Sat Stratejisiviop30 da 1saatlik için hazırlanmış al sat stratejisi. backtest yapılmıştır
JOLUROCE 2.0ondiciones para COMPRA (▲ Verde):
Score ≥ 3 (Tendencia alcista en 3 temporalidades)
Precio sobre nivel Fibonacci 61.8%
RSI > 52 + ADX > 20
Volumen 30% sobre el promedio
Confirmación DXY (USD débil para pares EUR/USD)
Condiciones para VENTA (▼ Rojo):
Score ≤ -3 (Tendencia bajista en 3 temporalidades)
Precio bajo nivel Fibonacci 61.8%
RSI < 48 + ADX > 20
Volumen 30% sobre el promedio
Confirmación DXY (USD fuerte para pares EUR/USD)