Tripple EMA Strategy - Dhan HQ

Here with presenting the new Indicator (Strategy) which is primarily built based on the the EMA moving Average and Candlestick Pattern.
Idea behind this Indicator: I am sure every trader would have traded using Moving average one day or the other. And Moving average is theoretically they are Lagging and the EMA are used in place of Moving average just to avoid a bit of Lag to take advantage of those accuracy while avoiding the Lag. In order to be successful in trading Money Management and Risk Management is very much crucial and should be part of every trade we place.
What this indicator is providing:
Based on the EMA and candlestick patterns and using the inputs provided for RISK and Money Management options, Indicator continuously scans for trading opportunities and provides alerts for possible trades. I have tried to capture some analytical inputs for one to think and take control over the Reward, Risk and Money management parameters to tweak the indicator accordingly.
Below are the Analytical outputs provided:
1. Total Trades taken (History till present) and its profitability % & appx PNL
2. Current Dates & Yesterday's Trades along with its appx PNL
3. Long Trades performance vs Short Trades performance
4. Retrieve PNL values post specified Date in the Input settings.
5. Last 7 Days PNL
6. Month's PNL
Note: There is known BUG in the calculation where the first date of the month for Monthly PNL value is a trading Holiday then Monthly PNL is being displayed as 0. similarly this Bug is flowed for Last 7 Days PNL. This will be addressed in upcoming version along with planned release.
Alerts & Notifications:
There are basically 2 types of Alerts provided one with General Notification and Other with Dhan HQ notifications to support Algo Trades for Dhan HQ Baskets.
Overview for Dhan HQ Trade Alerts:
1. When the Day Beginning (At Session Start) Hedge Position can be placed and shall be squared off post Closing the session
2. During the course of the Day Buy & Sell Baskets shall be executed
3. Can map the Trade Level SL values
4. Can map Daily Limit for SL to avoid excessive Loss. Upon Loss you could stop trades for the complete day or you may restart the trade post completion of X no of hours.
Enjoy!
DISCLAIMER: No sharing, copying, reselling, modifying, or any other forms of use are authorized for our documents, script / strategy, and the information published with them. This informational planning script / strategy is strictly for individual use and educational purposes only. This is not financial or investment advice. Investments are always made at your own risk and are based on your personal judgement. I am not responsible for any losses you may incur. Please invest wisely.
Happy to receive suggestions and feedback in order to improve the performance of the indicator better.
1. Smoothened the Entry time to avoid Freak movements in prices during Entry Times.
2. Trade Analysis table is now optional and can be enabled or disabled at wish.
Note: Session Start & End time should be divisible by chart timeframe so that alerts come on time. for Eg. If Session Start is set as 09:15 and Alerts are set using 5 min Chart. Alerts on Start of session will trigger at 09:15:01
however, if Session Start is set to any value between 09:16 to 09:19 and Alerts are set using 5 min Chart. Alerts on Start of session will trigger at 09:20:01.
THANKS
Happy to receive suggestions and feedback in order to improve the performance of the indicator better.
1. If Day Loss is set to 5K and Net Today's PNL including the current running trade PNL is crossing 5K then Current Trade will be Closed accordingly.
Regards
1. Improved the coding Algorithm to improve real-time slippages on the Exits.
2. Inside Bar Trading is implemented and kept optional. If Enabled trades will be executed based on the Mother Candle
Thanks for the continued Suggestions.
Thanks for continued suggestion.
1. Hedge Leg Entry will now gets executed before the first transaction.
2. Hedge Leg Exit will be based on the Running trade. If Trade is running then squares it off based on the closing session time else at No Fresh entry time.
3. Child Candle Entry Threshold is now customizable.
Thanks for the suggestions and feedback
1. Now you can trade between 2 sessions.
2. Alerts now support AlgoJi platform so that you can trade either using EQ, Futures or Options.
3. Implemented Trail SL and kept optional to use it or not.
4. Now you can choose between trading Only Long or Only Short or Both trade Types.
5. TradeLog is made available to help you analyze the trades happened in the Past.
Happy Trading!!!
1. BUGS on Alerts for Session start and end repeatedly occurring has been fixed.
2. PNL post specific date has been incorporated.
3. Traded Log Changes
1. Now you can perform PNL analysis for period specific.
Happy Trading!!
1. BUGS fixed: PNL calculation on the Notification was reading incorrect Values
2. Improved Algorithm of codes.
3. Alerts are now compact.
1. Improved the Main Algorithm to perform the calculations and keep the indicator as light as possible without compromising on the performance. (Cleaned up variables, kept most of the analysis functions to perform only when the market is closed.
2. Added protection Leg for AlgoJi (Optional). If in case price direction is changed in midway or due to any reason you are bound to hit by a SL Protection Leg gets triggered to work in your fervor.
3. Kept the table more compact to show only required information.
Minor Updates:
1. Bugs Fixed - Calculation time out error.
1. BUG Fix : Few Sessions gets out of focus hence Day wise PNL were not shown. Now Day wise PNL will show post 15:30 or 23:59 for Crypto market session
2. Minor Algorithm change to tackle slippages in entry screening condition.
Happy Trading!!
1. Now you can place Options Legs based on Spot from Futures Chart or vise versa.
2. Protection Legs Entry Exit points are shown on the chart.
Happy Trading!!!
1. Entry Setups are Calculated on Realtime Basis.
2. Alerts are triggered on the Realtime Setups.
Happy Trading!!!
Slight changes in back-test entry Logs.
1. BUG FIXED : Hedge Legs Not getting closed during the session.
2. Trade Entry & Exit visualization is enabled even If main trade is closed and protection Leg trade is running.
Happy Trading!!!
1. BUGS Fixed: PE Strike Prices have been Adjusted
2. AlgoJi Alerts has been improvised
Happy Trading.
1. AlgoJi Future Alerts : Multiple Alerts for each leg has been combined into Single Alerts wherever possible.
2. Session Close Start Bug has been fixed.
3. Few Days of PNL incorrect on Detailed trade Log has been rectified.
1. Integrated with Dhan API Bridge, Next Level Bot (Fyers & Finvasia)
Happy Trading!!!
1. Fixed the search string for Dhan API bridge for futures.
2. Protection Option Leg's Max Qty reset.
Happy Trading!!!
1. BUG FIX : Fixed the blank Alerts during Setup Finding Stage.
Skrip jemputan sahaja
Hanya pengguna yang diberikan kebenaran oleh penulis mempunyai akses kepada skrip ini dan ini selalunya memerlukan pembayaran. Anda boleh menambahkan skrip kepada kegemaran anda tetapi anda hanya boleh menggunakannya selepas meminta kebenaran dan mendapatkannya daripada penulis — ketarhui lebih lanjut di sini. Untuk lebih butiran, ikuti arahan penulis di bawah atau hubungi TradeWiseWithEase secara terus.
TradingView tidak menyarankan pembayaran untuk atau menggunakan skrip kecuali anda benar-benar mempercayai penulisnya dan memahami bagaimana ia berfungsi. Anda juga boleh mendapatkan alternatif sumber terbuka lain yang percuma dalam skrip komuniti kami.
Arahan penulis
Amaran: sila baca panduan kami untuk skrip jemputan sahaja sebelum memohon akses.
Penafian
Skrip jemputan sahaja
Hanya pengguna yang diberikan kebenaran oleh penulis mempunyai akses kepada skrip ini dan ini selalunya memerlukan pembayaran. Anda boleh menambahkan skrip kepada kegemaran anda tetapi anda hanya boleh menggunakannya selepas meminta kebenaran dan mendapatkannya daripada penulis — ketarhui lebih lanjut di sini. Untuk lebih butiran, ikuti arahan penulis di bawah atau hubungi TradeWiseWithEase secara terus.
TradingView tidak menyarankan pembayaran untuk atau menggunakan skrip kecuali anda benar-benar mempercayai penulisnya dan memahami bagaimana ia berfungsi. Anda juga boleh mendapatkan alternatif sumber terbuka lain yang percuma dalam skrip komuniti kami.
Arahan penulis
Amaran: sila baca panduan kami untuk skrip jemputan sahaja sebelum memohon akses.