TechnoCharts Supertrend The Supertrend Strategy with Daily Exit at 3:20 PM is a trend-following trading strategy that uses the Supertrend indicator to generate buy and sell signals based on the direction of the trend. Here’s a quick summary of its key elements:
1. Supertrend Indicator
The Supertrend is calculated using the Average True Range (ATR), which is a volatility indicator.
A multiplier (typically set to 3) is applied to the ATR to determine the threshold for trend shifts.
When the price crosses above or below the calculated thresholds (up and down), the trend direction changes.
ATR Period (default: 10) and ATR Multiplier (default: 3.0) are adjustable inputs.
2. Trend and Signal Logic
Buy Signal: Generated when the trend shifts from down to up.
Sell Signal: Generated when the trend shifts from up to down.
These signals are displayed on the chart along with optional labels to highlight buy and sell points.
3. Daily Exit Condition
The strategy includes a time-based exit, which closes any open positions at 3:20 PM each day.
This daily exit helps avoid holding positions overnight and mitigates risk from market gaps.
4. Position Sizing
The strategy uses 100% of equity for each trade by default, which is configurable.
5. Alerts
Alerts are set up for buy, sell, and trend change signals, allowing traders to receive notifications when these events occur.
This strategy is best suited for traders who want to follow trends during the day and avoid holding positions overnight, combining trend-following with a daily closing mechanism to manage risk.
Options
Supertrend @TechnoChartsThe Supertrend Strategy with Daily Exit at 3:20 PM is a trend-following trading strategy that uses the Supertrend indicator to generate buy and sell signals based on the direction of the trend. Here’s a quick summary of its key elements:
1. Supertrend Indicator
The Supertrend is calculated using the Average True Range (ATR), which is a volatility indicator.
A multiplier (typically set to 3) is applied to the ATR to determine the threshold for trend shifts.
When the price crosses above or below the calculated thresholds (up and down), the trend direction changes.
ATR Period (default: 10) and ATR Multiplier (default: 3.0) are adjustable inputs.
2. Trend and Signal Logic
Buy Signal: Generated when the trend shifts from down to up.
Sell Signal: Generated when the trend shifts from up to down.
These signals are displayed on the chart along with optional labels to highlight buy and sell points.
3. Daily Exit Condition
The strategy includes a time-based exit, which closes any open positions at 3:20 PM each day.
This daily exit helps avoid holding positions overnight and mitigates risk from market gaps.
4. Position Sizing
The strategy uses 100% of equity for each trade by default, which is configurable.
5. Alerts
Alerts are set up for buy, sell, and trend change signals, allowing traders to receive notifications when these events occur.
This strategy is best suited for traders who want to follow trends during the day and avoid holding positions overnight, combining trend-following with a daily closing mechanism to manage risk.
Demo GPT - Day Trading Scalping StrategyOverview:
This strategy is designed for day trading and scalping, utilizing a combination of technical indicators, candlestick patterns, and volume analysis to determine entry and exit points. It focuses on capturing short-term price movements while ensuring that trades are executed under specific market conditions.
Key Components:
Technical Indicators Used:
Exponential Moving Average (EMA): The strategy uses the 20-period EMA to identify the trend direction. The EMA smooths out price data, helping traders make more informed decisions about potential buy or sell signals.
Volume Weighted Average Price (VWAP): VWAP is used to measure the average price a security has traded at throughout the day, based on both volume and price. This indicator helps assess whether the current price is above or below the average trading price.
Camarilla Pivot Points: The strategy calculates four levels of Camarilla pivots (S2, S3, R2, R3) based on the highest and lowest prices over the last 14 daily candles. These levels act as potential support and resistance zones, guiding entry and exit decisions.
Candlestick Analysis:
Buy Condition: A buy signal is triggered when:
The first candle (previous candle) is green (close > open).
The second candle (current candle) is also green and opens above the first candle.
The volume of the current candle exceeds the 20-period moving average of volume, indicating strong buying interest.
Sell Condition: A sell signal is triggered when:
The first candle is red (close < open).
The second candle opens below the first red candle.
The volume of the current candle also exceeds the 20-period moving average of volume, indicating strong selling pressure.
Position Management:
The strategy enters a long position (buy) when the buy condition is met and closes the long position when the sell condition is met. This approach aims to capture upward momentum while avoiding extended exposure to downside risks.
Trading Settings:
Capital Management: The strategy uses 100% of available capital for each trade, allowing for maximum exposure to potential gains.
Commission and Slippage: The script includes settings for a commission rate of 0.1% and slippage of 3, accounting for trading costs and potential price changes during order execution.
Date Filtering: The strategy allows users to set a start date (January 1, 2018) and an end date (December 31, 2069) for trade execution, providing flexibility in backtesting and live trading.
Visualization:
The script plots the 20 EMA, VWAP, and the Camarilla pivot levels on the chart for visual reference.
Buy and sell signals are visually represented with shapes on the chart, making it easy to identify potential trade opportunities at a glance.
Volume is plotted in a separate pane to assess trading activity, and a horizontal line at zero provides a reference point.
Summary:
This Day Trading Scalping Strategy is designed to exploit short-term price movements by using a combination of EMAs, VWAP, and Camarilla pivot levels, alongside candlestick patterns and volume analysis. It is well-suited for traders looking to make quick trades based on real-time market conditions while maintaining a disciplined approach to entry and exit points. The strategy is highly visual, allowing traders to quickly assess market conditions and make informed trading decisions.
Feel free to modify or adjust any aspects of the strategy according to your specific trading goals or preferences!
Strategy:Reversal-CatcherWhat
This is a plain and vanilla reversal based strategy for intraday (15m) timeframe on Futures prices of the assets.
Now what all it comprises of?
It finds out the dynamic support & resistance from Bollinger Band (20 period, 1.5 std dev).
It finds out the potential divergence of price deviation from 5 period exponential moving average (EMA).
If the previous candle (N-1) shows a divergence it confirms the reversal by checking the present candle (N) to be closed inside the Bollinger Band.
It confirms the momentum by checking RSI shows a crossover/crossunder to oversold (30) / overbought (70) region.
It also confirms whether the trend is up (then only reversal trade to short) or down (then only reversal trade to long). The trend is checked with EMA-21 and EMA-50.
Re-affirmation Condition : It re-affirms the position of two successive candles called as `hhLLong` and `hhLLShort` in the script.
Why
In Indian context, retail participants are pre-dominantly (yes- 80% of Indian daily volume) Options buyers mainly in weekly indices (Nifty, BankNifty, FinNifty, CNXMidcap, Sensex, Bankx .. well everyday is expiry now in India, except -- Thank God -- Saturday & Sunday).
And in Index Options the momentum plays a big role.
If one can catch a good reversal point the potential of high Risk-to-Reward trade (hence earn handsomely) is very likely (please note: there is no holy grail in trading. Nothing works 100%).
So this is the attempt to catch a reversal.
Re-affirmation of Reversal
hhLLong : It's a reversal point after an uptrend. It checks the relative positioning of current candle compared to that of previous candle. [The details are in the script. Check for variable hhLLong in script.
hhLLShort : It's a reversal point after a downtrend. It checks the relative positioning of current candle compared to that of previous candle. [The details are in the script. Check for variable hhLLShort in script.
Unique-ness
What's unique in it? Why we decided to publicly share this:
Already given the context of The Great Indian Options Buyers community. It should be helpful to them, we believe.
It takes Very Less Number of Trades with High Accuracy . Please check the result in NSE:NIFTY1! in 15m timeframe. 71% accuracy with roughly a trade in a month.
There is no point giving brokers' the brokerages taking 10 trades a day and ending not-so-good EoD. Better lets take less trades with better result possibility. .
Mention
There are many people uses this variation of Bolling Band, 5EMA
Many people use RSI, trends and relative positioning of candles.
--> We are grateful to all of them. It's really difficult to mention everyone's name. But all people somehow influence the thought process. Thanks for all of them.
Statutory Disclaimer
There is no silver bullet / holy grail in trading. Nothing works 100% time. One has to be careful about the loss (s)he can bear in case of the trade goes against.
We, as the author of this script, is not responsible for any trading or position decision one is taken based on the outcome of this.
It is our sole discretion to change, add, delete the portion or withdraw the whole script without any prior notice or intimation.
In Indian Context : We are not SEBI registered, will never be SEBI registered.
SPY 1 Minute Day TraderWhen scalping options, users are looking for where breakouts are going to occur instead of sitting thru areas choppy price action that drain delta and cause them to lose value even if price is up trending. This script tries to identify when a trend reversal is expected based on one minute price action on the SPY. It alerts users to prepare for potential breakout when 5 out of the 6 key optimized parameters are discovered by showing a white L or S. Once all six trigger, it informs the user at the close of that candle with a golden triangle with Pivot Up or Pivot Down. As scalping options is something that is expected to be short in duration, a take profit and stop loss of 30 cents of price actions is established. If five or more parameters occur after the pivot is initiated, then stop losses and take profits are adhered to; however, if there are less, then it waits to take profit or stop the trade, as likely it is just noise and it will finish trend with an additional breakout.
This script has been created to take into account how the following variables impact trend for SPY 1 Minute:
ema vs 13 ema : A cross establishes start of trend
MACD (Line, Signal & Slope) : If you have momentum
ADX : if you are trending
RSI : If the trend has strength
The above has been optimized to determine pivot points in the trend using key values for these 6 indicators
bounce up = ema5 > ema13 and macdLine < .5 and adx > 20 and macdSlope > 0 and signalLine > -.1 and rsiSignal > 40
bounce down = ema5 < ema13 and macdLine > -.5 and adx > 20 and signalLine < 0 and macdSlope < 0 and rsiSignal < 60
White L's indicate that 5 of 6 conditions are met due to impending uptrend w/ missing one in green below it
Yellow L's indicate that 6 of 6 conditions still are met
White S's indicate that 5 of 6 conditions are met due to impending downtrend w/ missing condition in red above it
Yellow S's indicate that 6 of 6 conditions still are met
After a downtrend or uptrend is established, once it closes it can't repeat for 10 minutes
Won't open any trades on last two minutes of any hours to avoid volatility
Will close any open trades going into last minute of hour to avoid large overnight random swings.
Simple Moving Averge StrategySimple Vs. Exponential Moving Averages
Formula for Exponential Moving Average (EMA)
\begin{aligned} &\begin{aligned} EMA_{\text{Today}}=&\left(\text{Value}_{\text{Today}}\ast\left(\frac{\text{Smoothing}}{1+\text{Days}}\right)\right)\\ &+EMA_{\text{Yesterday}}\ast\left(1-\left(\frac{\text{Smoothing}}{1+\text{Days}}\right)\right)\end{aligned}\\ &\textbf{where:}\\ &EMA=\text{Exponential moving average} \end{aligned}
EMA
Today
=
(Value
Today
∗(
1+Days
Smoothing
))
+EMA
Yesterday
∗(1−(
1+Days
Smoothing
))
where:
EMA=Exponential moving average
While there are many possible choices for the smoothing factor, the most common choice is:
Strategy BackTest Display Statistics - TraderHalaiThis script was born out of my quest to be able to display strategy back test statistics on charts to allow for easier backtesting on devices that do not natively support backtest engine (such as mobile phones, when I am backtesting from away from my computer). There are already a few good ones on TradingView, but most / many are too complicated for my needs.
Found an excellent display backtest engine by 'The Art of Trading'. This script is a snippet of his hard work, with some very minor tweaks and changes. Much respect to the original author.
Full credit to the original author of this script. It can be found here: www.tradingview.com
I decided to modify the script by simplifying it down and make it easier to integrate into existing strategies, using simple copy and paste, by relying on existing tradingview strategy backtester inputs. I have also added 3 additional performance metrics:
- Max Run Up
- Average Win per trade
- Average Loss per trade
As this is a work in progress, I will look to add in more performance metrics in future, as I further develop this script.
Feel free to use this display panel in your scripts and strategies.
Thanks and enjoy :)
Strategy: Combo Z ScoreStrategy version of Combo Z Score
Objective:
Can we use both VIX and MOVE relationships to indicate movement in the SPY? VIX (forward contract on SPY options) correlations are quite common as forward indicators however MOVE (forward contract on bonds) also provides a slightly different level of insight
Using the Z-Score of VIX vs VVIX and MOVE vs inverted VIX (there is no M of Move so we use inverted Vix as a proxy) we get some helpful indications of potential future moves. Added %B to give us some exposure to momentum. Toggle VIX or MOVE.
If anyone has a better idea of inverted Vix to proxy forward interest in MOVE let me know.
Noticeable delta is that Vix only approach over the back test period is slightly better. Questions would be, what is the structure and nature of the market over the test period and in a bear market would MOVE or combined perform better.
RSITrendStrategyI don't know if there is any strategy based on RSI cross over. The strategy is designed based on RSI crossover, considering RSI(5) and RSI(11), with RSI(6) to identify highs & lows.
I used this strategy to trade in Nifty 50 & Nifty bank indices. Whenever there is long mentioned on chart, I go for buying call option with premium near to 300, and placing stoploss of 50 on candle closing basis, vice versa.
Target is open until short is mentioned on the chart. Sometimes, i used standard pivot points as well to mark my targets and also to trail my trades.
Double Bollinger Binary OptionsThis script uses 2 Bollinger bands and rsi oversold and overbought region to give signals. Basically, it detects those conditions where the market gets spiked in one direction aggressively(mostly during news) and then reverses back, although signals occur less frequently, this strategy is worth trying. Keep the timeframe for 5 minutes and trade for 5 candles i.e. 25 minutes :)
Top 40 High Low Strategy for SPY, 5minThis strategy is developed based on my High Low Index SPY Top 40 indicator
Notes:
- this strategy is only developed for SPY on the 5 min chart . It seems to work with QQQ as well, but it isn't optimized for it
- P/L shown is based on 10 SPY option contracts, call or put, with strike price closest to the entry SPY price and expiry of 0 to 1 day. This includes commissions (can be changed). This is only an estimate calculated using an arbitrary multiplier factor, this can be changed in the setting
- P/L is based on $5000 initial capital
- Works with both regular / extended trading session turned on/off. However, max drawdown is 1/2 with extended trading session ON
- there is still a bug that doesn't allow alert to be created due to calculation error, will update once fixed
This strategy combines signals from the following indicators to determine entry signals:
- High Low Index SPY Top 40
- MACD
- Linear Regression Slope
Entry signal is triggered when:
- High Low Index line crosses the EMA line
- MACD trending in the same direction
- Linear Regression slope is accelerating above a threshold in the same direction, indicating a strong trend
Profit target(PT) and stop loss(SL) are determined using ATR value, with 2:1 Reward to Risk ratio as default.
Exit signal may be triggered prior to PT or SL trigger when:
- High Low Index SPY Top 40 shows a reversal after overbought or oversold conditions (optional)
- Opposite entry signal is triggered
There are a number of optional settings:
- Turn on/off "option trading", P/L will be calculated using share price only without multiplication factor for trading option contracts
- # of options per trade, default to 10
- Reinvest with profit made
- Trade with trailing SL after PT hit
- Take profit early based on Top 40 overbought/oversold
- Trade 0/1 day expiry. This will signal exit by the end of the day on Mon/Wed/Fri, and only exits 1/2 of positions (if in profit) on Tues/Thurs
- Can reduce the SL level without impacting PT
- No entry between 10:05 - 10:20 (don't ask me why, but statistically it performs better)
Consider donating me some of your profit if you make $$$ hahaha~ ;)
Enjoy~~
BO - Bar's direction Signal - BacktestingBO - Bar's direction Signal - Backtesting Options:
A. Factors Calculate probability of x bars same direction
1. Periods Counting: Data to count From day/month/year To day/month/year
2. Trading Time: only cases occurred in trading time were counted.
B. Timezone
1. Trading time depend on Time zone and specified chart.
2. Enable Highlight Trading Time to check your period time is correct
C. Date Backtesting
* Only cases occurred in Date Backtesting were reported.
D. Setup Options & Rule
1. Reversal after 2 bars same direction
* Probability of 3 bars same direction < 50
* 2 bars same direction is start of series
2. Reversal after 3 bars same direction
* Probability of 4 bars same direction < 50
* 3 bars same direction is start of series
3. Reversal after 4 bars same direction
* Probability of 4 bars same direction < 50
* 3 bars same direction is start of series
4. Reversal after 5 bars same direction
* Probability of 5 bars same direction < 50
* 4 bars same direction is start of series
5. Reversal after 6 bars same direction
* Probability of 6 bars same direction < 50
* 5 bars same direction is start of series
RSI Binary StrategyAnother basic strategy most people learn at the beginning of their trading carreer (like me) is the RSI strategy. This is an adaptation of the built-in RSI strategy for use in binary options. Who knows, maybe one day i will graduate to CFD trading, but my time for trading in general is limited at the moment and I am very much still at the beginning of this entire topic.
The rather specific values for the RSI bounds and length I saved have been developed for the EURUSD short term (5min.) interval, giving the highest amount of winning vs. loosing trades as of the publishing date of this script, which is the only important factor for binary options in my understanding. Use at your own risk.
Feel free to comment, give me pointers and/or recommendations.
Channel Break Out Binary StrategyI am learning pine script at the moment and this is my first attempt at creating an expire time based strategy for binary options based on a simple example like the built-in Channel Break Out Strategy.