Algomojo V1.0Library "Algomojo"
This library brings faster access to Automate trades. It simplifies the execution rules and helps
traders to implement faster algo trading strategies.
algomodule()
Alerts
Smoothed Wave ScalperThis one is a little different.
Instead of layering lots of indicators to filter noise, I'm instead using two different kinds of price averaging to smooth the candles and better define the direction. Just select a smoothing value that fits your chart and timeframe. In theory, this should remove a fair bit of noise (although nothing's perfect)
I've managed to determine when the candles change colour, signifying a potential new trend. When the candle colours do change, an alert is fired. It's as simple as that! Wyckoff wave volume analysis is then applied to each alert to validate the move. Further filtering can be achieved using heikin ashi candles if this is your preference.
Alerts are built in for both the candle colour change and the wave filtered signals (long/short). Use long/short for entries and the colour changes for exits.
I'm currently trading with linear regression to help indentify obvious channels and areas of support/resistance. The candles bouncing down off of the upper band can confirm a downward trend, and bouncing off of the lower band can signify an up trend. It's much easier to see with smoothed candles like these and can give you confidence when trading manually. These bands are rendered automatically, but aren't essential to taking a trade.
TWP Chart Period Breaks█ OVERVIEW
This script plots historical and one future vertical line at the higher timeframe.period time mark of your choosing along with the ability to create alerts that ping on the opening of the new bar on the timeframe and during the market session that you have selected. This script adds body to the default "session breaks" that Tradingview provides within the chart settings. It can be a hassle visually keeping track of time when trading but particularly when day trading. Timing is so important and I needed some visual assistance aka some guard rails for my mind to operate in, in order to better execute my trades. I hope this helps you too.
█ CONCEPTS
The script takes some simple steps to plot vertical lines onto your chart with some extra goodies to go the extra yard.
█ FEATURES
1 — Resolution
• Auto / Manual selection
• There is tooltip explains how the automatic time selection operates (see below)
AUTO_TIMEFRAME_TOOLTIP = "When the Auto option is selected, the timeframe of the indicator is chosen automatically based on the chart timeframe. The Timeframe dropdown is ignored. The automated timeframes are:
'10 minutes' for any chart timeframes below '1 minute'
'1 hour' for any chart timeframes starting from '1 minute' up to '5 minutes'
'4 hours' for any chart timeframes starting from '5 minutes' up to '60 minutes'
'1 day' for any chart timeframes starting from '1 hour' up to '4 hours'
'1 week' for any chart timeframes starting from '4 hours' up to '1 day'
'1 month' for any chart timeframes starting from '1 day' up to '1 week'
'3 months' for any chart timeframes starting from '1 week' up to '1 month'
'12 months' for any chart timeframes above '1 month'"
2 — Show Future Period Line
3 — Number of Historical Lines Back
4 — Line Style
• Line color selection
• Line width selection
5 — Alerts
• Market session selection
█ HOW TO USE
• Add it to your chart, select your timeframe, change up your colors, add your alerts (if necessary) and enjoy yourself!
Drawdown strategy indicatorThis indicator uses drawdown and max drawdown to determine good areas to enter or exit the market.
It uses the ratio between those values and two thresholds provided by the user: top and bottom.
These two values will be used to highlight the areas that match the users strategy criteria.
I normally use this indicator on the 4h or higher timeframes.
On BTC using the default parameters it predicts the tops pretty nicely. The areas of accumulation or buy zones are consistent with the ones that follow each halving.
The chart shows:
- Drawdown
- max drawdown
- drawdown average
- drawdown ratio
- buy and sell zones
The study includes alerts for both buy and sell zones.
MTF - Options Strike Price - Screener & AlertsHi fellow traders ,
Pleased to share an MTF – Option Strike Price Screener.
It Screens 15 tickers for your set Strike Prices in the input column or you can also set the Stop Loss/target prices for your portfolio watch list in a single input window.
All you need to do is attach to any chart and set the periodicity of the to your desired alert() frequency requirement.
Now go to the input settings icon of the script and set your tickers, timeframe and option strike prices or if you would like to track your individual ticker stop loss or target prices!
Set the alert from the menu as usual click - Any alert() function call and bingo you are done!!
In all of 2-3 minutes you can set your Option Strike Alerts or TP’s or SL’s for 15 stocks of your portfolio..
Only a single alert() will track 15 tickers across multiple time frames..
Once your Alert is hit you may need to change the input settings and save as default and again set an alert() and delete the last alert()..
No more opening multiple charts and setting individual time consuming alerts().
Happy trading with TV..
Simple Watchlist with % Change Screener & AlertsHi fellow traders..
TV has generously increased the number of alerts!!
A Simple Watchlist with heatmap based on % change on daily timeframe.
Gives % change and RSI
you can set the percentage in the input box and then set alerts on your favorite watchlist.
Alerts also include days high and low..
Simple Table and array based code.
set for scrip close >10 can be easily changed in line 43..
Hope you Like it!
Prophit Ninja: Shuriken DojoMaster the art of entries and exits with "Prophit Ninja: Shuriken Dojo".
Our dojo will set up sparring matches for you to improve your in-battle techniques without you having to track down the fight yourself. Find the strike, dodge and parry you are best at, or keep yourself well rounded to handle any environment by selecting any or all of the possible signal/alert outputs.
═════════════════════════════════════════════════════════════════════════
█ INTERPRETATION
Quickly and easily find/spot trade set ups with custom pre-built signals and alerts. Sit back and allow the market to find the set-ups for you.
═════════════════════════════════════════════════════════════════════════
█ OVERVIEW
Fully adaptable multi time frame signals and alerts based on your Shuriken settings for:
1 — Six RSI formula variations: Original, Prophit Ninja Composite, Absolute Strength, Cutlers RSI, True Strength Index and Stochastic RSI.
2 — Four MACD formula variations: Original, Lagless, Absolute and Absolute Lagless; along with momentum and volume variants of each.
3 — A toggle-able neutral range filter to grey out readings in the neutral range.
4 — An original and physically accurate momentum oscillator .
5 — A custom volatility oscillator.
6 — A custom volume oscillator with built in accumulation/distribution.
7 — A fibonacci adapted formula based on money flow.
8 — A fibonacci adapted formula based on rate of change along with momentum and volume variants.
9 — A histogram easter egg for those who need it.
10 — 11 completely separate indicators built into a quick and easy-to-read display called "Confluence Bands".
(Included free with " Prophit Ninja: Shuriken ".)
═════════════════════════════════════════════════════════════════════════
█ EASY CUSTOMIZATION
i.imgur.com
With a fully customizable and easy-to-use input menu , this indicator gives you the ability to tailor your trading experience to your needs and see as much (or as little) information as you want to; presented in the manner you deem most viable with the following options in just a few clicks:
Color Theme- There are four color themes available which include original, colorful, monochrome and solid. These not only allow you a quick and easy way to change the colors to suit your style; they also make it so you can challenge your bias in an instant by viewing the data in a completely different way.
Attack Modes- Whether you"re a scalper, day trader, swing trader, or investor; this option allows you to see the chart based on four different risk tolerance/time expectancy mentalities in just two clicks. Investors can see what the scalpers are thinking and vice/versa to broaden their decision making and/or hone in when optimal.
Sharpness Levels- This algorithm allows the user to display the data on five different smoothness levels without suffering the inherent lag that accompanies most other indicators. Whether you like to see every tick of a choppy movement, or filter out the false signals into smooth readings, you can do so at any moment.
═════════════════════════════════════════════════════════════════════════
█ PRE-BUILT ALERTS
With Prophit Ninja: Shuriken Dojo's built-in alerts you can enable alerts for any piece of the Shuriken in just a few clicks. These alerts are way more specific and optimized than you can possibly achieve with the custom alert settings. Each checking for multiple possible activation triggers instead of one and populating the message field automatically so you can just click create.
═════════════════════════════════════════════════════════════════════════
As you can see; this dojo has the ability to adapt to any ninja and give those in control of its power the upper hand. Any mode of battle, any opponent, any circumstance- "Prophit Ninja: Shuriken Dojo" was built by our finest architects to improve any trainee and make sure they know when to attack, defend or simply allow the fight to play out by its easy-to-read coloring system. As long as you show up for the matches you"ll have a much better chance of finding sparring matches than when you didn't.
This state-of-the-art add-on is great for experienced traders, those who just started learning to trade, or anyone in between- truly made to suit the needs of any trader, in any moment, with any mindset (along with the other indicators in our Prophit Ninja bundle) you"ll notice an immediate improvement in your Prophit Ninja: Shuriken skill after acquiring it.
═════════════════════════════════════════════════════════════════════════
*everything displayed is part of the Prophit Ninja indicator bundle; this is an otherwise blank chart*
Prophit Ninja: Katana DojoMaster the art of trend reading with “Prophit Ninja: Katana Dojo”.
Our dojo will set up sparring matches for you to improve your in-battle techniques without you having to track down the fight yourself. Find the strike, dodge and parry you are best at, or keep yourself well rounded to handle any environment by selecting any or all of the possible signal/alert outputs.
═════════════════════════════════════════════════════════════════════════
█ INTERPRETATION
Quickly and easily find/spot chart setups with custom pre-built signals and alerts. Sit back and allow the market to find the set-ups for you.
═════════════════════════════════════════════════════════════════════════
█ OVERVIEW
Fully adaptable multi time frame signals and alerts based on your Katana settings for:
1 — Three customizable MA lengths with 12 formula variations and an average MA of the three; each one with the ability to toggle on or off not only itself- but an adaptive glow to filter out volatility, as well as a no lag feature that removes inherit lag that exists in all moving averages.
2 — A toggle-able fibonacci adapted formula based on ichimoku cloud.
3 — A toggle-able fibonacci adapted formula based on ssl channel.
4 — A toggle-able auto fibonacci retracement with a customizable golden pocket level.
5 — A fibonacci adapted formula based on bollinger bands.
6 — A fibonacci adapted formula based on keltner channels.
7 — Adaptive Pivot Point Labels.
8 — A fibonacci adapted formula based on chandelier stops.
9 — A fibonacci adapted formula based on parabolic stop and reverses.
10 — Fibonacci based auto support and resistance levels.
11 — Fibonacci based adaptive auto trendlines.
( Included free with “ Prophit Ninja: Katana ”.)
═════════════════════════════════════════════════════════════════════════
█ EASY CUSTOMIZATION
i.imgur.com
With a fully customizable and easy-to-use input menu, this indicator gives you the ability to tailor your trading experience to your needs and see as much (or as little) information as you want to; presented in the manner you deem most viable with the following options in just a few clicks:
Color Theme- There are four color themes available which include original, colorful, monochrome and solid. These not only allow you a quick and easy way to change the colors to suit your style; they also make it so you can challenge your bias in an instant by viewing the data in a completely different way.
Attack Mode- Whether you’re a scalper, day trader, swing trader, or investor; this option allows you to see the chart based on four different risk tolerance/time expectancy mentalities in just two clicks. Investors can see what the scalpers are thinking and vice/versa to broaden their decision making and/or hone in when optimal.
Sharpness Level- This algorithm allows the user to display the data on five different smoothness levels without suffering the inherent lag that accompanies most other indicators. Whether you like to see every tick of a choppy movement, or filter out the false signals into smooth readings, you can do so at any moment.
═════════════════════════════════════════════════════════════════════════
█ PRE-BUILT ALERTS
With Prophit Ninja: Katana Dojo’s built-in alerts you can enable alerts for any piece of the Katana in just a few clicks. These alerts are way more specific and optimized than you can possibly achieve with the custom alert settings. Each checking for multiple possible activation triggers instead of one and populating the message field automatically so you can just click create.
═════════════════════════════════════════════════════════════════════════
As you can see; this dojo has the ability to adapt to any ninja and give those in control of its power the upper hand. Any mode of battle, any opponent, any circumstance- "Prophit Ninja: Katana Dojo" was built by our finest architects to improve any trainee and make sure they know when to attack, defend or simply allow the fight to play out by its easy-to-read coloring system. As long as you show up for the matches you'll have a much better chance of finding sparring matches than when you didn't.
This state-of-the-art add-on is great for experienced traders, those who just started learning to trade, or anyone in between- truly made to suit the needs of any trader, in any moment, with any mindset (along with the other indicators in our Prophit Ninja bundle) you'll notice an immediate improvement in your Prophit Ninja: Katana skill after acquiring it.
═════════════════════════════════════════════════════════════════════════
*everything displayed is part of the Prophit Ninja indicator bundle; this is an otherwise blank chart*
Light BalanceThe script is simple, going for a color scheme logic which tenderly avoids rigorous signals processing.
For the script to remain simple, logical derivatives are also out; as such, there are no secondary relations built off of primary ones. And it also ignores (unless you do this yourself) the logic in a varying order of lines.
Coloring has been done according to a limited set of relations between the four (4) plotted lines.
Quite a bit of information is capture, as you'll see when looking at line order, crossings, and transparency transitions and their patterns.
The approach makes the relations ones which can be learned over time; you become the algorithm to sort out signals. Ha ha. I know that sounds like a cop out doesn't it. Did I mention it's a simple script?
One thing you might want to play with right away are fills having red and green, and lime and fuchsia. It would be cool to reduce it all down to two (2) colors, but all the boolean relations might have to be listed, and it also may not be possible to cumulatively combine transparency overlays of the same value. Visually, that approach may not result to awaken a useful feature anyway. Also, fill() has its limitations in that it cannot be in a local scope; this includes function wrapped calls to fill(), or calls made using branching logic statements if/elseif, iff(), and var = (cond) ? t_val/exp : f_val/exp. So, to my knowledge, a fill() can not be made to be logically on/off.
Please, enjoy getting some use out of it.
Volume Records + AlertContents
Overall Introduction
Settings menu parameters
Usage
How to use alerts
Limits
Overall Introduction
This indicator is a "volume analysis" tool for confirming the direction and strength of price trend and spotting trend reversals. This tool consists of two parts:
1- The colored graph is a custom volume oscillator which shows the relative changes in volume.
The darkening of the color of the bars is a sign of increasing volume.
2- Triangular labels that show trading volume records over different time periods based on the absolute values of the volume.
By creating an alert, you can be notified of new trading volume records. These records are:
Highest / lowest volume in one year,
Highest / lowest volume in six month
Highest / lowest volume in three month
Highest / lowest volume in one month
Highest / lowest volume in one week
Settings menu parameters
{Short Length} =>
The fast volume MA of the Volume Oscillator.
{Long Length} =>
The slow volume MA of the Volume Oscillator.
{Visual Parameters} =>
Parameters to personalize the appearance of the indicator.
{Alert Conditions Part 01: Highest Records ⏰ } =>
Parameters to customize the alert.
{Alert Conditions Part 02: Lowest Records ⏰ } =>
Parameters to customize the alert.
Usage
This indicator is a "volume analysis" tool for confirming the direction and strength of price trend and spotting trend reversals.
What Is Volume Analysis?
Volume analysis involves examining relative or absolute changes in an asset's trading volume in order to make inferences about future price movements.
A significant price increase along with a significant volume increase, for example, could be a credible sign of a continued bullish trend or a bullish reversal.
The gradual darkening of the bars is a sign of the strength of the trend.
Volume can be an indicator of market strength, as rising markets on increasing volume are typically viewed as strong and healthy.
How to use alerts
Note that by creating an alert, an instance of the indicator, with all your settings, will be activated on the site's server and alerts will be triggered by it.
After that, changing the indicator settings on the chart will no longer affect the alert.
Open the settings window and select the alert conditions as you wish
Click the Create Alert button (or press the A key while holding down the ALT key)
In the Condition section, select the name of the indicator.
Make the rest of the settings as you wish.
Finally, click on the Create button.
It's finished. After a few moments, your alert will be added to the Alerts menu.
Limits
The labels are displayed after the bars close.
Labels are displayed for the last 10,000 bars.
Auto Trendline & Breakout Alert(Linear / Log) Full-VersionContents
Overall Introduction
Does it repaint?
Features
Settings menu parameters
How to setup
Limits
Errors and Performance
Examples
Overall Introduction
This indicator is the best tool for breakout traders.
Drawing and evaluating the trend lines of multiple charts in different time frames is a very time-consuming and tedious task. In addition, being aware of breakouts in the shortest possible time requires constant monitoring.
With this tool, you can draw and classify trend lines in a fraction of a second and by placing an alert on any chart, you can receive notifications about breakouts, wherever you are.
The classification of trend lines is done based on the reaction of the price chart to the trend lines and the analysis of the trading volume.
This indicator is designed to reclassify trend lines with each reaction of the price chart. These lines are classified into 6 levels and these levels are distinguished by different colors. Thus, any touching or crossing of the price chart can make a difference.
Does it repaint?
Any tool that shows trend lines must repaint because trend lines are constantly changing. Some lines lose their strength and new ones are formed, so some lines should be removed and replaced with new lines and that means repainting.
The indicator should reflect the latest changes. So while repainting is a bad thing in a strategy, it is essential in this indicator.
This indicator is designed to reclassify trend lines with each reaction of the price chart. Thus, any touching or crossing of the price chart can make a difference.
Note that unlike alerts, breakout labels are not trading signals:
Breakout labels show the latest breakout for each level based on the lines that appear on the chart, so they may repaint or have delay.
But Alerts work differently, Alerts are triggered when one of the trend lines is broken and then the next candle is opened and has no any delay.
Features
This indicator is designed for use on both linear and logarithmic scales. It works linearly by default. If you are using a logarithmic chart, enter the settings menu and set the chart scale parameter to “Log”.
The indicator is equipped with the volume status tool to identify and avoid false breakouts. Note that you can't completely avoid false breakouts, but you can minimize risk and loss. I have already published volume status as a separate script.
Several filters are provided to customize alerts. You can limit alerts based on the level and strength of broken trend lines, volume status, and type of breakout (Cross-Over, Cross-Under, or both).
The last breakouts panel gives an overview of the current market situation. You can activate it in the settings menu. the figure below shows the panel:
Settings menu parameters
{Chart Scale …} =>
Set it according to the chart. If you are using a linear chart, select the "Linear" option or if you are using a logarithmic chart, select the "Log" option
{Max Operational Range Length ...} =>
This parameter specifies the number of candles processed by the indicator (By default, the last 1000 bars)
{Filter Out-Of-Range Lines} =>
The filter removes diverging or out-of-range lines and reduces the clutter of the chart
{Visible Trend Lines ...} =>
In this section you can specify which level of trend lines should be visible. Level 1 contains the strongest lines and level 6 contains the weakest.
{Alert Condition 01 _ Trendline Levels} =>
In this section, you can specify which level of trend lines will trigger an alert after the breakout. This section has been added to customize alerts.
{Alert Condition 02 _ Cross Type} =>
In this section, you can limit alerts based on the type of breakout (Cross-Over, Cross-Under or both). This section has been added to customize alerts.
{Alert Condition 03 _ Volume Status} =>
In this section, you can limit alerts by volume to avoid fake breakouts. This section has been added to customize alerts.
{Last Breakout Label} =>
In this section, you can enable or disable the last breakout labels.
{Panel} =>
In this section, you can enable or disable the last breakout panel or set its position on the chart.
How to setup
There are many parameters in the settings menu, but two are more important. One is “Chart Scale” and the other is the “Max Operational Range Length".
Set the “chart scale” parameter according to the chart, otherwise the trend lines drawn by the indicator do not match the price chart.
If you are using a linear chart, select the "Linear" option or if you are using a logarithmic chart, select the "Log" option.
Max Operational Range Length Limits the range of the price chart that is processed by the indicator.
By increasing this parameter:
The strength and durability of the trend lines increases.
The number of breakout signals decreases.
The importance of breakout signals increases.
The indicator processing load increases.
In the following figure, you can see the effects of increasing the “Max Operational Range Length" parameter:
Limits
Since this indicator makes extensive use of trading volume, it is necessary to use a chart with volume information.
But if the volume information is not provided by the vendor, indicator will continue to work based on the price chart only, and a warning message will be displayed below the chart to let you know.
Errors and Performance
The performance of this indicator depends on the “Max Operational Range Length” parameter in the settings menu because it performs calculations, within a range with the length of this parameter.
By increasing this parameter, the processing load increases. Sometimes you may encounter the following error: “Loop takes too long to execute (>200 ms)”
If you see this error, do one of the following:
Reduce the “Max Operational Range Length”.
Reset the indicator. To do this, double-click on the “Hide” button in front of the indicator name.
Examples
EURUSD (FX:EURUSD) – 1D // Scale: Logarithmic, Max Range Length = 1000, Filter: 2X
NASDAQ 100 (CME_MINI:NQ1!) - 1D // Scale: Logarithmic, Max Range Length = 700
GOLD (COMEX:GC1!) – 1D // Scale: Logarithmic, Max Range Length = 650, Filter: 2X
NATURAL GAS (NYMEX:NG1!) – 1D // Scale: Logarithmic, Max Range Length = 625, Filter: 4X
AMAZON (NASDAQ:AMZN) – 1D // Scale: Logarithmic, Max Range Length = 1750, Filter: 2X
APPLE INC (NASDAQ:AAPL) – 1D // Scale: Logarithmic, Max Range Length = 340, Filter: 4X
GBPUSD (FX:GBPUSD) – 1D // Scale: Logarithmic, Max Range Length = 1000, Filter: 3X
SILVER (COMEX:SI1!) – 1D // Scale: Logarithmic, Max Range Length = 550, Filter: 3X
BITCOIN (KUCOIN:BTCUSDT) – 4H // Scale: Logarithmic, Max Range Length = 1250, Filter: 3X
MICROSOFT (NASDAQ:MSFT) – 1D // Scale: Logarithmic, Max Range Length = 340, Filter: 4X
TOTAL (CRYPTOCAP:TOTAL) – 2H // Scale: Logarithmic, Max Range Length = 1075, Filter: 3X
Alert(), alertcondition() or strategy alerts?Variety of possibilities offered by PineScript, especially thanks to recent additions, created some confusion. Especially one question repeats quite often - which method to use to trigger alerts?
I'm posting this to clarify and give some syntax examples. I'll discuss these 3 methods in chronological order, meaning - in the order they were introduced to PineScript.
ALERTCONDITION() - it is a function call, which can be used only in study-type script. Since years ago, you could create 2 types of a script: strategy and study. First one enables creating a backtest of a strategy. Second was to develop scripts which didn't require backtesting and could trigger alerts. alertcondition() calls in strategy-type scripts were rejected by Pine compiler. On the other hand compiling study-type scripts rejected all strategy...() calls. That created difficulties, because once you had a nice and backtested strategy, you had to rip it off from all strategy...() function calls to convert your script to study-type so you could produce alerts. Maintenance of two versions of each script was necessary and it was painful.
"STRATEGY ALERTS" were introduced because of alertcondition() pains. To create strategy alert, you need to click "Add alert" button inside Strategy Tester (backtester) and only there. Alerts set-up this way are bound with the backtester - whenever backtester triggers an order, which is visible on the chart, alert is also fired. And you can customize alert message using some placeholders like {{strategy.order.contracts}} or {{ticker}}.
ALERT() was added last. This is an alerts-triggering function call, which can be run from strategy-type script. Finally it is doable! You can connect it to any event coded in PineScript and generate any alert message you want, thanks to concatenation of strings and wrapping variables into tostring() function.
Out of these three alertcondition() is obviously archaic and probably will be discontinued. There is a chance this makes strategy/study distinction not making sense anymore, so I wouldn't be surprised if "studies" are deprecated at some point.
But what are the differences between "Strategy alerts" and alert()? "Strategy alerts" seem easier to set-up with just a few clicks and probably easier to understand and verify, because they go in sync with the backtester and on-chart trade markers. It is especially important to understand how they work if you're building strategy based on pending orders (stop and limit) - events in your code might trigger placing pending order, but alert will be triggered only (and when) such order is executed.
But "Strategy Alerts" have some limitations - not every variable you'd like to include in alert message is available from PineScript. And maybe you don't need the alert fired when the trade hit a stop-loss or take-profit, because you have already forwarded info about closing conditions in entry alert to your broker/exchange.
Alert() was added to PineScript to fill all these gaps. Is allows concatenating any alert message you want, with any variable you want inside it and you can attach alert() function at any event in your PineScript code. For example - when placing orders, crossing variables, exiting trades, but not explicitly at pending orders execution.
The Verdict
"Strategy Alerts" might seem a better fit - easier to set-up and verify, flexible and they fire only when a trade really happens, not producing unnecessary mess when each pending order is placed. But these advantages are illusionary, because they don't give you the full-control which is needed when trading with real money. Especially when using pending orders. If an alert is fired when price actually hit a stop-order or limit-order level, and even if you are executing such alert within 1 second thanks to a tool like TradingConnector, you might already be late and you are making entry at a market price. Slippage will play a great role here. You need to send ordering alert when logical conditions are met - then it will be executed at the price you want. Even if you need to cancel all the pending orders which were not executed. Because of that I strongly recommend sticking to ALERT() when building your alerts system.
Below is an example strategy, showing syntax to manage placing the orders and cancelling them. Yes, this is another spin-off from my TradingView Alerts to MT4 MT5 . As usual, please don't pay attention to backtest results, as this is educational script only.
P.S. For the last time - farewell alertcondition(). You served us well.
Distance Oscillator - Support and Resistance by DGT
Prices high above the Moving Average (MA) or low below it are likely to be remedied in the future by a reverse price movement as stated in the article by Denis Alajbeg, Zoran Bubas and Dina Vasic published in International Journal of Economics, Commerce and Management
This study is the third variant that aims to present this idea, and the output of the study is presented as lines that serve as possible support and resistance levels in the future.
1st variant of the idea is presented as an centered oscillator, link to Price Distance to its MA Study , within its description you may find more about the idea and some statistical observations. Also some derivatives with MACD-X, More Than MACD and P-MACD
2nd variant of the idea are presented as colored triangle line (Volatility Colored Price/MA Line), using the same calculation methods and presented in the bottom of price chart.
Link to studies where it is included : Colored Directional Movement and Bollinger Band's Cloud , SuperTrendRange and Pivot Points vX
3rd variant (this study) as stated earlier aims to present the same idea as support and resistance levels.
Options
The users can adjust source and length of the moving average that is used as base for the distance oscillator
Signal triggering options includes length for the deviation bands, multiplier as well as smoothing of the oscillator
Line customization settings
Additionally an alert can be configured to be warned earlier to watch out for probable pullbacks or reversals
Technical details for whom interested
Calculating the price distance to the MA results in a centered oscillator lets call it Distance Oscillator (quite similar to the RSI), as shown in the blow chart
Unlike RSI, oscillations with the distance oscillator are not limited within a specific range, hence identifying overbought and oversold is not as straight forward as it is with RSI. To determine overbought and oversold levels, standard deviation of distance oscillator is calculated and bands generated with the same approach applied with Bollinger Bands.
Once we have the threshold bands then crossing those bands we may assume as important levels and draw a line, if oscillator values keeps above the threshold bands (deviation bands) the logic behind the code will update the line drawing accordingly.
To reduce noise a smoothing can be applied
Alerts :
Please note that the implementation applied here can be applied to any oscillator such as RSI, Stochastic, MFI etc even Volume (if bear candle volumes are multiplied by -1)
Disclaimer :
Trading success is all about following your trading strategy and the indicators should fit within your trading strategy, and not to be traded upon solely
The script is for informational and educational purposes only. Use of the script does not constitute professional and/or financial advice. You alone have the sole responsibility of evaluating the script output and risks associated with the use of the script. In exchange for using the script, you agree not to hold dgtrd TradingView user liable for any possible claim for damages arising from any decision you make based on use of the script
TFi Price Action Resampling Filter V1 - FULLThe script is resampling the price based on its range/price-action and creates an alternative filter to smoothen price movements.
Overview of features:
Optional stop-loss
Optional flags to control the position entry
Optional flags to control the position exit
Built-in backtesting engine with start balance, position size and pyramiding; each year will be evaluated separately
Inputs for a percentage entry and exit slippage, entry/exit and daily funding fees
Configurable alerts, which follow the exact position of the entry/exit marker
Alert messages contain predefined trading instruction to execute orders via Alertatron or TradeFab's proprietary trading server, or can be defined by the user
The script renders a performance/status table, which shows the current position status and result of the built-in trading simulation results.
It shows the following statistic values:
Current position PnL - also background turns green if position is in profit and red if in loss
Average entry price and number of positions
Current percentage distance to the optional stop-loss level
Current Maximum Draw Down
Number of wins and losses and the win/loss ratio per year and overall
Profit and loss amount, paid fees per year and overall
Profit-ratio and Maximum Draw Down per year and overall
Balance and ROI per year and overall
Crypto Advanced Trading IndicatorThe Crypto Indicator gives you a true picture of the market entry points, after a scan it does every period (after every candlestick closes) . It is pretty straightforward in its use with clear visual representation of the entry and exit points provided by the indicator.
This allows you to make improved entry and exit points and accommodates many trading styles, systems, and strategies.
It will work along most TradingView indicators and the timeframes we recommend you using it in are the 1H and sometimes the 4H chart.
The specific components of the indicator are:
Methodology:
The indicator uses a MACD oscillator to determine the local trend direction and to give buy & exit signals when its conditions are met.
An optional TradingView indicator, exponential moving average cross (EMA cross), can be used to filter out 'false' signals.
The calculation of the entry points are drawn from specific different prices for every one of the coins hardcoded in the script, and the filter function in the indicator settings, allows the user to change those prices based on the coin he is currently watching, based on the specific coin it is chosen in the filter.
Persistent variables are used for buy and exit prices, enabling color-coding of the signals (profitable or not).
Features:
Color coded labels - Buy, Exit = purple
Two types of entries - Bull Buy = green, Bear Buy = orange
Coin filter
Buy signal alerts
Remarks:
In our experience and therefore recommendation, the values used for each crypto coin work best on the 1-Hour timeframe. We encourage everyone to experiment, but the best results we had, were on this specific timeframe or higher.
Using the indicator on non-standard charts (Heikin Ashi, Renko etc.) can produce unrealistic results.
- Thanks to John Aslanis and Alexandros Temelkou the idealists and creators of this indicator.
Use the link below to watch a tutorial video, request a trial, or purchase for access:
SuperTrend - Custom Screener and Dynamic AlertsTrading View today published a desktop Bad Internet connection indicator ?! which set me thinking…
Despite recently introduced Dynamic Alerts many scripts do not leverage the information available for active traders and traders on the GO!
So decided to share this script totally ALERT focused on one of the most popular DAY trading indicators.
Of course no more BAD internet problem as long your TV APP is configured , you will have enough data for a mental picture of the chart..
The Alerts give you the BAR Close , %percent gain or loss over previous day CLOSE ++ Previous Day High and Low to effectively plan your trade without a chart!(just in case)
2 additions in the way Alerts are delivered over the last script :
1. You get SUMMARY alerts or concatenated alerts by default , however if you uncomment or activate code lines 48 and 55 you will get individual Stock alerts Too!
2. Summary Alerts will come only if there is some Buy or Sell signal NO more empty Alerts!
Few useful EXTRAS in the code :
1. Flexible code can convert any indicator to screener or Alert function.
2. You will NOT get Mutable Variable error while converting any indicator to screener as long as the function is in "GLOBAL" scope..
3. Many Custom Screeners are available but few give OHLC data in output so easily…and very difficult for traders to MODIFY hundreds of lines of code..
4. For UP or DOWN on SCREEN Stock monitoring copy /paste functions in line 41 and 42 in lieu of CROSS functions in 44 and 51 respectively..
5. You can also uncomment/activate lines 66 and 67 for labels in monitoring.
6. The default mode of the scripts is set to Alerts!
Max Stocks only 20!
Finally idea is to help traders to use the great features that TV works so hard to create and constantly improvise.
Enjoy Profitable Trading on the Fly !!
Smart EMA SignalsThis indicator starts by plotting each time the price action crosses above or below the EMA, of which you can tune the timeframe and duration.
It then takes it a step further and plots whether or not that indicator would have given you a profitable trade, of which you can also tune the parameters (Max wait time, and % Profit).
Once you have your EMA tuned to your liking, set up alerts to notify you of a golden opportunity.
Fibonacci and Ema Trend + Pullback alerts This indicator tells you what to do with supports and resistances based on fibonacci with signs and alarms
and Ema 200 with buy or sell fast pullback alarms
When 0.5 is bear the price will seek to break the lower supports
sell from 0.5 to bear zone and obtain profits below the supports
stop loss above resistence
When 0.5 is bull the price will seek to break the highest resistances
buy from 0.5 to bull zone and profit above the resistances
stop loss below support
you can edit the indicator to have slower or faster levels if you want
The alarms that the indicator has :
Resistence down
Resistence up
Bull zone UP
Buy 0.5 Bull
Sell 0.5 Bear
Bear zone DOWN
Bear zone UP sell to 5.0 bear
Bull zone DOWN Buy to 0.5 bull
Support zone DOWN
Support zone UP
ema 200 pullback alerts
when price is going up active the buy fast pullback alarm
stop loss below ema 200 or support
when price is going Down active the sell fast pullback alarm
stop loss above ema 200 or resistence
AlertoJack AlertoJack
v0.1a
coded by Bogdan Vaida
This indicator was created to provide easily defined alerts on multiple symbols.
It's still POC code.
Usage:
- Add it on any coin,
- The chart timeframe will be the timeframe for the alerts;
- Configure it with the symbols you want to be alerted on,
- Add the prices to be alerted for,
- Use Add Alert -> condition AlertoJack -> "Any alert() function call"
- Check the Alerts log.
Notes:
- Alert happens when candle crosses the price.
- Because of how Trading View functions, if you modify the indicator settings
you'll need to add the alerts again (because an alert uses the code version
it was created from).
- The alert runs once per current bar's timeframe (e.g. once per minute
if you're on the 1m).
RSI ExtendedThis script is intended to print signals on the main price chart and send alerts when the RSI is overbought or oversold.
You can customize the source of the signal (open, close, etc), as well as oversold/overbought levels, and RSI length.
RSI Over EMA (Range Lines)This is another version of the RSI over EMA Trend Sniper script that I released here:
This one gives you better control across pairs wither higher volatility with the extra lines and more alert possibilities.
Here are the useful Alert functions within this indicator:
LONGS:
-Aqua line (RSI Line) - Crossing UP (Long Alert) on the Lower Green line
-Aqua line (RSI Line) - Crossing UP (Long Alert) on the Upper Green line
-Aqua line (RSI Line) - Crossing UP (Long Alert) on the Lower Amber line
-Aqua line (RSI Line) - Crossing UP (Long Alert) on the Upper Amber line
-Aqua line (RSI Line) - Crossing UP (Long Alert) on the Lower Red line
-Aqua line (RSI Line) - Crossing UP (Long Alert) on the Upper Red line
SHORTS:
-Aqua line (RSI Line) - Crossing DOWN (Short Alert) on the Lower Green line
-Aqua line (RSI Line) - Crossing DOWN (Short Alert) on the Upper Green line
-Aqua line (RSI Line) - Crossing DOWN (Short Alert) on the Lower Amber line
-Aqua line (RSI Line) - Crossing DOWN (Short Alert) on the Upper Amber line
-Aqua line (RSI Line) - Crossing DOWN (Short Alert) on the Lower Red line
-Aqua line (RSI Line) - Crossing DOWN (Short Alert) on the Upper Red line
You can setup alerts for the Aqua line (RSI Line) 'crossing up' (Long Alert) or 'crossing down' (Short Alert) on any of the colored EMA lines.
By default the lines are spread out at 10/20/30 and that should cover high volatility charts. But, this is customizable and you can reduce the size of Green/Amber/Red lines to try and get a better more focused setup for whichever coin you are trading on. I have found this version of the RSI over EMA to work better with alt coins that are generally more volatile, but using it on Bitcoin works too.
I am using this for Cryptocurrency alerts, but not for automation to enter or exit a trade. It's important to only use this on normal candles, and only use it as a confirmation of a possible good entry or exit.
Awesome Heikin Ashi [Morty]This indicator uses Heikin Ashi candles and two EMAs to help you follow the trend and enter the trade. Heikin Ashi candles help to smooth the price and EMAs are used to detect trend. The default parameter of EMA is EMA10 and EMA20. You can use it at any timeframe. You should always adjust the EMA length according to different timeframes.
Features:
- Highlight background based on two EMAs
- Adjustable EMA length
- Adjustable Label size
- Show entry and exit signal labels
- Show stoploss price
- You can choose Long only or Short only or both signals
- Alert functions for notification
NOTE: If you use this signal to enter a trade, make sure the candle is close and enter in the next candle.
All in One StudyHere is my All in One Strategy converted into a Study with Alert Conditions you can use for whatever purpose you wish.
Each condition is set up similarly to the way I had the strategy set up, if you pick the indicators you want to base your alerts on it will alert you only if the check box is true.
You can pick one or more of the indicators if you'd like. I only suggest to pick one at a time so you don't have overlapping buy/sell alerts.
I think everyone will find the message of the market falling alert amusing :-)