My System Tradding . Dragon.R3 StrategyChiến luojc following, với sonic R với tỷ lệ lợi nhuận trên 50%
Indicatori e strategie
Vyes66 Strategy - Sharp Entry with RSI EMAKey Features of the Strategy:
RSI + EMA:
RSI: The Relative Strength Index (RSI) helps confirm overbought and oversold conditions. A sharp entry happens when the RSI is in the oversold region for long (below 30) and the overbought region for short (above 70).
EMA Crossover: A 9-period EMA (fast) crossing above the 21-period EMA (slow) signals a long entry, and crossing below signals a short entry.
Sharp Entry Conditions:
Long Sharp Entry: This happens when the short EMA crosses above the long EMA and RSI is below 30 (oversold).
Short Sharp Entry: This happens when the short EMA crosses below the long EMA and RSI is above 70 (overbought).
Plotting Sharp Entries:
A green arrow is plotted below the bar when the strategy executes a long sharp entry.
A red arrow is plotted above the bar when the strategy executes a short sharp entry.
Exit Conditions:
Positions are exited when the short EMA crosses back below the long EMA for long trades, or the short EMA crosses back above the long EMA for short trades.
Visual Indicators:
The 9-period EMA (fast) is plotted in blue.
The 21-period EMA (slow) is plotted in red.
The RSI is plotted with its overbought (70) and oversold (30) levels, with the RSI shown as a line graph in purple.
OTI-Options Trading IndicatorThis Pine Script strategy, "Enhanced Multiple Indicators Strategy (EMIS)," utilizes multiple technical indicators to generate trade signals. The strategy combines signals from moving averages, RSI, MACD, Bollinger Bands, Stochastic Oscillator, and ATR to evaluate market conditions and make informed trading decisions. This approach aims to capture strong buy and sell signals by aggregating the insights of these indicators into a scoring system, which helps filter out weaker signals and identify high-probability trades.
Indicators Used:
Simple Moving Average (SMA):
Measures the average closing price over a specified period (MA Length) to assess trend direction.
Relative Strength Index (RSI):
An oscillator that identifies overbought and oversold conditions based on RSI Length.
Overbought level is set at 70, and oversold level at 30.
Moving Average Convergence Divergence (MACD):
MACD line and Signal line are used for crossover signals, indicating potential momentum shifts.
Configured with MACD Fast Length, MACD Slow Length, and MACD Signal Length.
Bollinger Bands (BB):
This indicator uses a moving average and standard deviation to set upper and lower bands.
Upper and lower bands help indicate volatility and potential reversal zones.
Stochastic Oscillator:
Measures the position of the close relative to the high-low range over a specified period.
Uses a Stoch Length to determine trend momentum and reversal points.
Average True Range (ATR):
Measures volatility over a specified period to indicate potential breakouts and trend strength.
ATR Length determines the range for the current market.
Score Calculation:
Each indicator contributes a score based on its current signal:
Moving Average (MA): If the price is above the MA, it adds +5; otherwise, -5.
RSI: +10 if oversold, -10 if overbought, and 0 if neutral.
MACD: +5 for a bullish crossover, -5 for a bearish crossover.
Bollinger Bands: +5 if below the lower band, -5 if above the upper band, and 0 if within bands.
Stochastic: +5 if %K > %D (bullish), -5 if %K < %D (bearish).
ATR: Adjusted to detect increased volatility (e.g., recent close above previous close plus ATR).
The final score is a combination of these scores:
If the score is between 5 and 10, a Buy order is triggered.
If the score is between -5 and -10, the position is closed.
Usage Notes:
Adjust indicator lengths and levels to fit specific markets.
Back test this strategy on different timeframes to optimize results.
This script can be a foundation for more complex trading systems by tweaking scoring methods and indicator parameters.
Please Communicate Your Trading Results And Back Testing Score On-
manjunath0honmore@gmail.com
Tele-@tbmlh
Low Probability High Reward StrategyStrategy Overview
Concept: Look for rare, extreme deviations from the norm. We'll use Bollinger Bands to find cases where the price is significantly outside the bands, combined with RSI to confirm overbought/oversold conditions.
Setup:
Buy Signal: Price closes below the lower Bollinger Band and RSI is below 20 (extreme oversold).
Sell Signal: Price closes above the upper Bollinger Band and RSI is above 80 (extreme overbought).
Exit Strategy:
Use a Take Profit based on ATR (Average True Range) for high rewards.
Use a Stop Loss tighter than the Take Profit to manage risk.
BMSB Breakout StrategyPrueba este código en TradingView y verifica si los puntos de compra y venta se alinean con tus expectativas para la ruptura de la estructura de mercado (BMSB).
ICT Imbalance Strategy
Aquí tienes un resumen breve y claro para publicar en TradingView:
ICT Imbalance Strategy para EUR/USD
Esta estrategia basada en los conceptos de ICT (Imbalance Candle Theory) identifica desequilibrios en el mercado, sugiriendo puntos de compra y venta para el par EUR/USD. Utiliza medias móviles exponenciales (EMAs) de 8 y 21 períodos para detectar la tendencia y filtrar las señales.
Funcionamiento:
Identificación de desequilibrios: La estrategia busca velas con desequilibrio (imbalance) en el precio, donde la presión de compra o venta es significativa y puede indicar una zona de entrada.
Condiciones de compra: Se activa una señal de compra cuando ocurre un desequilibrio alcista y la EMA rápida (8) está por encima de la EMA lenta (21).
Condiciones de venta: La señal de venta se genera cuando aparece un desequilibrio bajista y la EMA rápida está por debajo de la EMA lenta.
Configuración recomendada:
Par: EUR/USD
Plazo: Ajustable, preferiblemente en gráficos intradía (5m, 15m o 1h)
Indicadores visuales: Fondo verde para compra y rojo para venta; flechas en el gráfico para identificar entradas.
Nota: Esta estrategia es un punto de partida y debe ajustarse y probarse en backtesting para optimizar su rendimiento.
MSD macd strategythis just sample of our strategies we published with open source, to learning our investor the way of trading and analysis, this strategy just for study and learning
in this strategy we use expontial moving avarage 200 and MACD < we build this strategy depend on a cross between fast line and slow line in macd and price should be up or down ema
we try this strategy on forex ,crypto and futures and it give us very good result ,, also we try this position on multi time frame we find the strategy give us good result on 1 hour time frame .
in the end our advice for you before you use any strategy you should have the knowledge of the indicators how it is work and also you should have information about the market you trade and the last news for this market beacuse it effect so much on the price moving .
MSD volume&rsi strategythis just sample of our strategies we published with open source, to learning our investor the way of trading and analysis, this strategy just for study and learning
in this strategy we use RSI AND VOLUME < we build this strategy depend on overbought and oversold rsi with volume sign more than 5
we try this strategy on forex ,crypto and futures and it give us very good result ,, also we try this position on multi time frame we find the strategy give us good result on 1 hour time frame .
in the end our advice for you before you use any strategy you should have the knowledge of the indicators how it is work and also you should have information about the market you trade and the last news for this market beacuse it effect so much on the price moving .
DeFI Hungaty Master Indicator [Strategy]As my community at https//www.defihungary.com suggested I created this strategy that we use.
Here is the description:
The Master Indicator is a comprehensive trading strategy designed to provide unique insights into market trends and reversals, with features that blend innovative calculations and adaptive conditions for both long and short positions. It incorporates custom indicators, dynamic stop-loss and take-profit settings, and a flexible timeframe selection to fit various trading styles. Here's a breakdown of the core functionalities and how they make this strategy distinctive:
1. Unique Trend Detection Mechanism
This indicator uses a Smooth Average Range Filter (SMMA) combined with Heiken Ashi (HA) candlesticks to reduce market noise and better capture trend direction. By calculating the smooth moving range (SMRNG), the indicator can detect price range shifts that hint at new trends or the continuation of existing ones.
Unlike standard moving averages or other trend indicators, the Master Indicator utilizes a unique range-filtered approach. This approach adds a layer of volatility filtering, which helps traders avoid false signals in choppy or sideways markets, making it particularly valuable in unpredictable markets.
2. Adaptive Entry and Exit Conditions
SMMA Crossovers: The Master Indicator leverages SMMA (Smoothed Moving Average) crossovers between the open and close prices to identify precise entry and exit points. This adaptive method of entry and exit, based on smoother averages, makes it more resilient against false signals in trending markets.
User-Defined Stop-Loss and Take-Profit: The strategy includes configurable stop-loss and take-profit options that adapt to each trade's entry price. These options help traders manage their risk and secure profits by setting dynamic thresholds.
Additionally, traders can adjust these levels according to their risk tolerance, from conservative to aggressive.
3. Flexible Date-Based Backtesting
The indicator allows users to set specific date ranges for backtesting using “From” and “To” inputs. This function is ideal for traders looking to evaluate the strategy’s performance over distinct market periods (e.g., bull, bear, or sideway markets).
By fine-tuning the backtesting period, traders can determine how well the strategy performs across various market conditions, making it a versatile tool for both intraday and swing traders.
4. Detailed and Intuitive Chart Visualizations
The strategy’s visual outputs include clearly marked Buy and Sell signals that are plotted as shapes above or below the bars, helping traders quickly identify entry and exit opportunities.
The chart also displays supportive SMMA lines that adapt dynamically based on market conditions, with separate SMMA lines for the open and close. These lines provide an intuitive visual representation of the market trend direction.
Additional target bands (high and low bands around the filtered price) offer traders insight into potential support and resistance levels, helping to validate trade entries and exits.
www.defihungary.com
5. Practical Application and Market Adaptability
This strategy is designed for a variety of asset classes (e.g., stocks, forex, crypto) and timeframes, from intraday to longer-term trends. The SMMA and range-filtered approaches are particularly effective in volatile markets, as they help to smooth out price action while maintaining responsiveness to genuine price trends.
The indicator is suitable for traders who want a single, all-in-one solution that provides trend detection, entry signals, and risk management. By adjusting the Range Multiplier and Sampling Period, users can optimize the strategy to fit different assets and trading styles.
3rd Wave StrategyTest strategy based on waves analysis.
Wave analysis, often referred to as Elliott Wave Theory, is a popular method of technical analysis used to forecast financial market trends by identifying recurring wave patterns. The theory was developed by Ralph Nelson Elliott in the 1930s and suggests that market prices move in predictable cycles or waves.
Williams %R Key Times369 khjkasjnkasn f\
sfmsdkljfnlwsdancs
casd'cmasdjklclasdnmcsdc
csdcasdcsdacsdc dc sdfsdfsdf
Optimized Adaptive Close Momentum StrategyThe Optimized Adaptive Close Momentum Strategy (OACMS) is a dynamic and advanced trading strategy designed to capitalize on market momentum while adjusting to fluctuating market conditions. The strategy leverages a combination of technical indicators and adaptive risk management techniques to identify high-probability trades with minimized risk. Below is a description of the key components:
Core Components of OACMS:
Momentum Indicators:
Relative Strength Index (RSI): Monitors overbought and oversold conditions to highlight potential reversals. A value crossing above 30 indicates upward momentum, while below 70 signals weakening momentum.
Moving Average Convergence Divergence (MACD): Identifies changes in momentum by comparing the relationship between two moving averages. A bullish signal occurs when the MACD crosses above the signal line, while a bearish signal happens when the MACD crosses below.
Average True Range (ATR): Measures market volatility, helping adjust risk and position sizes dynamically, especially during periods of increased market uncertainty.
Adaptive Close Price Analysis:
Exponential Moving Averages (EMA): Focuses on closing prices to smooth out short-term price fluctuations. The 50-period EMA is used to determine short- to medium-term trends, and the 200-period EMA helps validate long-term market direction.
The strategy adapts based on how price behaves relative to these EMAs, refining entry and exit conditions.
Adaptive Risk Management:
Position Sizing: The strategy adapts position sizes based on market volatility (measured by ATR). In higher volatility conditions, the position size is reduced to mitigate risk.
Stop-Loss & Take-Profit:
Stop-Loss: Placed based on ATR, ensuring the stop level accommodates typical market fluctuations without triggering prematurely.
Take-Profit: Targets are set with a fixed risk-to-reward ratio (e.g., 2:1), ensuring that potential profits outweigh the risks taken.
Entry Conditions:
Buy Signal: A trade is initiated when the RSI crosses above 30, the MACD shows bullish momentum, and the close price is above the 50 EMA. These conditions indicate a favorable upward trend.
Sell Signal: A sell is triggered when the RSI crosses below 70, the MACD shows bearish momentum, and the close price is below the 50 EMA, signaling a potential downtrend.
Exit Strategy:
Trailing Stops: To lock in profits, the strategy uses trailing stops once the price has moved in the trader’s favor. The trailing stop is adjusted based on a multiplier of ATR, ensuring it moves with the market and secures gains.
Exit Conditions: If market momentum weakens or reverses (as shown by the RSI, MACD, or close price relative to the EMA), positions are exited to preserve profits or limit losses.
Adaptive Market Conditions:
The strategy adjusts itself according to the market's volatility and trend strength. During periods of high volatility, the risk parameters are tightened, while in stable or trending markets, the strategy focuses on capturing bigger price movements.
Benefits of OACMS:
Dynamic Adaptation: The strategy continuously adapts to market changes, offering precision in entries and exits. This makes it effective across different market environments (e.g., trending or ranging markets).
Risk Optimization: With ATR-based adjustments for position size and stop levels, OACMS reduces unnecessary risk exposure during volatile periods while increasing potential rewards when conditions are favorable.
Profit Lock-In: The trailing stop feature ensures profits are protected as the market moves in the trader's favor.
Backtesting and Optimization:
To ensure the effectiveness of the OACMS, thorough backtesting is performed using historical price data. Various parameter combinations (e.g., RSI period, MACD settings, stop-loss levels) are tested to determine the optimal configuration. The strategy is then fine-tuned based on performance metrics like win rate, risk-to-reward ratio, and drawdowns. Once optimized, it is forward-tested in a demo or simulated environment to ensure it performs well in real-time conditions.
By combining these adaptive and momentum-driven elements, the Optimized Adaptive Close Momentum Strategy provides a sophisticated and flexible approach to trading, minimizing risk while maximizing potential returns.
clear visionits a rsi based indicator which works well on option premium charts , indicating key levels and overbought and oversold zone
Fractional Accumulation Distribution Strategy🔹 INTRODUCTION:
As traders and investors, we often find ourselves searching for ways to maximize our market positioning—trying to capture the best price, manage risk, and adapt to ever-changing volatility. Through years of working with a variety of traders and investors, a common theme emerged: the most successful market participants were those who accumulated positions strategically over time, rather than relying on one-off, rigid entry points. However, even the best of them struggled to consistently time their entries and exits for optimal results.
That's why I created the Fractional Accumulation/Distribution Strategy (FADS)—an adaptable solution designed to dynamically adjust position sizing and entry points based on changing market conditions, enabling both passive and active market participants to optimize their approach.
The FADS trading strategy combines volatility-based trend detection and adaptive position scaling to maximize profitability across varied market conditions. By using the price ranges from higher timeframes, FADS pinpoints extreme demand and supply zones with a high statistical probability of reversal, making it effective in both high and low volatility environments. By applying adjustable threshold settings, users can focus on meaningful price movements to reduce unnecessary trades. Adaptive position scaling further enhances this approach by adjusting position sizes based on entry level distances, allowing for strategic position building that balances risk and reward in uncertain markets. This systematic scaling begins with smaller positions, expanding as the trend solidifies, creating a refined, robust trading experience.
🔹 FEATURES:
Multi-Timeframe Volatility-Based Trend Detection
Accumulation/Distribution Level Filter
Customizable Period for Highest/Lowest Prices Capture
Adjustable Sensitivity & Frequency in Positioning
Broad control settings of Strategy
Adaptive Position Scaling
🔹 SETTINGS:
Volatility : Determines trading range based on market volatility . Highest range value number of periods.
Factor : Adjusts the width of the Accumulation & Distribution bands separately. The Level Filter feature offers customizable triggering bands, allowing users to fine-tune the initiation point for the Accumulation/Distribution sequence. This flexibility enables traders to align entries more precisely with market conditions, setting optimal thresholds for initiating trade chains, whether in accumulating positions during uptrends or distributing in downtrends.
Lowest : Choose the price source (e.g., Close, Low). Number of bars considered when determining the lowest price level. Selecting the checkbox generate a signal when the price crosses below the previous lowest value for calculating the lowest value used for trade signals.
Highest : Choose the price source (e.g., Close, High). Number of bars considered when determining the highest price levels. Selecting the checkbox generate a signal when the price crosses above the previous highest value for calculating the highest value used for trade signals.
Accumulation Spread : Adjusts the buying frequency sensitivity by setting the distance between entries based on personal risk tolerance. Larger values for less frequent buys; smaller values for more frequent buys.
Distribution Spread : Adjusts the selling frequency sensitivity by setting the distance between exits based on reward preference. Larger values for less frequent sells; smaller values for more frequent sells.
Percentage of Capital Allocation : Sets the portion of total capital used for the initial trade in a strategy. It sets the scale for subsequent trades during accumulation phase.
🔹 APPLICATIONS:
❖ Accumulation and Distribution Phases
Early entries are avoided by initiating accumulation only after a trend reversal is confirmed and price breaks below long-term range.
Position sizes are determined by the distance between consecutive trades, smaller distance results in smaller position sizes and vice versa.
Average position cost is reduced by accumulating larger positions at the lower prices, potentially resulting in improved profitability.
Early exits are avoided by initiating distribution only after trend reversal is confirmed and price breaks above long-term range.
The pace of distribution can be tracked by the violet line that represents average positions during distribution phase
❖ Use Cases (Different than default setting input is used for illustration purposes)
If the starting point of accumulation starts too high for the risk preference, Accumulation Level Filter can be lowered by increasing the 🟢 threshold Factor.
If the starting point of distribution is too low for the reward preference, the Distribution Level Filter can be raised by increasing the 🔴 threshold Factor.
In lower timeframes, positions during the accumulation phase could be purchased at higher levels relative to prior entry positions. To optimize for this, consider extending the period used to capture the lowest prices. Similarly, during the distribution phase, increasing the period for identifying higher prices can improve accuracy.
🔹 Strategy Properties:
Adjusting properties within the script settings is recommended to align with specific accounts and trading platforms, ensuring realistic strategy results.
Balance (default): $100,000
Initial Order Size: 1% of the default balance
Commission: 0.1%
Slippage: 5 Ticks
Backtesting: Backtested using TradingView’s built-in strategy testing tool with default commission rates of 0.1% and slippage of 5 ticks. It reflects average market conditions for Apple Inc. (APPL) on 1-hour timeframe
Disclaimers: Commission and slippage varies with market conditions and brokerage policies. The assumed value may not represent all trading environments.
PAST PERFORMANCE DOESN’T GUARANTEE FUTURE RESULTS!
Disclaimer: Please remember that past performance may not be indicative of future results. Due to various factors, including changing market conditions, the strategy may no longer perform as well as in historical backtesting. This post and the script don’t provide any financial advice.
This invite-only script is being published as part of my commitment to developing tools that align with TradingView’s community standards. Access requests will be reviewed carefully after the script passes TradingView's moderation process.
NX8Hindicatore di livelli di entry in Swing e Breakout del prezzo di tutti gli strumenti. utilizzabile su tutti i time frame dal 30min in su, su grafici con candele a 15 min. in su , sconsiglio utilizzo con time frame minori perchè i prezzi sono soggetti ad oscillazioni repentine anche nella candela a 30 minuti. è ottimo per operazioni di ampio respiro da 1 giorno in su e su operazioni di lungo utilizzandolo con time frame anche daily e weekly montly. i livelli sono a volte precisi al tik a volte con sforamenti. Non tener conto del becktesting che dipende dallo strumento e dai time frame utilizzati e che come tutte le strategie include falsi segnali. è meglio fare delle prove in paper trading per poter capire il funzionamento. E' possibile nella tabella di input variare il time frame e utilizzare quello di volta in volta piu' idoneo per mettere in atto la strategia long o short e trovare i punti precisi di swing del prezzo vedrai con i tuoi occhi il prezzo che tocca il livello e riparte . Entry da fare solo su livello , l entry va fatta dopo il riassorbimento su eventuale falso breakout. Comunque si puo' fare una simulazione per vedere se gli swing siano precisi , ovvio bisogna provarlo settarlo in base alla propria sensibilità e operatività. ricordo che il treding al 20% è tecnica ma all 80% è psicologia e autocontrollo. è consigliabile fare un operazione a settimana su livelli importanti time frame a 8h su futures . e time frame piu' grandi sui titoli azionari , livelli con time frame weekly. qualsiasi spiegazione sono disponibile. grazie
Strategy without indicators v11. General Script Strategy
The objective of this strategy is to open buy or sell orders every new hour based on:
Whether the previous candle closed high (buy) or low (sell).
The presence of tops and bottoms to avoid opening orders at times of possible reversals.
The strategy also allows the user to set a date range (start date and end date) to calculate profit, loss, percentage of gain and percentage of loss only in that period.
2. Initial Settings and Parameters
Start Date and End Date: The start_date and end_date variables define the date range to account for profits and losses. These dates can be adjusted by the user to view results in specific periods.
3. Conditions for Order Entry
At each time change, the script checks the conditions for buying or selling, using the following variables and logic:
Detection of Bullish or Bearish Candle:
bullish_candle: True if the previous candle closed high.
bearish_candle: True if the previous candle closed lower.
Analysis of Tops and Bottoms:
To avoid opening orders close to tops and bottoms, the script uses the function find_top_and_bottom(period), which analyzes the last 500 candles and identifies the highest value (top) and the lowest value (bottom).
The variables current_top and current_bottom store these values.
next_top and next_bottom indicate whether the current candle is close to a top (prevents buying) or a bottom (prevents selling).
4. Opening Orders (Buy and Sell)
At each time change, the script checks the conditions to open buy or sell orders:
Condition for Sell:
The sell order is opened if the previous candle was bullish (bullish_candle) and is not close to a top (not next_top).
If there is an open buy order, it is closed before the new sell order.
Buy Condition:
The buy order is opened if the previous candle was bearish (bearish_candle) and is not near a bottom (not_near_bottom).
If there is an open sell order, it is closed before the new buy order.
5. Calculating Profit and Loss
The profit and loss calculation is only done within the configured date range (start_date and end_date):
Profit and Loss:
total_profit and total_loss accumulate the profit and loss values of all operations during the defined period.
percentage_gain and percentage_loss calculate the percentage of gain and loss in relation to the initial capital.
6. Displaying Results on the Chart
The script displays on the chart, next to the candles, the information on Total Profit, Total Loss, % Gain and % Loss:
Strategy Summary
Setting the Date Range: Allows you to set the period for calculating profit and loss.
Previous Candlestick Analysis: Decide whether to buy or sell based on the previous candlestick.
Preventing Entries at Tops and Bottoms: Avoids buying at tops and selling at bottoms to reduce false signals.
Result Calculation: Accumulates profits, losses and percentages within the configured date range.
Results Display on Chart: Displays the configured statistics directly on the chart, next to the candlesticks.
1. Estratégia Geral do Script
O objetivo dessa estratégia é abrir ordens de compra ou venda a cada nova hora com base em:
Se a vela anterior fechou em alta (compra) ou em baixa (venda).
A presença de topos e fundos para evitar abrir ordens em momentos de possíveis reversões.
A estratégia também permite que o usuário configure um intervalo de datas (data inicial e data final) para calcular o lucro, perda, percentual de ganho e percentual de perda apenas nesse período.
2. Configurações e Parâmetros Iniciais
Data Inicial e Data Final: As variáveis data_inicial e data_final definem o intervalo de datas para contabilizar os lucros e perdas. Essas datas podem ser ajustadas pelo usuário para visualizar resultados em períodos específicos.
3. Condições para Entrada de Ordens
A cada mudança de hora, o script verifica as condições de compra ou venda, usando as seguintes variáveis e lógicas:
Detecção de Vela de Alta ou Baixa:
vela_de_alta: Verdadeiro se a vela anterior fechou em alta.
vela_de_baixa: Verdadeiro se a vela anterior fechou em baixa.
Análise de Topos e Fundos:
Para evitar abrir ordens próximas de topos e fundos, o script utiliza a função find_top_and_bottom(periodo), que analisa as últimas 500 velas e identifica o valor mais alto (topo) e o valor mais baixo (fundo).
As variáveis topo_atual e fundo_atual armazenam esses valores.
topo_proximo e fundo_proximo indicam se a vela atual está perto de um topo (evita compra) ou de um fundo (evita venda).
4. Abertura de Ordens (Compra e Venda)
A cada mudança de hora, o script verifica as condições para abrir ordens de compra ou venda:
Condição para Venda:
A ordem de venda é aberta se a vela anterior foi de alta (vela_de_alta) e não está perto de um topo (not topo_proximo).
Se houver uma ordem de compra aberta, ela é fechada antes da nova ordem de venda.
Condição para Compra:
A ordem de compra é aberta se a vela anterior foi de baixa (vela_de_baixa) e não está perto de um fundo (not fundo_proximo).
Se houver uma ordem de venda aberta, ela é fechada antes da nova ordem de compra.
5. Cálculo de Lucros e Perdas
O cálculo de lucro e perda só é feito dentro do intervalo de datas configurado (data_inicial e data_final):
Lucro e Perda:
lucro_total e perca_total acumulam os valores de lucro e perda de todas as operações durante o período definido.
percentual_ganho e percentual_perca calculam o percentual de ganho e perda em relação ao capital inicial.
6. Exibição dos Resultados no Gráfico
O script exibe no gráfico, próximo das velas, as informações de Lucro Total, Perda Total, % de Ganho e % de Perda:
Resumo da Estratégia
Configuração de Intervalo de Datas: Permite configurar o período para cálculo do lucro e da perda.
Análise de Vela Anterior: Decide se a ordem é de compra ou venda com base na vela anterior.
Prevenção de Entradas em Topos e Fundos: Evita compras em topos e vendas em fundos para reduzir sinais falsos.
Cálculo de Resultados: Acumula lucros, perdas e percentuais dentro do período de datas configurado.
Exibição dos Resultados no Gráfico: Exibe as estatísticas configuradas diretamente no gráfico, próximo das velas.
Madhan_HMT_Ultimate_StrategyThis indicator is a trend-following strategy designed to identify buy and sell signals based on price action relative to dynamic channels and smoothing mechanisms. It uses two separate sets of parameters that adjust to market conditions, with each set of parameters acting as an independent trend filter. The indicator creates arrows on the chart to signal potential trade entries, with these arrows appearing when the price crosses certain thresholds established by the indicator's internal calculation.
The strategy can be customized with various parameters, including:
Stop loss and take profit levels based on multiple options: ATR (Average True Range), fixed points, or percentage-based values.
Trading mode options that allow the user to choose whether the strategy trades both long and short positions, or restricts trades to only one direction (long or short).
The indicator visually represents the entry levels, stop loss, and take profit levels, with backgrounds filling to highlight potential risk and reward areas. By adjusting the parameters, traders can tailor the indicator to suit different market conditions and their risk tolerance.
Zig Zag + Aroon StrategyBelow is a trading strategy that combines the Zig Zag indicator and the Aroon indicator. This combination can help identify trends and potential reversal points.
Zig Zag and Aroon Strategy Overview
Zig Zag Indicator:
The Zig Zag indicator helps to identify significant price movements and eliminates smaller fluctuations. It is useful for spotting trends and reversals.
Aroon Indicator:
The Aroon indicator consists of two lines: Aroon Up and Aroon Down. It measures the time since the highest high and the lowest low over a specified period, indicating the strength of a trend.
Strategy Conditions
Long Entry Conditions:
Aroon Up crosses above Aroon Down (indicating a bullish trend).
The Zig Zag indicator shows an upward movement (indicating a potential continuation).
Short Entry Conditions:
Aroon Down crosses above Aroon Up (indicating a bearish trend).
The Zig Zag indicator shows a downward movement (indicating a potential continuation).
Exit Conditions:
Exit long when Aroon Down crosses above Aroon Up.
Exit short when Aroon Up crosses above Aroon Down.
Ichimoku + RSI + MACD Strategy1. Relative Strength Index (RSI)
Overview:
The Relative Strength Index (RSI) is a momentum oscillator that measures the speed and change of price movements. It ranges from 0 to 100 and is typically used to identify overbought or oversold conditions in a market.
How to Use with Ichimoku:
Long Entry: Look for RSI to be above 30 (indicating it is not oversold) when the price is above the Ichimoku Cloud.
Short Entry: Look for RSI to be below 70 (indicating it is not overbought) when the price is below the Ichimoku Cloud.
2. Moving Average Convergence Divergence (MACD)
Overview:
The MACD is a trend-following momentum indicator that shows the relationship between two moving averages of a security’s price. It consists of the MACD line, signal line, and histogram.
How to Use with Ichimoku:
Long Entry: Enter a long position when the MACD line crosses above the signal line while the price is above the Ichimoku Cloud.
Short Entry: Enter a short position when the MACD line crosses below the signal line while the price is below the Ichimoku Cloud.
Combined Strategy Example
Here’s a brief outline of how to structure a trading strategy using Ichimoku, RSI, and MACD:
Long Entry Conditions:
Price is above the Ichimoku Cloud.
RSI is above 30.
MACD line crosses above the signal line.
Short Entry Conditions:
Price is below the Ichimoku Cloud.
RSI is below 70.
MACD line crosses below the signal line.
Exit Conditions:
Exit long when MACD line crosses below the signal line.
Exit short when MACD line crosses above the signal line.