BE-NSE-Distributed Straddle Intraday Trading StrategyHerewith publishing the script (not the Indicator!) for the benift of Option Traders. I call this a script as this doesn't perform any kind of analysis of candle data and provide general BUY | SELL information. This Script is based on the TRUE VALUES concept which is nothing but LTP.
Idea Behind this Script:
As an option seller i need the lower risk option premium to trade. so that, time can work in our favor. basic question which we get at the first is which option to choose out of many available.
If traders feel the question is apt then this script is for them.
Logic Behind this script:
Upon Market Open, script in the BACKEND ( Under the hood ) deployes 60 possible combinations of STRADDLES for sampling, and continue to monitor the LTP movements and compares it against opposite pairs. lets say out of 30 Straddle options one of the Straddle it picked is ATM CE VS ATM PE. for 1 rs move in underlying how much impact is happening in CE VS PE.
This simple anlysis is done at every 30 seconds. once the Analysis is complete it picks 4 options 2 on the CALL side and 2 on the PUT side, which script feels the movement of prices are smooth. SMOOTH refers that time decay that can work in our favor..
Calculations behid the script:
lets say BNF LTP is 52000 at 9:20 AM, and one of the pair script took for sampling was ATM CE vs PE which are having the LTP of 100 each.
At 9:35 AM, BNF is trading at 52075, and ATM CE is reading the LTP of 122 and ATM PUT is reading the LTP of 70. ideally LTP of Call should be around 135 and Put should be around 65 considering the usual delta of 0.48 . Net Money Index for this Pair Sample is 8
Call Side => 100 - 122 = -22
Put Side => 100 - 70 = 30
Money Index => 30 - 22 = 8 for 15 Min
This Money index is calculated across choosen samples and the Option strikes is provided as an output which has mere possiblity of working in Options Seller's favor.
How to Read the Output:
For the choosen strikes from the time of Entry (Suggested Entry time by script) till the current time, the bottom pane plots the Money index as columns. Green Columns indicate that how much option premium eroded due to time decay. Red Columns indicate that how much Option premium increased during the time.
Note: Script dynamically calculate the strikes and suggests in realtime.
WARNING or a Humble Request:
For those who don't understand the word "Repaint" how it works in Pine Script. plz don't consider using this script. For those who wish to understand I have kept the Observer mode in the settings which shall guide you on why the Money Index shown on the chart when the MARKET IS CLOSED is different than when the MARKET IS OPEN (Realtime).
Disclaimer:
I have tested the script only in BNF and not sure if this works on Nifty, FinNifty or others. you may still try and plz do provide the feedback for improvising the script.
----- BreathEasy --------
The information contained in my scripts/indicators/ideas does not constitute financial advice or a solicitation to buy or sell any securities of any type. I will not accept liability for any loss or damage, including without limitation any loss of profit, which may arise directly or indirectly from the use of or reliance on such information.
All investments involve risk, and the past performance of a security, industry, sector, market, financial product, trading strategy, or individual’s trading does not guarantee future results or returns. Investors are fully responsible for any investment decisions they make. Such decisions should be based solely on an evaluation of their financial circumstances, investment objectives, risk tolerance, and liquidity needs.
My scripts/indicators/ideas are only for educational purposes!
Algorithmictrading
Markov Chain Trend IndicatorOverview
The Markov Chain Trend Indicator utilizes the principles of Markov Chain processes to analyze stock price movements and predict future trends. By calculating the probabilities of transitioning between different market states (Uptrend, Downtrend, and Sideways), this indicator provides traders with valuable insights into market dynamics.
Key Features
State Identification: Differentiates between Uptrend, Downtrend, and Sideways states based on price movements.
Transition Probability Calculation: Calculates the probability of transitioning from one state to another using historical data.
Real-time Dashboard: Displays the probabilities of each state on the chart, helping traders make informed decisions.
Background Color Coding: Visually represents the current market state with background colors for easy interpretation.
Concepts Underlying the Calculations
Markov Chains: A stochastic process where the probability of moving to the next state depends only on the current state, not on the sequence of events that preceded it.
Logarithmic Returns: Used to normalize price changes and identify states based on significant movements.
Transition Matrices: Utilized to store and calculate the probabilities of moving from one state to another.
How It Works
The indicator first calculates the logarithmic returns of the stock price to identify significant movements. Based on these returns, it determines the current state (Uptrend, Downtrend, or Sideways). It then updates the transition matrices to keep track of how often the price moves from one state to another. Using these matrices, the indicator calculates the probabilities of transitioning to each state and displays this information on the chart.
How Traders Can Use It
Traders can use the Markov Chain Trend Indicator to:
Identify Market Trends: Quickly determine if the market is in an uptrend, downtrend, or sideways state.
Predict Future Movements: Use the transition probabilities to forecast potential market movements and make informed trading decisions.
Enhance Trading Strategies: Combine with other technical indicators to refine entry and exit points based on predicted trends.
Example Usage Instructions
Add the Markov Chain Trend Indicator to your TradingView chart.
Observe the background color to quickly identify the current market state:
Green for Uptrend, Red for Downtrend, Gray for Sideways
Check the dashboard label to see the probabilities of transitioning to each state.
Use these probabilities to anticipate market movements and adjust your trading strategy accordingly.
Combine the indicator with other technical analysis tools for more robust decision-making.
Hybrid EMA AlgoLearner⭕️Innovative trading indicator that utilizes a k-NN-inspired algorithmic approach alongside traditional Exponential Moving Averages (EMAs) for more nuanced analysis. While the algorithm doesn't actually employ machine learning techniques, it mimics the logic of the k-Nearest Neighbors (k-NN) methodology. The script takes into account the closest 'k' distances between a short-term and long-term EMA to create a weighted short-term EMA. This combination of rule-based logic and EMA technicals offers traders a more sophisticated tool for market analysis.
⭕️Foundational EMAs: The script kicks off by generating a 50-period short-term EMA and a 200-period long-term EMA. These EMAs serve a dual purpose: they provide the basic trend-following capability familiar to most traders, akin to the classic EMA 50 and EMA 200, and set the stage for more intricate calculations to follow.
⭕️k-NN Integration: The indicator distinguishes itself by introducing k-NN (k-Nearest Neighbors) logic into the mix. This machine learning technique scans prior market data to find the closest 'neighbors' or distances between the two EMAs. The 'k' closest distances are then picked for further analysis, thus imbuing the indicator with an added layer of data-driven context.
⭕️Algorithmic Weighting: After the k closest distances are identified, they are utilized to compute a weighted EMA. Each of the k closest short-term EMA values is weighted by its associated distance. These weighted values are summed up and normalized by the sum of all chosen distances. The result is a weighted short-term EMA that packs more nuanced information than a simple EMA would.
Protervus Trading ToolkitHi Traders! Welcome to Protervus Trading Toolkit (PTT) , a comprehensive set of tools to help you building, backtesting, and even automating your strategy.
Important : the data and screenshots I publish are solely for presentation and explanation purposes and must not be intended as recommendations or guarantees. Please consider eventual backtesting results seen here as almost-random. My goal is not to provide ready-made strategies, signals, or infallible methods, but rather indicators and tools to help you focus on your own research and build a reliable trading plan based on discipline.
BUILD, BACKTEST, AUTOMATE
The first step is to link a chained indicator which will send Entry signals and, optionally, Exit signals: to integrate your own triggers with this toolkit, check out my tutorial and use this code as a template.
Then, in the Trading Settings you can set the Trading Mode (Full - Long and Short, Long only, or Short only) as well as Starting Capital, Drawdown Limit, Risk per Trade, Fees, and the date range in which trading will be enabled and backtested.
Go further by tweaking your strategy with built-in Take Profit and Stop Loss conditions, and keep it under control thanks to the Statistics Panel.
Trades will be shown on the chart, including TP\SL levels (according to the ones you enable) and per-trade statistics:
Tip: point the cursor over TP or SL icon to open the tooltip, showing additional details about the trade.
BUILT-IN CONDITIONS
Note: all conditions already account for fees.
Take Profit \ Stop Loss percentage
Take Profit or Stop at Loss when a fixed percentage is reached.
Limit \ Hard Stop: the trade will be considered closed when that specific price is reached - otherwise, the candle closing price will be used.
Trailing Take Profit
Trail the price and close the trade in profit when it reverses for the chosen percentage.
Engage and Disengage: activate trailing when the price is above the entry price for the chosen percentage, and de-activate it if price goes past the disengage percentage.
Safety TP: close the trade at Break-Even if the price sharply reverses from engaged area to BE level. A specific Alert is available in order to create a separate trigger with immediate effect.
Note: using TP Safety with an Engage % of zero might result in many early exits, so it is recommended to add some margin to Engage % to avoid that.
Exit \ Stop on Opposite Signal
Close the trade when another, contrary signal is received (e.g. close a Long position when a signal to go Short is received).
Exit \ Stop after X candles
Close the trade after X candles, as soon as the condition is met (e.g. for Take Profit condition, it will close the trade after X candles as soon as the trade is in profit).
Bind to TP \ SL: only validate the condition if the current PnL is above (TakeProfit cond.) or below (Stop Loss cond.) the specified percentage.
ATR Stop
Classic ATR Stop Loss.
Trailing ATR
Chase the price by the defined ratio and close the position when the candle closes past the ATR line.
Bind to TP \ SL: only validate the condition if the current PnL is above (TakeProfit cond.) or below (Stop Loss cond.) the specified percentage.
External Signal (sent from your indicator)
Close the position basing on your own triggers, defined in the chained indicator.
- Bind to TP \ SL: only validate the condition if the current PnL is above (TakeProfit cond.) or below (Stop Loss cond.) the specified percentage.
PANEL CUSTOMIZATION AND ADDITIONAL OPTIONS
A strategy name can be assigned in the settings and will show it at the top of the Statistics Panel, so you can better identify and label your tests and live instances.
The panel can be customized in terms of colors, text size and height. It can be also "split" in modular panels that will appear at the bottom of the chart.
It is also possible to show \ hide prices and live data labels as well as position and Break-Even levels. In some cases you will need to limit the display of those plots in order to avoid PineScript calculation issues.
If you limited the plots but you are checking very old trades, you can enable the Legacy position tracker to see basic markers for positions (position is active, and profit \ loss marker).
In the case you will be sending webhook alerts to a trading bot , "Position Alert Failover" will come in aid to prevent situations where the initial trade closing alert is either not sent or missed: it will keep sending the position closing signal for X candles.
PLUGINS
Thanks to the modular nature of PTT, plugins will eventually be available to provide additional features and extend functionalities even further. Make sure to keep an eye on updates.
CREATING ALERTS
To create alerts you must first select the PTT indicator from the "Condition" drop-down menu, then the whole list of available alerts will appear. When creating alerts, please make sure to set "Once Per Bar Close" for the normal conditions, and "Once Per Bar" for safety conditions (Limit and Hard Stop simulation, Trailing TP Safety Trigger).
Besides positions opening and closing alerts, you also have the option to add extra alerts for when a position is open or not open (e.g. Active Long position, No Long Position) - that might come handy when dealing with trading bots and automation tools. Also, as mentioned earlier, you have the chance to create a special alert as failover in order to repeat the closing alert.
TIPS AND RECOMMENDATIONS
Set Visual Order > Bring to front for PTT to avoid other indicators or candles covering up labels.
If you receive errors like "Referencing too many candles" or "Too many drawings", use the " Limit to last candles " function in the Settings panel to lower the number of candles.
If the Statistics Panel or labels are not appearing, and no errors are shown (red circled exclamation mark next to indicator's name), try changing any value in the settings to trigger a new calculation.
The Lowest Point in Trades refers to the maximum movement against your position. However, if the price never goes negative against the Entry level, it will be calculated from the Break-Even level.
Differently from TradingView's Strategy Tester, PTT calculates DrawDown from the Equity line (the starting balance).
Remember that Backtests only show past results, and although very useful to understand if your strategy makes sense, the market can completely change at any moment and ruin your dreams: make sure to avoid over-fitting (using very specific values) in your settings and to prefer more generic values in order to factor broader market situations.
After many successful backtests of your newly created strategy, let it run live without actually trading it for some time (paper trading), and see if it remains valid.
You can use multiple Conditions as safeguard. For example, main Stop condition can be Trailing ATR and secondary Stop condition can be Stop Loss % with Hard Stop, so you will be protected in case of sudden big price moves.
EngineeringRobo DeluxeToday we are releasing the EngineeringRobo Deluxe!
New advanced trading tools for traders and investors. The new Robo 4 is extremely powerful !
It works perfectly with other existing strategies as an add-on feature. EngineeringRobo Deluxe has seen major improvements in accuracy of levels, speed and intelligence to detect the best possible trade setups.
This script is equipped with
🔵 EngineeringRobo 4
It offers strategic trading entry and exit points, so you can preserve capital before markets tumble, and take full advantage as they start to rebound. At a glance, market timing indicators tell investors whether market conditions are right or whether it’s safer on the sideline.
Truly unique tool for technical analysis for the financial market as it includes calculation of specific metrics like SAR + MACD + Price Movement.
You no longer have to worry about spending hours in front of the computer looking for a trade.You can use the indicator on every assets available on your broker.
🔵 Change Candle Color
You can change the colors depending on buy 4 and sell 4 signals. It helps traders a lot to see the direction clearly.
🔵 BB Signals :
This strategy uses the MACD indicator together with the Bollinger Bands to sell when the price is above the upper Bollinger Band (and to buy when this value is below the lower band). This simple strategy only triggers when both the MACD and the Bollinger Band indicators are at the same time in a overbought or oversold condition.
Removed Upper & Lower bands & SMA20 from the charts.
To see bands, You can activate the Bollinger Bands on EngineeringRobo - not the Deluxe version.
If you are buying it with BB BUY, No need to wait for BB Sell to sell it. Vice versa.
They are not the opposite to each other. Get your profit at your target level and move on.
🔵 Ultimate MA crossover signals :
As a general guideline,the idea behind trading crossovers is that a short-term moving average above a long-term moving average is an indicator of upward momentum in a stock & crypto , and the opposite is true about a short-term average trading below a long-term average.
For this guideline to be of use, the moving average should have provided insights into trends and trend changes in the past.
Are the settings of SMA 50 & SMA 200 really the best for Golden Cross and Death Cross?
Have you ever tested ROI for MA cross strategies?
Do you think MA 20 and MA 50 are the best pair for traders?
Do you know that Exponential Moving Average ( EMA ) beats the Simple Moving Average ( SMA ) ?
In order to answer these questions we applied some brute mathematical force and tested 1830 different MA combination to find out the best pair through 50 years of data across stock / forex and 5 years of data across crypto markets . We have done the hard work and you get the benefits .
P.S. The oldest date is 1872 on SPCFD:SPX chart on tradingview . Almost 150 years of backtesting is possible from 1872 to 2020!
🔵 Cloud Signals :
This is a strategy made from ichimoku cloud , together with MACD . Changed Ichimoku cloud formula. Based on that we have a long or a short entry.
it is an effective strategy when paired with a trailing stop loss. Removed standard line ( Kijun Sen ), turning line ( Tenkan Sen ), lagging line ( Chikou Span ) and senkou lines, added buy & sell signals. Traders can use EngineeringRobo's cloud to see the clouds on the chart.
This method doesn't work in sideways markets, only in volatile trending markets.
🔵 EMA TrendLines & Custom Moving Average :
Moving averages help traders isolate the trend in a security or market, or the lack of one, and can also signal when a trend may be reversing. Two of the most common types are simple and exponential. We will look at the differences between these two moving averages, helping traders determine which one to use. Simple moving averages and the more complex exponential moving averages help visualize the trend by smoothing out price movements.
Each trader must decide which MA is better for his or her particular strategy. Many shorter-term traders use EMAs because they want to be alerted as soon as the price is moving the other way. Longer-term traders tend to rely on SMAs since these investors aren't rushing to act and prefer to be less actively engaged in their trades.
🟠50 And 200 Day Moving Average Rules
Trend reversal (downtrend to uptrend) - MA 50 crossover MA 200 from below.
Trend reversal (uptrend to downtrend) - MA 50 crossover MA 200 from above.
Weekly open –close above MA 20 ( bullish trend )
Weekly open –close below MA 50 ( Bearish trend )
Super Bullish : The candle is above MA 20 ( Daily )
Bullish : MA 50 Above MA 100 ( Daily )
Bearish : MA 50 below MA 100 ( Daily )
🔵 Fear & Greed Index
This strategy uses two unique EMA indicators in the formula.
1. Use the indicator to identify when investors are greedy.
2. Use the indicator to identify potential bottom levels
For best testing example:
Open BLX Chart, pick 1D time frame, open only FEAR & Greed Index
🟢Green Area : Ready to buy a lot of cryptocurrencies
🔴Red Area : Ready to sell a lot of cryptocurrencies
Price crosses above red line = Entering overbought zone
Price crosses below red line = Exiting overbought zone
Price crosses below green line = Entering oversold zone
Price crosses above green line = Exiting oversold zone
🔵 Automated Trend Channel Lines
It’s 2020 and you are still drawing lines?
The automated trend lines helps you find the best trend lines and you can stop re-drawing over and over. You don't need to flip back and forth between different timeframes. You can let your robo advisor do the work for you.
🔵 Dynamic Support and Resistance Levels
On the most fundamental level, support and resistance are simple concepts. The price finds a level that it’s unable to break through, with this level acting as a barrier of some sort. In the case of support, price finds a “floor,” while in the case of resistance, it finds a “ceiling.”
Basically, you could think of support as a zone of demand and resistance as a zone of supply.
While more traditionally, support and resistance are indicated as lines, the real-world cases are usually not as precise. Bear in mind; the markets aren’t driven by some physical law that prevents them from breaching a specific level. This is why it may be more beneficial to think of support and resistance as areas. You can think of these areas as ranges on a price chart that will likely drive increased activity from traders.
🔵 Automated Fibonacci Retracements
Automatic Fibonacci let you replace subjective manual analysis with objective automated analysis so you always get the best Fibonacci levels, this can really improve the quality of your trading decisions.
Fibonacci retracements are often used to identify the end of a correction or a counter-trend bounce. Corrections and counter-trend bounces often retrace a portion of the prior move. While short 23.6% retracements do occur, the 38.2-61.8% zone covers the most possibilities (with 50% in the middle). This zone may seem big, but it is just a reversal alert zone. One of the best ways to use the Fibonacci retracement tool is to spot potential support and resistance levels and see if they line up with Fibonacci retracement levels.
Even though Fibonacci levels are extremely popular among technical traders, one should not rely solely on Fibonacci retracement and extension levels in trading. Fibonacci tools return the best results when combined with other technical tools, such as trendlines , chart patterns, candlestick patterns, channels or technical indicators.
If you are following any EngineeringRobo Deluxe signals, you should always wait for the candle close before buying or selling.
The signal can come and go anytime during the live candle. ALL indicators do that, that is not considered repainting.
Repainting is when a signal appears, the candle is closed, and when you refresh the chart it disappeared. It is logical that until the candle is closed the signal is not decided yet, hence the alert setup as Once per bar Close.
Deluxe never repaints! Yes, you heard it right: you will never have to worry about signal changing after the candle is closed.
*** Added alarm system alerts for all signals.
________________________________________________________________________ Timeframes _____________________________________________________________________
Our recommendations to get the best results:
Swing Trading Crypto : Use 1D Time Frame Candles
Swing Trading Stocks : Use 1W Time Frame Candles
Swing Trading Commodities : Use 1W Time Frame Candles
Day Trading Crypto : Use 3H Time Frame Candles
Day Trading Stocks : Use 1D Time Frame Candles
Day Trading Commodities : Use 1D Time Frame Candles
Not recommended any other time frames.
What Is Risk-Reward Ratio RRR?
Your risk-reward ratio is how much you risk per trade, relative to how much you expect to make (reward).
When trading with Robo , you should always aim for a bigger reward compared to your risk per trade.
A good rule is only to risk 1% per trade for day traders and 5% per trade for swing trader . Robo follows strong risk management rules on the algorithm .
One of the biggest advantages of algo trading is removing human emotion from the financial markets,humans trading are susceptible to emotions that lead to irrational decisions. Robo doesn't have to think or feel good to make a trade. If conditions are met, it enters.When the trade goes the wrong way or hits a profit target, It exits. It doesn't get angry at the market or feel invincible after making a few good trades.
EngineeringRobo gives you all the tools and information you need for day-to-day trading and investing, while also keeping a great buy and sell signals! No excuse to lose in any financial market anymore! Try now!
How can you add the algorithm into your chart?
1. Login to TradingView.com
2. From the homepage, click on ‘Chart’ in the top navigation bar
3. Select “Indicators” on the top-center-middle panel
4. In the indicator library, type "EngineeringRobo Deluxe "
5. Use the website link below to obtain access to this indicator
The indicator will be added to your chart after It is approved.
TeoTrading 17-C.1 - 108. Algorithmic Trading Long Signals.This indicator mark patterns that were successful in the past, based on Algorithmic Trading and backtesting.
This Script is for Private Use.
It was designed for Long Signals.
Was developed and tested with Argentinians and Nasdaq stocks.
Includes Real Time Stastistics.
No purchase recommendations are given. The user must do their own analysis to decide whether to buy.
"A" signal is to make the Analysis. Here the user will see a Yellow Candle.
"V" signal is to Sell. Here the user will see:
- A Green Candle: Sell with Gain using a fixed Stop Gain.
- A Blue Candle: Sell with Gain using a dynamic (variable) Stop Gain.
- A Fuchsia Candle: Sell with lost.
The Orange Candle indicates that a trade is open.
The user can filter by differents types of moving averages using input parameters.
Includes Alerts.
TeoTrading 17 - 106. Long Signals based on Algorithmic TradingThis indicator mark patterns that were successful in the past, based on Algorithmic Trading and backtesting.
This Script is for Private Use.
It was designed for Long Signals. Was developed and tested with o group of stocks:
- Argentine Stocks of different sectors: Bank, Energy and Industry.
- Nasdaq technology stocks.
- Petroleum.
Includes Real Time Stastistics.
No purchase recommendations are given. The user must do their own analysis to decide whether to buy.
"A" signal is to make the Analysis. Here the user will see a Yellow Candle.
"V" signal is to Sell. Here the user will see:
- A Green Candle: Sell with Gain using a fixed Stop Gain.
- A Blue Candle: Sell with Gain using a dynamic (variable) Stop Gain.
- A Fuchsia Candle: Sell with lost.
The Orange Candle indicates that a trade is open.
Includes Alerts.
Enabled users will obtain a complete manual.
THE QUANTUM TRADER BITCOINThe Quantum Trader is a Algorithmic Automated Trading System that trades XBTUSD and BTC/USD with an emphasis on minimizing risk.
This algorithm trades multiple of our individual algorithms in an attempt to have a large number of uncorrelated algorithms trading concurrently,
thereby smoothing out the equity curve in an attempt to provide more consistency in the returns.
The Quantum trader utilizes swing trading algorithms along with day trading algorithms which can enter positions either Long or Short, and
take profits either Long or Short depending on market characteristics.
The Quantum Trader was built for automated trading, but can be used for manual trading also.
The Quantum Trader was designed to be used with Heikin Ashi candles on 3H chart. Indicator uses security function for profit points so alerts will give a warning
however, gaps are OFF and Lookahead is ON and trades are entered, and profits are taken at candle close.
Trades are placed following a strict algorithm, and nothing is left to subjective opinion.
The Quantum Trader utilizes a sophisticated pattern recognition algorithms that have been rigorously tested, and has been traded live since March 2019
When compared to other algorithmic trading systems, the quantum trader places fewer trades which helps contribute to the smaller draw down seen in the back-testing.
Algorithmic Trading Strategy Compared to Paid Signal Groups and Online Trading Classes
While there is an appeal to paid signal groups, and online trading classes. Most of the trading tips and signals you find online are sadly too basic and lacking an analytical approach to defend the statements which are made.
Comments are made and repeated that simply don’t have any empirical evidence to back them up.
In algorithmic trading back-testing and monthly system overviews is (or should be) part of the design methodology, the strategy will be analyzed for multiple time periods to include bull and bear markets.
We test and trade our algorithms across multiple market cycles to include Bear and Bull markets.
With Algorithmic Trading, nothing is left to interpretation. The algo will place trades as it sees fit and will attempt to generate positive returns as trades are methodically placed on individuals accounts.
There is no staring at charts, no drawing of trend lines , no signals to take and all the negative emotions involved with trading are minimized.
Lastly, the potential for human errors is minimized since trades are placed automatically by the Automated Trading System as opposed to signals learned in an online trading course or signals received.