TradeBee Percent Gap AlertA simple script to enable adding a trigger when a stock reaches 'X' percent, the 'X' can be configured.
The script also displays current tickers gap %, this is particularly helpful when you have 2 or more panels on a chart
Alert
AWD TRADE MANAGER (ATM) by ManhDNAWD TRADE MANAGER (ATM) is a position management tool including with some advanced features and entry suggestions. It helps you to do most of position calculations and position management, reduce time spent for charting by alerts.
There are 3 main things to describe about the manager:
(1) The original function of the manager is to help traders to manage their trades with automatic calculations of all factors of their trades with some of input values. For example, it will calculate the trade volume when you enter the bet size, entry and stop loss price. It calculates take profit price when you enter entry, stop loss prices and the risk/reward ratio, …
(2) Another function is the system of alerts. After set up a trade, create an alert and the manager will do the rest. It will send you an alert when the limit order got filled, got stopped out, take profit level hit, or even it reached a key level or an opposite/spike move just occurred…
(3) Entry suggestions: Suggest entries with price action strategies. Details bellow.
Features in details:
(1) Automatic calculations:
- Auto calculate trade volume based on entry, stop loss prices and the money users willing to lose when the trade is failed. Auto detect some type of assets and volume will be calculated in USD (for cryptocurrencies) or in lot (for forex).
- Auto calculate take profit price based on entry, stop loss prices and expected rr ratio.
-Auto suggest take profit price based on pivot points.
- Auto suggest stop loss price based on pivot points.
- You can enter several exit points with percentages and the manager will calculate the averaged risk reward ratio you earned after the last exit price reached.
- Quick entry price pick to reduce typing requirement.
- Quick trade set up: 2 checkboxes and 1 number entering to set up a trade.
(2) Alert system
After setting up a trade and creating an alert of the manager, it will follow the market and your order. It will send you alerts for all the events that you should follow up your position. These alerts can be sent to your pc, your phone and your smart watch, so even you are a full-time day trader, you will save your time for charting or managing your positions. Here’s the list of alerts:
- Sending alert when suggesting an entry with details calculated from preset inputs so you can just pick that info to enter the position including trading volume, entry, stop loss, take profit prices, timeframe, estimated risk-reward ratio …
- Sending alert when a limit order got filled and auto switch to position-managing-mode.
- Sending alert when a limit order in still staying unfilled but should be canceled (because of price reaching a key level or is running too far, …)
- Sending alert when the position got stopped out or TP hit.
- Sending alert when the running position reached a key level and need to be watched out.
- Sending alert when a spike move or opposite move just occurred.
- Sending alert when a position is taking too long to run.
- You can also set 3 levels of price with messages then ATM will send you alerts when price reaches those levels.
- When price runs, ATM might suggest you to move stop loss to levels based on pivot points by sending you alerts.
- Alert when a BOS occurred.
- Options to turn on/off each kind of alert.
(3) Entry suggestions.
The script included price action entry suggestions.
The 1st strategy is getting in a position when a candle pattern occurred and confirmed by MA20.
The 2nd strategy is detecting double top/bottom and a candle pattern confirm break out after that.
The 3rd strategy is a pullback strategy, in a trending market, a candle pattern occurs and confirms the pullback ends, it will suggest an entry.
All those strategies I am using by myself for a long period of time but to make sure they are good for your trading style, do your own research and backtest before use. Keep in mind to manage risk and be responsible to your capital.
User side modifications:
- Those price action strategies have some major arguments that users can tune themselves to make it meet their style or their needs like choosing method to suggest entries, refine entry quality by changing the confirmation methods,…
- Most of appearance factors can be changed by users.
- one-click to toggle between full features and simple mode.
TradingView Chart demo pictures:
Author's bio:
I have been a full-time day trader for 7 years. I like coding with Pinescript and I also developed some helpful indicators that provide unique aspects to approach markets and the most favorite one from that is Relative Volume Index (RVI) that will be introduced in near future.
Disclaimer:
This tool has been tested and been using for my own trading career for a long period of time but practicing to use it yourself to understand it and use it correctly is needed. All of the features have been carefully tested before publishing but make sure to double-check all the info you get from it before getting into a trade to avoid losing money by a sudden mistake or even a bug. Keep in mind you will need to take all the responsibility with your capital or any potential loss while using this tool.
If you get anything wrong while using it, please leave some comments bellow, all of your ideas or suggestions will be taken seriously.
Thank you in advance!
(It is not possible to explain all the settings or features within the description, If you have questions, please leave comment, I will answer to help you to get familiar with the tool.)
BTC 4h bot 2.0 AlertsThis is Alert version of BTC 4h bot 2.0.
Optimized for pairs BTC vs stablecoins, 4h timeframe.
HOW IT WORKS:
Script is based on the fact that there are certain phases of the market when there is a greater probability that BTC will go to one side or the other. To evaluate which phase we are in, the script uses "Main trend" and "Confirmation signals".
Main trend
- Is composed of a combination of several supertrends and moving averages. A Supertrend is a trend following indicator that helps in identifying whether we are in an uptrend or a downtrend. A higher factor is used to capture the main trend and not just small movements. In case the market goes sideways, the Supertrend does not work well, so it is a combination of multiple supertrends along with moving averages to differentiate a real strong trend from a range.
- It can be seen on the graph as a thick solid line.
- In an uptrend is green, in a downtrend red, gray represents the neutral zone.
Confirmation signals
- Are several script-evaluated indicators such as RSI , MACD , ADX and others, which serve to confirm the trend. In this case, it is the opposite way to the Main trend. Confirmation signals are used here to detect small movements. They are trying to capture bullish and bearish price momentum.
- On the graph they are seen as dashed lines above or below the Main trend (in the gray zone they are in the middle).
- It indicates only two signals, green for buy and red for sell.
HOW TO USE IT:
if the Main trend and Confirmation signals are of the same color, it will send a buy or sell signal, depending on which phase of the trend it is in. If the Main trend is e.g. in an uptrend and the market is going up, Confirmation signals should generate a lot of signals. But if the market starts to go in the opposite direction, Confirmation signals should generate fewer signals or none at all, thus reducing the number of wrong trades. In the gray zone of the Main trend it does not open positions.
To close position is possible to use stop loss and take profit or alternative could be to set very high TP value, thereby letting the script close the positions by itself by Stop Long or Stop Short.
The recommended setting is:
TP: 3.9%
SL: 4.7%.
In this case, it is a Alert version, where can be seen all the signals, which the script generates.
Green triangels indicate open Long.
Red triangels indicate open Short.
Small blue triangels indicate Stop Long position.
Small orange triangels indicate Stop Short position.
Signal is valid after bar is closed, so do not open a position before.
Script works well on Bitstamp, but also other exchanges with pair BTC/USD or BTC/stablecoins.
The script works consistently well over a long period of time, using past probabilities, but this does not guarantee future results.
string_utilsLibrary "string_utils"
Collection of string utilities that can be used to replace sub-strings in a string and string functions
that are not part of the standard library.
This a more simple replacement of my previous string_variables library since it uses types for better
performance due to data locality and methods that give a more intuitive API.
Detect BOS in Five Candles with MTF - Alert [MsF]Japanese below / 日本語説明は英文の後にあります。
-------------------------
*This indicator is based on azmathshah's "Last Three Candles each of Two HTF".
It's a very cool indicator. thank you.
You can detect trend reversal with candlesticks.
It's MTF compatible and can display up to 2 sets of 5 candles of any time frame on the right side of the chart.
By displaying the candles of the upper time frame bars, you can check the trend change and measure the entry timing with the lower time frame bars.
There are two types of alerts.
"Liquidity Sweep": This is an alert when the upper beard (high) of ③ is touched with the next foot.
"Candle Close": An alert when the upper whisker (high) of ③ is exceeded by the closing price of the next bar (generally a strong signal)
-------------------------
ローソク足でトレンド転換を検知するインジケーターです。
MTF対応となっておりチャートの右側に任意タイムフレームのローソク5本を最大2セット表示できます。
上位足のローソクを表示することにより、トレンド転換確認しながら、下位足でエントリータイミングを計ることができます。
アラートは2種類あります。
"Liquidity Sweep":③の上ヒゲ(high)を次の足でタッチした場合のアラートです
"Candle Close":③の上ヒゲ(high)を次の足の終値で上回った場合のアラートです(一般的には強力なシグナルとなります)
Take Session High/Low Alert [MsF]Japanese below / 日本語説明は英文の後にあります。
-------------------------
This indicator that displays High/Low lines for each session. The Key Levels of each session can be visually recognized, which is useful for PD Array analysis. You can display the last 3 days. Based on trinity by ICT.
The biggest feature is that the color shape of the line changes when reaching High/Low. Of course, you can also set alerts.
Unreached High/Low lines can be extended to the right. hides all timeframes over 1 hour. (alert is alive)
You can choose 4 sessions. If you only want to use 3 sessions, you can do that by setting the same session time for 2 of the 4 session settings.
About Parameter Settings
Session Time: Please set it to be a 24-hour cycle. You can also specify the time zone. The default is NY time.
Basis/Other color: The first time specified in "Session Time" in this indicator's parameter is the "Basis color". "Other color" is a line other than that.
Enable Time Lines: You can turn on/off the display of vertical lines.
High/Low color: High/Low line setting that has not been reached.
Taken color: High/Low line setting that has already been reached.
Extend Lines: Allows unreached High/Low lines to be extended to the right in the chart.
-------------------------
セッションごとのHigh/Lowをライン表示するインジケーターです。
過去約3日分を表示することができます。
最大の特徴はHigh/Low到達時にラインの色形が変わることです。もちろんアラート設定も可能です。
未到達のHigh/Lowラインは右側に延長することができます。
チャート表示がビジーとなる為、1時間を超える時間足ではすべて非表示とする仕様です。(アラートは生きてます)
セッションは4つ指定できます。
もしセッションを3つのみ使用したい場合は、4つのセッション設定の内2つに同じセッション時間を設定することで実現可能です。
■パラメータ設定
Session Time:24時間周期となるように設定してください。またタイムゾーンが指定できます。デフォルトはNY timeです。
Basis/Other color:パラメータの"Session Time"にて一番最初に指定した時間が基準=Basisとなります。Otherはそれ以外のラインとなります。
Enable Time Lines:垂直ラインの表示ON/OFFが可能です。
High/Low color:未到達のHigh/Lowライン設定となります。
Taken color:到達済みのHigh/Lowライン設定となります。
Extend Lines:未到達のHigh/Lowラインを右に延長できます。
cankardesler stoploss v2This stoploss allows to filter high volatility fake trends;
But how we are made it; we are calculating the last spikes value average and calculating the standart deviation, after we added to the standart stoploss formula price+2atr and voila!!
Your stop loss is ready.
The idea behind this formula: what is explosing our stops? fake-out spikes.
We think if we get the last spikes average and calculate the standart deviation on it and after add it to the original stop formula, its gonna help for bypassing the spikes.
Thanks a lot @ocankardes for helping me to developing this formula
3 Zigzag for MTF Fib Alert [MsF]Japanese below / 日本語説明は英文の後にあります。
-------------------------
This indicator that automatically displays Fibonacci from each High & Low based on 3 Zigzags. It's useful for multi-timeframe analysis.
For example, Fibonacci calculated from the high and low prices (Zigzag 3 Period=100) of the upper timeframe can be displayed on the lower timeframe.
Also, you can set alerts for each Fibonacci point. It is useful when you are waiting for the price to return to the discount (50% or less) or the premium (50% or more) of the upper timeframe.
"Fib 1 - Crossing 0.00" … Trigger an alert when crossing the 0% line in Fibonacci of Zigzag1
"Fib 1 - Crossing 100.0" … Trigger an alert when crossing the 100% line in Fibonacci of Zigzag1
"Fib 1 - Crossing 23.6" … Trigger an alert when crossing the 23.6% line in Fibonacci of Zigzag1
"Fib 1 - Crossing 38.2" … Trigger an alert when crossing the 38.2% line in Fibonacci of Zigzag1
"Fib 1 - Crossing 50.0" … Trigger an alert when crossing the 50.0% line in Fibonacci of Zigzag1
"Fib 1 - Crossing 61.8" … Trigger an alert when crossing the 61.8% line in Fibonacci of Zigzag1
"Fib 1 - Crossing 76.4" … Trigger an alert when crossing the 76.4% line in Fibonacci of Zigzag1
*Same as Zigzag 1 and Zigzag 2 too.
"Choose Zig Zag Leg for fib" parameter means...
Latest : Calculate Fibonacci based on "the most recent Zigzag line".
Previous : Calculate Fibonacci based on "the previous Zigzag line".
-------------------------
3つのZigzagを元に各High&Lowからフィボナッチを自動で表示するインジケーターです。
Zigzagの期間を工夫することで、マルチタイムフレーム分析に役立ちます。
例えば、以下の設定とした場合:
Zigzag 1 Period … 8
Zigzag 2 Period … 25
Zigzag 3 Period … 100
上位時間足Zigzag(Period=100)の高値安値から形成されるフィボナッチを下位時間足に表示することができるのです。
また、このインジケーターではフィボナッチのポイント毎にアラートの設定が可能です。
上位時間足の割安価格(50%以下)や割高価格(50%以上)に価格が戻ってくるのを待っている時などに力を発揮してくれます。
"Fib 1 - Crossing 0.00" … Zigzag1のフィボナッチにおいて、0%ラインとクロスした場合にアラートを発報します
"Fib 1 - Crossing 100.0" … Zigzag1のフィボナッチにおいて、100%ラインとクロスした場合にアラートを発報します
"Fib 1 - Crossing 23.6" … Zigzag1のフィボナッチにおいて、23.6%ラインとクロスした場合にアラートを発報します
"Fib 1 - Crossing 38.2" … Zigzag1のフィボナッチにおいて、38.2%ラインとクロスした場合にアラートを発報します
"Fib 1 - Crossing 50.0" … Zigzag1のフィボナッチにおいて、50.0%ラインとクロスした場合にアラートを発報します
"Fib 1 - Crossing 61.8" … Zigzag1のフィボナッチにおいて、61.8%ラインとクロスした場合にアラートを発報します
"Fib 1 - Crossing 76.4" … Zigzag1のフィボナッチにおいて、76.4%ラインとクロスした場合にアラートを発報します
※Zigzag1およびZigzag2のフィボナッチも同様
"Choose Zig Zag Leg for fib"パラメータについて:
Latest … 一番新しいZigzagのライン(UpまたはDown)を元にフィボナッチを計算します。
Previous … ひとつ前のZigzagのライン(UpまたはDown)を元にフィボナッチを計算します。
RSI Multi Alerts MTFThis indicator won't plot anything to the chart.
Please follow steps below to set your alarms based on RSI oversold and overbought levels:
1) Add indicator to the chart
2) Go to settings
3) Choose up to 8 different symbols to get alert notification
4) Choose up to 4 different timeframes
5) Set overbought and oversold levels
6) Once all is set go back to the chart and click on 3 dots to set alert in this indicator, rename your alert and confirm
7) You can remove indicator after alert is set and it'll keep working as expected
What is does:
This indicator will generate alerts based on symbols, timeframes and RSI levels settings.
It will consider overbought and oversold levels to alert in each symbol and each timeframe selected. Once these levels are achieved it will send an alert with the following information:
- Symbol name (BTC, ETH, LTC)
- Specific RSI level achieved (e.g: RSI 30, RSI 70 or any custom level)
- Timeframe (e.g: 5m, 1h, 1D)
- Current symbol price
This script will request RSI OB/OS information through request.security() function from all different symbols and timeframes settings. It also requests symbols' price (close).
Due to Tradingview limitation (40 requests calls) it can only request information for 8 symbols for this script (8 symbols X 4 timeframes = 32 + 8 symbols' price (close) = 40)
Standard symbols are Binance USDT-M Futures but you can choose any symbol from Tradingview.
Standard timeframes are 5m|15m|1h|4h but you can choose from a list.
Standard overbought and oversold levels are 70 and 30 but you can change it to other integer values.
Feel free to give feedbacks on comments section below.
Enjoy!
Market Structure MA Based BOS [liwei666]
🎲 Overview
🎯 This BOS(Break Of Structure) indicator build based on different MA such as EMA/RMA/HMA, it's usually earlier than pivothigh() method
when trend beginning, customer your BOS with 2 parameters now.
🎲 Indicator design logic
🎯 The logic is simple and code looks complex, I‘ll explain core logic but not code details.
1. use close-in EMA's highest/lowest value mark as SWING High/Low when EMA crossover/under,
not use func ta.pivothigh()/ta.pivotlow()
2. once price reaching EMA’s SWING High/Low, draw a line link High/Low to current bar, labled as BOS
3. find regular pattern benefit your trading.
🎲 Settings
🎯 there are 4 input properties in script, 2 properties are meaningful in 'GRP1' another 2 are display config in 'GRP2'.
GRP1
MA_Type: MA type you can choose(EMA/RMA/SMA/HMA), default is 'HMA'.
short_ma_len: MA length of your current timeframe on chart
GRP2
show_short_zz: Show short_ma Zigzag
show_ma_cross_signal: Show ma_cross_signal
🎲 Usage
🎯 BOS signal usually worked fine in high volatility market, low volatility is meaningless.
🎯 We can see that it performs well in trending market of different symbols, and BOS is an opportunity to add positions
BINANCE:BTCUSDTPERP
BINANCE:ETHUSDTPERP
🎯 MA Based signal is earlier than pivothigh()/pivotlow() method when trend beginning. it means higher profit-loss rate.
🎯 any questions or suggestion please comment below.
Additionally, I plan to publish 20 profitable strategies in 2023; indicatior not one of them,
let‘s witness it together!
Hope this indicator will be useful for you :)
enjoy! 🚀🚀🚀
Consecutive Candles lite | Multi Timeframe
Choose to display numbers from 6, 7, 8 or only 9, showing a colored dot until the last number is reached to reduce the clutter
Support and resistance
Customizable labels, several styles are available
Identifies turning point in the trending price of an asset or an index.
Consecutive Candles | Multi Timeframe
Display all numbers or choose from 6, 7, 8 and 9 to reduce the clutter
Support and resistance
Customizable labels, several styles are available
Identifies turning point in the trending price of an asset or an index.
Sessions and news markersHello,
I use this script daily so I thought it might help some of you guys out!
WHAT IS THE SCRIPT
This script can show two custom trading sessions and up to three specific dates and hours to keep in mind while trading (for example a news release).
WHY USE THE SCRIPT
My trading plan tells me to trade from 08:00am to 10:00am (GMT+1) and not to let open trades during a high impact news release, this script allows me to show my trading session and mark the news releases on the chart before trading so I don't forget about them while in the heat of trading.
HOW TO USE THE SCRIPT
It is very straightforward:
How to set up the TRADING SESSIONS:
- Tick the trading sessions that you want to use (one or two)
- Specify the trading hours
- Choose the color of the trading sessions
- Choose the color to fill outside of the trading sessions
- Choose the time zone (GMT, GMT+1, UTC, UTC+2...)
How to set up the NEWS MARKERS:
- Tick the news markers you want to use (up to three)
- Specify the date and hours of the news
- Choose the color of the news markers
- No need to choose the time zone, it will use the timezone of the chart
PS: As you can see in the settings, each session and news marker can have their own color
I hope this helps you out as much as it helps me! If you have any recommendations I would be glad to hear them :)
Assassin's Grid
Introduction: Are you a fan of automated grid-based trading and holding onto your crypto assets like they're the last Snickers bar in the world? If so, this Pine script could be your new best friend!
Grid Trading Genius: The script uses some seriously advanced grid trading techniques to automatically place orders at different price levels, creating a mesh of positions that move with the market like a well-oiled machine. This strategy can be great for traders who are willing to sit back and let their positions grow like a fine wine over time.
Optimization Features: The script comes loaded with all sorts of features and tools to help traders optimize their grid positions, like position exits and custom alerts for creating limit and market orders. This helps keep traders in the loop and allows them to take action as needed, like a ninja in the night.
Unique Twists: One of the unique features of this script is the option to choose between normal or incremental entry steps in a 1,2,3,... ratio. By choosing incremental entries, traders can potentially improve their average price and increase their potential profits like a boss. Just keep in mind that this script doesn't have a stop loss feature, but it does include the option to sell without profit on the final entry or on all entries if desired. Additionally, the script is always open to improvement and any ideas for improving it are welcome, like a blank canvas.
Conclusion: If you love automated trading and have the patience and determination to stick to a solid strategy, this Pine script could be a great fit for you. It's suitable for traders who are comfortable with more complex trading approaches and are willing to put in the time and effort to learn and master the script's various features and techniques, like a Jedi Knight
Odd_mod Econ CalendarA modification of Economic Calendar Events: FOMC, CPI, and more written by jdehorty . Please send all tips his way as he is maintaining the underlying data for the Calendar and the original concept.
List of changes:
Optimized code, will only run once on initialization now(No random line in middle of screen on bar change)
Legend - Added short names
Legend - Removed header
Legend - Made repositionable with selectable top margins
Legend - Removed data name from legend when it is disabled
Legend - Removed border
Original Description by jdehorty :
This script plots major events from the Economic Calendar that often correspond to major pivot points in various markets. It also includes built-in logic to retroactively adjust larger time intervals (i.e. greater than 1 hour) to be correctly aligned with the interval during which the event occurred.
Events are taken from the Economic Calendar and will be updated periodically at the following library:
EconomicCalendar
The above library can be used to conveniently access date-related data for major Meetings, Releases, and Announcements as integer arrays, which can be used in other indicators. Currently, it has support for the following events:
FOMC Meetings
The FOMC meets eight times a year to determine the course of monetary policy . The FOMC's decisions are based on a review of economic and financial developments and its assessment of the likely effects of these developments on the economic outlook.
FOMC Minutes
The FOMC minutes are released three weeks after each FOMC meeting. The minutes provide a detailed account of the FOMC's discussion of economic and financial developments and its assessment of the likely effects of these developments on the economic outlook.
Producer Price Index (PPI) Releases
The Producer Price Index (PPI) measures changes in the price level of goods and services sold by domestic producers. The PPI is a weighted average of prices of a basket of goods and services, such as transportation, food, and medical care. PPI is a leading indicator of CPI .
Consumer Price Index ( CPI ) Releases
The Consumer Price Index ( CPI ) measures changes in the price level of goods and services purchased by households. The CPI is a weighted average of prices of a basket of consumer goods and services, such as transportation, food, and medical care. CPI is one of the most widely used measures of inflation .
Consumer Sentiment Index ( CSI ) Releases
The University of Michigan's Consumer Sentiment Index ( CSI ) is a measure of consumer attitudes about the economy. The CSI is based on a monthly survey of U.S. households and reflects the consumers' assessment of present and future economic conditions. The CSI is a leading indicator of consumer spending, which accounts for about two-thirds of U.S. economic activity.
Consumer Confidence Index ( CCI ) Releases
The Consumer Confidence Index is a survey that measures how optimistic or pessimistic consumers are regarding their expected financial situation.
Non-Farm Payroll (NFP) Releases
The Non-Farm Payroll (NFP) is a measure of the change in the number of employed persons, excluding farm workers and government employees. The NFP is a leading indicator of consumer spending, which accounts for about two-thirds of U.S. economic activity.
Exponential Hull Moving Average With Alerts (EHMA)Hello! This is simply HMA calculated with EMA's instead of WMA! I have added alerts for the direction of the average.
Heres a recap the traditional HMA:
The Hull Moving Average ( HMA ) attempts to minimize the lag of a traditional moving average while retaining the smoothness of the moving average line. Developed by Alan Hull in 2005, this indicator makes use of weighted moving averages to prioritize more recent values and greatly reduce lag.
Quantum Vector AlertsIts the part 2 of Multiple Indicators 50EMA Cross Alerts.
Its more suitable for the seconds chart. Beside, you can use it in higher timeframe.
The input bars length is the sample size that the code will use to trigger all alert. 20 mean 20 bar after the current candle.
When you activate volume alert you can select an amount of volume that when volume cross it you will be notified. The volume of every bar is displayed in the screener below volume.
In the section percentage vector counting the script do the sum of the red vector and green vector and give a ratio. In bullish vector count percentage for alert, you can select the percentage difference that you want to receive an alert. If your sample have 3 red vectors and 7 green vectors you will receive an alert saying that there is an imbalance of 70% showing more green vectors.
You can select a variant of percentage vector. The variant will do a summation of volume. If 1 vector candle is the size of the 3 other vector, they will have the same ponderation.
Normal alert counting count the number of vectors in the bars length. You can count the red and green candle only or add the blue and violet.
Bullish vector count will show a notification when the number of green candle will appear on the chart in the selected length. The same process is valid for bearish vector count. For example, if you want 3 bullish candle in 20 bar. You select bars length 20 and bullish vector count 3.
These alerts are suitable to the hybrid system. Thanks to our teacher Trader Reality and to all the member that contribute to this great discord community.
POALibrary "POA"
This library is a client script for making a webhook signal formatted string to POABOT server.
entry_message(password, percent, leverage, kis_number)
Create a entry message for POABOT
Parameters:
password : (string) The password of your bot.
percent : (float) The percent for entry based on your wallet balance.
leverage : (int) The leverage of entry. If not set, your levereage doesn't change.
kis_number : (int) The number of koreainvestment account.
Returns: (string) A json formatted string for webhook message.
close_message(password, percent, kis_number)
Create a close message for POABOT
Parameters:
password : (string) The password of your bot.
percent : (float) The percent for close based on your wallet balance.
kis_number : (int) The number of koreainvestment account.
Returns: (string) A json formatted string for webhook message.
exit_message(password, percent)
Create a exit message for POABOT
Parameters:
password : (string) The password of your bot.
percent : (float) The percent for exit based on your wallet balance.
Returns: (string) A json formatted string for webhook message.
in_trade(start_time, end_time)
Create a trade start line
Parameters:
start_time : (int) The start of time.
end_time : (int) The end of time.
Returns: (bool) Get bool for trade based on time range.
[TTI] Stage Analysis Alert IndexHISTORY AND CREDITS –––––––––––––––––––––––––––––––––––––––––––––––––––––––
The script is created based on lessons and interviews from Stan Weinstein. The Alert Index is being used by Stan and his team to gauge the general markets.
WHAT IT DOES– ––––––––––––––––––––––––––––––––––––––––––––––––––––––
This is an internal fundamental indicator that Stan and its team uses, that gauges the relationship between the 3 month T bill yield and the AAA bonds. The indicator uses the 3 colored system to determine favorable trading conditions in the market.
🟨 Yellow – OK conditions
🟩 Green – Great conditions
🟥 Red – Unfavorable conditions
Remember this is a fundamentals indicator and looks at the market from a much more macro picture.
HOW TO USE IT –––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––
The indicator is to be used in order to determine the agressiveness of the position sizing in the market. Green conditions show very favorable market for long positions and yellow show ok conditions. However, during red condition the trader is advised not to be aggressively exposed in the market
(2) Two AlertsCurrent Trading View free plan allows only ONE active alert.
This simple indicator Allows to trigger this ONE and ONLY alert when price reaches Higher, or Lower price level.
You can set levels and turn alerts for them on/off in settings, or by just drag-n-dropping Horizontal lines on the chart.
To set the only alert you need to create new alert, and change it's following parameters :
condition : 2alerts
Any alert function() call
Feel free to modify it on your needs.
Divergence Finder [Multigrain]█ OVERVIEW
This indicator is a divergence finder, designed to be overlayed on top of any oscillator. By utilizing an Exponential Moving Average, rather than built-in pivot functions, this allows for insignificant pivots of the oscillator to be filtered out. Additionally, by sampling more than just the previous oscillator pivot, this allows for divergences to be found that would otherwise be overlooked through other methods.
█ CONCEPTS
Interim Price Threshold
A new metric used when determining valid divergences is the Interim Price Threshold (IPT). The IPT is the maximum percent delta the price is allowed to "poke-through" the divergent line at any given time.
Interim Oscillator Threshold
Similar to the Interim Price Threshold, the Interim Oscillator Threshold (IOT) is the maximum percent delta the oscillator is allowed to "poke-through" the divergent line at any given time.
Dynamic Midline
Commonly a static midline is utilized when determining whether a divergence may be bullish or bearish. By utilizing the built-in percentile nearest rank function, the midline is automatically and dynamically determined based on the previous 250 bars. As a result certain divergences which may otherwise be overlooked will be discovered.
█ SETTINGS
Oscillator Source: The oscillator in which you want find divergences from. Default to a MACD oscillator when unchanged.
Price Source: The price source in which you want to find divergences from.
Moving Average Length: The length of the exponential moving average used when determining the pivot points of the selected oscillator.
█ USAGES
Divergence in technical analysis can indicate a significant bullish or bearish price move. A bullish divergence occurs when an asset's price makes a new low while an indicator begins to rise. A bearish divergence occurs when the price makes a new high but the indicator under consideration makes a lower high.
SuperTrend Multi Time Frame Long and Short Trading Strategy
Hello All
This is non-repainting Supertrend Multi Time Frame script, I got so many request on Supertrend with Multi Time Frame. This is for all of them ..I am making it open for all so you can change its coding according to your need.
How the Basic Indicator works
SuperTrend is one of the most common ATR based trailing stop indicators.
In this version you can change the ATR calculation method from the settings. Default method is RMA.
The indicator is easy to use and gives an accurate reading about an ongoing trend. It is constructed with two parameters, namely period and multiplier. The default values used while constructing a Supertrend indicator are 10 for average true range or trading period and three for its multiplier.
The average true range (ATR) plays an important role in 'Supertrend' as the indicator uses ATR to calculate its value. The ATR indicator signals the degree of price volatility .
The buy and sell signals are generated when the indicator starts plotting either on top of the closing price or below the closing price. A buy signal is generated when the ‘Supertrend’ closes above the price and a sell signal is generated when it closes below the closing price.
It also suggests that the trend is shifting from descending mode to ascending mode. Contrary to this, when a ‘Supertrend’ closes above the price, it generates a sell signal as the colour of the indicator changes into red.
A ‘Supertrend’ indicator can be used on spot, futures, options or forex, or even crypto markets and also on daily, weekly and hourly charts as well, but generally, it fails in a sideways-moving market.
How the Strategy works
This is developed based on SuperTrend.
Use two time frame for confirm all entry signals.
Two time frame SuperTrend works as Trailing stop for both long and short positions.
More securely execute orders, because it is wait until confine two time frames(example : daily and 30min)
Each time frame developed as customisable for user to any timeframe.
User can choose trading position side from Long, Short, and Both.
Custom Stop Loss level, user can enter Stop Loss percentage based on timeframe using.
Multiple Take Profit levels with customisable TP price percentage and position size.
Back-testing with custom time frame.
This strategy is develop for specially for automation purpose.
The strategy includes:
Entry for Long and Short.
Take Profit.
Stop Loss.
Trailing Stop Loss.
Position Size.
Exit Signal.
Risk Management Feature.
Backtesting.
Trading Alerts.
Use the strategy with alerts
This strategy is alert-ready. All you have to do is:
Go on a pair you would like to trade
Create an alert
Select the strategy as a Trigger
Wait for new orders to be sent to you
This is develop for specially for automating trading on any exchange, if you need to get that automating service for this strategy or any Tradingview strategy or indicator please contact me I am have 8 year experience on that field.
I hope you enjoy it!
Thanks,
Ranga
NYSE Market Sentiment Oscillator - Intraday w/ alertsThe ULTIMATE market sentiment indicator that combines the sentiments from the MARKET INTERNALS : $ADD ( NYSE $ADV minus $DECL ), $VOLD ( NYSE $UVOL minus $DVOL ) and $TICK ( NYSE Cumulative tick ). Sentiment is based on calculating the crossovers of moving average pairs for each of the market internals. As a result, 3 corresponding signal lines are generated + 1 combined Market Sentiment Oscillator (aka MSO) signal line.
**Important** This indicator is only meant to be used for intraday 1min-5 min timeframe only *** It may not function at higher timeframes without updating some moving average periods.
WHAT IS IT SHOWING?
Each signal lines represents the trend of the 3 market internals (TICK, ADD, VOLD). If signal line is above zero, it is in a bullish trend; below zero, bearish. The oscillating frequency of these lines are dependent on the length of moving average pairs of your choosing. A combined MSO signal line shows the combined trends of those 3 market internals, hence it represents real time market sentiment of the NYSE.
FEATURES
There are 2 display modes for this indicator:
1) On a separate pane
- in this mode, the signal lines can be toggled to oscillate along the zero line
2) On the price chart
- in this mode, the signal lines can be toggled to oscillate along the OHLC line of the price chart
- comes with Nadaraya-Watson Envelope and ATR bands
BUY/SELL SIGNALS AND STRATEGIES
By default, this indicator comes with two day trading strategies and offers long and short signals with alerts. These strategies attempts to leverage on the oscillating nature of market price movement on major NYSE indices, such as SPY, SPX, QQQ, NAS, all of which have high correlation with the market internals. However, please note that these signals offers no guarantee to profitability, so use at your own risk.
BACKGROUND COLORS SIGNIFYING TRENDS
There are options to display the background colors in 2 colors and shades.
1) Short-term sentiment
- Bright green = ADD / VOLD / TICK all in up trend
- Dimmed green = ADD / VOLD in up trend, but not TICK
- Bright red = ADD / VOLD / TICK all in down trend
- Dimmed red = ADD / VOLD in down trend, but not TICK
2) Trend Convergence
- Green = ADD / VOLD / TICK all bullish
- Red = ADD / VOLD / TICK all bearish
3) MSO
- Green = MSO bullish ( MSO signal line > 0 )
- Red = MSO bearish ( MSO signal line < 0 )
MARKET INTERNALS REAL-TIME DATA TABLE
A data table can be toggled on / off that shows the real-time sentiment and values of the three market internals. It may be useful in making quick trading decisions. The table cells are colored according to their corresponding trends.