Lite Trading Diary : equity curveDynamic trading journal with equity curve display. Detailed results with prop firm objectives, editable, $/month estimation, possibility to compare two strategies.
one line in parameter = one trade.
For each trade, specify : RR (Win, or "-1" for a stoploss), type of trade, and a comment.
The bottom left table summarizes the overall performance with some key information. RA return => Risk adjusted performance.
there is the possibility to define a "Type" : type 1, 2 or 3. It allows to split the equity curve. You can thus distinguish the different sub-strategies of your strategy, visually see their effectiveness, and be able to adjust your risk exposure accordingly.
Learn from your backtests. Identify your strengths, your weaknesses, and improve!
All the conditions to succeed in the challenge are adjustable in the parameters. Please note : drawdown on the equity curve is max drawdown. On the table => static drawdown.
Use "A random day trading" indicator to spice up your training.
I hope this will be useful for you to track your performance !
Educational
Learning Understanding ta.change//First script I have published. Constructive criticism is welcome.
// I hope this may be helpful to you.
// Initially, I did this for myself as I was getting some odd results from the ta.change function. Turns out it was my error LOL. What a surprise!
// Typical syntax: ta.change(source, value)
// value doesn't need to be included. If it isn't, it will only calculate the change between the last and current value.
// Conclusion. ta.change simply calculates the difference between a previous value/candle and the latest value/candle current value in that series. Positive number states that the recent is higher.
// Bonus :-) Function on line 34 outputs the changes in a positive figure (so as to be able to sum the changes/volatility of the series of values)
Choose Symbol, candle and Trend modeThis Pine Script code is designed for technical analysis and visualization of price movements on the TradingView platform. It serves as a tool for traders and investors to:
Price Chart Analysis: The code plots the price chart of a selected symbol and utilizes Heikin-Ashi candlesticks to visualize price movements. This aids in better understanding price trends, support and resistance levels, retracements, and other price actions.
Trend Identification: The code also employs the Exponential Moving Average (EMA) to identify the price trend. EMA is commonly used to determine the strength and direction of a trend. Traders and investors can use this information to track trends and develop trading strategies.
Buy and Sell Signals: The code generates buy and sell signals based on EMA. These signals provide information on when to consider buying or selling a specific symbol. This is particularly useful for traders when making trading decisions.
Timeframe Customization: Users can adapt the code to different timeframes. This flexibility is valuable for those looking to develop strategies for both short-term and long-term trading.
Customization: The code allows users to customize various parameters, including the symbol, timeframe, Heikin-Ashi mode, and others. This enables it to be tailored to different assets and trading styles.
Please note that this code is provided for educational and informational purposes only. It does not constitute financial advice or recommendations for specific trading actions. Any trading decisions made using this code should be based on individual research, analysis, and a clear understanding of the associated risks.
Absorbing System Support and ResistanceHello Traders :)
I am Only Fibonacci.
My purpose in coding this indicator was to detect support and resistance more easily.
What is the working principle of this indicator?
This tool detects pivot points.
If the length of the sell pin is higher than the length of the buy pin, it is considered as resistance.
It detects the formation according to the length of the pivot point and draws a line until this level is broken.
The main purpose is to add a new perspective to support and resistance detection and to prepare an educational code sequence.
The codes are open to everyone, you can develop as you wish.
In the settings you can choose whether you want to see the breakdowns, you can also choose whether the breakdowns will be with the wicks or the body.
func("RES")
func("SUP")
It is written in a functional way.
If you call "RES" inside the func method, it draws the resistors. If you throw a call other than "RES" it draws the supports.
The main concept here;
"RES" = Resistance
"SUP" = Support
3x MTF MACD v3.0MACD's on 3 different Time Frames
Indicator Information
- Each Time Frame shows start of Trend and end of trend of the MACD vs the Signal Cross
- They are labled 1,2,3 with respective up or down triangle for possible direction.
User Inputs
- configure the indicator by specifying various inputs. These inputs include colors for bullish
and bearish conditions, the time frame to use, whether to show a Simple Moving Average
(SMA) line, and other parameters.
- Users can choose time frames for analysis (like 30 minutes, 1 hour, etc.)
but they must be in mintues.
- The code also allows users to customize how the indicator looks on the chart by providing
options for position and color.
Main Calculations
- The script calculates the Simple Moving Average (SMA) based on the user-defined time
frame.
- It then determines the color of the plot (line) based on certain conditions, such as whether
the SMA is rising or falling. These conditions help users quickly identify market trends.
Label Creation
- The code creates labels that can be displayed on the chart.
These labels indicate whether there's a bullish or bearish signal.
Level Detection
- The script determines and labels key levels or points of interest in the chart based on
certain conditions.
- It can show labels like "①" and "▲" for bullish conditions and "▼" for bearish conditions.
Table Display
- There's an option to show a table on the chart that displays information about the MACD
indicator Chosen and the NUmber Bubble assocated with that time frame
- The table can include information like which time frame is being analyzed, whether the SMA
line is shown, and other relevant data.
Plotting on the Chart
- The script plots the Simple Moving Average (SMA) on the chart. The color of this line
changes based on the calculated trend conditions.
ATR (Average True Range)
- The script also plots the Average True Range (ATR) on the chart. ATR is used to measure
market volatility.
"In essence, this script is a highly customizable MACD and SMA indicator for traders. It assists traders in comprehending market trends, offering insights into different MACD cycles concerning various timeframes.
Users can configure it to match their trading strategies, and it presents information in a user-friendly manner with colors, labels, and tables.
This simplifies market analysis, allowing traders to make more informed decisions without the distraction of multiple indicators."
Harmonic PatternsHarmonic Patterns
Harmonic Pattern utilizes the recognition of specific structures that possess distinct and consecutive Fibonacci ratio alignments that quantify and validate harmonic patterns. These patterns calculate the Fibonacci aspects of these price structures to identify highly probable reversal points in the financial markets. This methodology assumes that harmonic patterns, like many patterns and cycles in life, continually repeat.
Input Parameters:
Zigzag Setup:
These group of parameters are used to identify the swing points. The script also draws the Zigzag line and swing labels based on these parameters.
Harmonic Pattern Setup:
Ignore XD leg calculations – Optionally one can choose to ignore the XD leg calculation.
Fixed value leg offset % - Fixed value leg parameters are such parameters where single value Fibonacci value is used. This makes pattern identification very rare. To overcome this one can input % value which would be used to derive the range of Fibonacci numbers for pattern identification. E.g. XD leg in Bat pattern has fixed leg of 88.6%, If we input 5% as fixed value leg offset % then instead of fixed value of 88.6%, script calculates range as 88.6% + 5% (Value 1) and 88.6% - 5% (Value 2) and uses the same for pattern identification.
The script plots a diamond shape label on the last candle of the chart. The label has been enabled with a tooltip which shows number of patterns of each type along with the time where latest pattern is located.
This script covers harmonic patterns listed in the table below. Each harmonic pattern has bullish and bearish variants. All these patterns have 4 legs known as XABCD.
The Patterns have been configured as specified in the table below. Refer to Figure 1 and Figure 2 to understand how to read and interpret the table.
Figure 1
Figure 2
HTF - Candles with polylines"HTF - Candles with polylines" draws the previous Higher TimeFrame candles with the new feature polylines .
🔶 USAGE
This publication makes it possible to see Higher Time Frame (HTF) candles on current chart, so you can see the bigger picture without switching to a HTF
The current HTF is represented with a dashed-line box, covering the recent HTF open & close
🔹 Examples :
• current timeframe 1 minute, HTF: 4 hour
• current timeframe 15 minutes, HTF: 1 Day
• current timeframe 1 hour, HTF: 1 Week
Enabling " curved " gives a nice visual effect:
"Pine - Apple" 😀
🔶 DETAILS
The candle is made by starting a polyline at the bottom left. It then goes around, connecting the open-high-low-close values while making sure the width/height of the candle correspondends with the current timeframe candles. Arriving at the top left side, the polyline is connected back with the initial start point by setting the "closed" argument of polyline.new to "true".
-> closed (series bool) If true, the drawing will also connect the first point to the last point from the `points` array, resulting in a closed polyline.
🔶 SETTINGS
• HTF + "curved"
• colours
itradesize /\ Model x RTH Gap
I’m happy to announce my model and sharing it with you as an indicator.
About the model
The model is based on a range from 18:00 until 1:30. If you are keen you probably know that it's something that based on a bit of Daye's Theory. As Daily Q4 is from 18:00 until 0:00 and I've added a 90's Q1 to it as well that's why it ended up at 1:30.
It's an accumulation range and where we are looking for some opportunities above or below it when the algo is trying to fake the traders as the high and the low of the range are both important zones for liquidity pools. This model works on almost every pair but I've been mostly focusing on indices, especially on ES, NQ, and EUR/USD.
Do not trade before 1:30 AM and do not trade this model after 6:00 AM. So any tradable setup must be valid until 6:00 AM.
*All the mentioned times are based on America/NewYork timezone.
A simple sell setup
∆ If it takes the high of the model, then look for short opportunities.
∆ The best reliable scenario is when a high is taken while retracing back to an HTF PD Array so it will end up in a failure swing, Judas swing, you name it.
∆ When a high is taken you should wait for a market structure shift then it should give a nice displacement where it should retrace.
∆ The imbalance after the shift can be on every timeframe, based on your trade idea.
∆ If there are more imbalances, your decision on which to go with (as if there is a BPR, Breaker, OB, etc.. - can change the view of an FVG).
The same story goes for a buy setup.
∆ The first target is always the EQ of the model's range.
∆ The second target could be liquidity inside the EQ and the other side of the model (optional).
∆ The third target is the other side of the model.
∆ You can always leave a runner there if you eyeing some levels outside the model.
Additional information
∆ You can use silver bullet range as an extra confirmation when you looking for the actual displacement.
∆ An RTH range is also added to the indicator (starts drawing at 9:30 when the futures market opens) as it can be used to trade in the NY session and it is a must-have thing when trading indices.
∆ The colors of every label are switched automatically based on your chart's coloring.
RSI Radar Multi Time FrameHello All!
First of all many Thanks to Tradingview and Pine Team for developing Pine Language all the time! Now we have a new feature and it's called Polylines and I developed RSI Radar Multi Time Frame . This script is an example and experimental work, you can use it as you wish.
The scripts gets RSI values from 6 different time frames, it doesn't matter the time frame you choose is higher/lower or chart time frame. it means that the script can get RSI values from higher or lower time frames than chart time frame.
It's designed to show RSI Radar all the time on the chart even if you zoom in/out or scroll left/right.
You can set OB/OS or RSI line colors. Also RSI polyline is shown as Curved/Hexagon optionally.
Some screenshots here:
Doesn't matter if you zoom out, it can show RSI radar in the visible area:
Another example:
You can change the colors, or see the RSI as Hexagon:
Time frames from seconds to 1Day in this example while chart time frame is any ( 30mins here )
Enjoy!
Volume Profile with a few polylinesThe base of "Volume Profile with a few polylines" is another script of mine, Volume Profile (Maps) .
The structure of maps is used to gather the data. However, the drawings is done with polylines.
This enables coders to draw an entire volume profile with just a few polylines, while the range is broader.
This results in the benefit to draw more "lines" than with line.new() / box.new() alone.
🔶 CONCEPTS
🔹 Polylines
polyline.new creates a new polyline instance and displays it on the chart, sequentially connecting all of the points in the `points` array with line segments.
The segments in the drawing can be straight or curved depending on the `curved` parameter.
In this script, points are connected, starting from the bottom. The created line moves up until there is a price level where a volume value needs to be displayed,
at which the line goes to the left to the concerning volume value, coming back at the same price level until the line returns to its initial x-axis,
after which the line will continue to rise until all values are displayed.
A polyline can contain maximum 10000 points (10K).
Since the line has to go back and forth, each price/volume line takes 3 points.
In the case that 20K bars all have a different price, we would need 60K points, or just 6 polylines. A maximum of 100 polylines can be displayed.
The 3 highest volume values are displayed with line.new(), each with their own colour.
🔹 Maps
A map object is a collection that consists of key - value pairs
Each key is unique and can only appear once. When adding a new value with a key that the map already contains, that value replaces the old value associated with the key .
You can change the value of a particular key though, for example adding volume (value) at the same price (key), the latter technique is used in this script.
Volume is added to the map, associated with a particular price (default close, can be set at high, low, open,...)
When the map already contains the same price (key), the value (volume) is added to the existing volume at the associated price.
A map can contain maximum 50K values, which is more than enough to hold 20K bars (Basic 5K - Premium plan 20K), so the whole history can be put into a map.
🔹 Rounding function
This publication contains 2 round functions, which can be used to widen the Volume Profile
Round
• "Round" set at zero -> nothing changes to the source number
• "Round" set below zero -> x digit(s) after the decimal point, starting from the right side, and rounded.
• "Round" set above zero -> x digit(s) before the decimal point, starting from the right side, and rounded.
Example: 123456.789
0->123456.789
1->123456.79
2->123456.8
3->123457
-1->123460
-2->123500
Step
Another option is custom steps.
After setting "Round" to "Step", choose the desired steps in price,
Examples
• 2 -> 1234.00, 1236.00, 1238.00, 1240.00
• 5 -> 1230.00, 1235.00, 1240.00, 1245.00
• 100 -> 1200.00, 1300.00, 1400.00, 1500.00
• 0.05 -> 1234.00, 1234.05, 1234.10, 1234.15
•••
🔶 FEATURES
🔹 Volume * currency
Let's take as example BTCUSD, relative to USD, 10 volume at a price of 100 BTCUSD will be very different than 10 volume at a price of 30000 (1K vs. 300K)
If you want volume to be associated with USD, enable Volume * currency . Volume will then be multiplied by the price:
• 10 volume, 1 BTC = 100 -> 1000
• 10 volume, 1 BTC = 30K -> 300K
Polylines has the attributes curved & closed.
When "curved" is enabled the drawing will connect all points from the `points` array using curved line segments.
When "closed" is enabled the drawing will also connect the first point to the last point from the `points` array, resulting in a closed polyline.
They are default disabled, but can be enabled:
🔶 DETAILS
🔹 Put
When the map doesn't contain a price, it will be added, using map.put(id, key, value)
In our code:
map.put(originalMap, price, volume)
or
originalMap.put(price, volume)
A key (price) is now associated with a value (volume) -> key : value
Since all keys are unique, we don't have to know its position to extract the value, we just need to know the key -> map.get(id, key)
We use map.get() when a certain key already exists in the map, and we want to add volume with that value.
if originalMap.contains(price)
originalMap.put(price, originalMap.get(price) + volume)
-> At the last bar, all prices (source) are now associated with volume.
🔶 SETTINGS
Source : Set source of choice; default close , can be set as high , low , open , ...
Volume & currency : Enable to multiply volume with price (see Features )
Amount of bars : Set amount of bars which you want to include in the Volume Profile
🔹 Round -> ' Round/Step '
Round -> see Concepts
Step -> see Concepts
🔹 Display Volume Profile
Offset: shifts the Volume Profile (max. 500 bars to the right of last bar, see Features )
Max width Volume Profile: largest volume will be x bars wide, the rest is displayed as a ratio against largest volume (see Features )
Colours
Curved: make lines curved
Closed: connect last with first point
🔶 LIMITATIONS
• Lines won't go further than first bar (coded).
• The Volume Profile can be placed maximum 500 bar to the right of last price.
Scoopy StacksWaffle Around Multiple
(Open, High, Low, Close) Stacks On
Pre/Post Market & (Daily, Weekly,
Monthly, Yearly) Sessions With
Meticulous Columns, Rows, Tooltips,
Colors, Custom Ideas, and Alerts.
Sessions Use Two Step Incremental Values
Default Value: (1) Shows Two Previous
(O, H, L, C); Increasing Value Swaps
Sessions With Next Two Stacks.
⬛️ KEY WORDS:
🟢 Crossover | 🔴 Crossunder
📗 High | 📕 Low
📔 Open | 📓 Close
🥇 First Idea | 🥈 Second Idea
🥉 Third Idea | 🎖️ Fourth Idea
🟥 ALERTS:
Default Option: (Per Bar)
Alerts Once Conditions Are Met
(Bar Close) Alerts When Bar Closes
Default Option: (Reg)
Alerts During Regular Market
Trading Hours, (0930-1600)
(Ext) Alerts During Extended
Market Hours, (1600-0930)
(24/7) Alerts All Day
Optional Preferences:
Regular Alerts - Stocks
Extended Alerts - Futures
24/7 Alerts - Crypto
🟧 STACKS:
Default Value: (1)
Incremental Stack Value, Increasing Value
Swaps Sessions With the Next Two Stacks
(✓) Swap Stacks?
Pre/Post Market High/Lows,
1-2 Day High/Lows, 1-2 Week High/Lows,
1-2 Month High/Lows, 1-2 Year High/Lows
( ) Swap Stacks?
Pre/Post Market Open/Close,
1-2 Day Open/Close, 1-2 Week Open/Close,
1-2 Month Open/Close, 1-2 Year Open/Close
🟨 EXAMPLES:
Default Stack:
🟢 | 📗 Pre Market High (PRE) | 4600.00
🔴 | 📕 Post Market Low (POST) | 420.00
Optional: (Open)
🟢 | 📔 Post Market Open (POST) | 4400.00
Optional: (Close)
🔴 | 📓 Pre Market Close (PRE) | 430.00
Default Stack Value: (1)
🔴 | 📗 1 Day High (1DH) | 460.00
Next Stack Value: (3)
🟢 | 📕 4 Day Low (4DL) | 420.00
Optional: (Open)
🔴 | 📔 2 Day Open (2DO) | 440.00
Optional: (Close)
🟢 | 📓 3 Day Close (3DC) | 430.00
Default Stack Value: (5)
🟢 | 📗 5 Week High (5WH) | 460.00
Next Stack Value: (7)
🔴 | 📕 8 Week Low (8WL) | 420.00
Optional: (Open)
🔴 | 📔 7 Week Open (7WO) | 4400.00
Optional: (Close)
🟢 | 📓 6 Week Close (6WC) | 430.00
Default Stack Value: (9)
🔴 | 📗 9 Month High (9MH) | 460.00
Next Stack Value: (11)
🟢 | 📕 12 Month Low (12ML) | 420.00
Optional: (Open)
🟢 | 📔 11 Month Open (11MO) | 4400.00
Optional: (Close)
🔴 | 📓 10 Month Close (10MC) | 430.00
Default Stack Value: (13)
🟢 | 📗 13 Year High (13YH) | 460.00
Next Stack Value: (15)
🟢 | 📕 16 Year Low (16YL) | 420.00
Optional: (Open)
🔴 | 📔 15 Year Open (15YO) | 4400.00
Optional: (Close)
🔴 | 📓 14 Year Close (14YC) | 430.00
🟩 TABLES:
Default Value: (1)
Moves Table Up, Down, Left, or Right
Based on Second Default Value
First Default Value: (Top Right)
Sets Table Placement, Middle Center
Allows Table To Move In All Directions
Second Default Value: (Default)
Fixed Table Position, Switching Values
Moves Direction of the Table
🟦 IDEAS:
(✓) Show Ideas?
Shows Four Ideas With Custom Texts
and Values; Ideas Are Based Around
Post-It Note Reminders with Alerts
Suggestions For Text Ideas:
Take Profit, Stop Loss, Trim, Hold,
Long, Short, Bounce Spot, Retest,
Chop, Support, Resistance, Buy, Sell
🟪 EXAMPLES:
Default Value: (5)
Shows the Custom Table Value For
Sorted Table Positions and Alerts
Default Text: (🥇)
Shown On First Table Cell and
Message Appearing On Alerts
Alert Shows: 🟢 | 🥇 | 5.00
Default Value: (10)
Shows the Custom Table Value For
Sorted Table Positions and Alerts
Default Text: (🥈)
Shown On Second Table Cell and
Message Appearing On Alerts
Alert Shows: 🔴 | 🥈 | 10.00
Default Value: (50)
Shows the Custom Table Value For
Sorted Table Positions and Alerts
Default Text: (🥉)
Shown On Third Table Cell and
Message Appearing On Alerts
Alert Shows: 🟢 | 🥉 | 50.00
Default Value: (100)
Shows the Custom Table Value For
Sorted Table Positions and Alerts
Default Text: (🎖️)
Shown On Fourth Table Cell and
Message Appearing On Alerts
Alert Shows: 🔴 | 🎖️ | 100.00
⬛️ REFERENCES:
Pre-market Highs & Lows on regular
trading hours (RTH) chart
By Twingall
Previous Day Week Highs & Lows
By Sbtnc
Screener for 40+ instruments
By QuantNomad
Daily Weekly Monthly Yearly Opens
By Meliksah55
Ribbit RangesBounce Around Multiple
(Open, High, Low, Close) Ranges
On Pre/Post Market & (Daily, Weekly,
Monthly, Yearly) Sessions With
Meticulous Lines, Labels, Tooltips,
Colors, Custom Ideas, and Alerts.
Sessions Use Two Step Incremental Values
Default Value: (1) Shows Two Previous
(O, H, L, C); Increasing Value Swaps
Sessions With Next Two Ranges.
⬛️ KEY WORDS:
🟢 Crossover | 🔴 Crossunder
📗 High | 📕 Low
📔 Open | 📓 Close
🥇 First Idea | 🥈 Second Idea
🥉 Third Idea | 🎖️ Fourth Idea
🟥 ALERTS:
Default Option: (Per Bar)
Alerts Once Conditions Are Met
(Bar Close) Alerts When Bar Closes
Default Option: (Reg)
Alerts During Regular Market
Trading Hours, (0930-1600)
(Ext) Alerts During Extended
Market Hours, (1600-0930)
(24/7) Alerts All Day
Optional Preferences:
Regular Alerts - Stocks
Extended Alerts - Futures
24/7 Alerts - Crypto
🟧 RANGES:
Default Value: (1)
Incremental Range Value, Increasing Value
Swaps Sessions With the Next Two Ranges
(✓) Swap Ranges?
Pre/Post Market High/Lows,
1-2 Day High/Lows, 1-2 Week High/Lows,
1-2 Month High/Lows, 1-2 Year High/Lows
( ) Swap Ranges?
Pre/Post Market Open/Close,
1-2 Day Open/Close, 1-2 Week Open/Close,
1-2 Month Open/Close, 1-2 Year Open/Close
🟨 EXAMPLES:
Default Range:
🟢 | 📗 Pre Market High (PRE) | 4600.00
🔴 | 📕 Post Market Low (POST) | 420.00
Optional: (Open)
🟢 | 📔 Post Market Open (POST) | 4400.00
Optional: (Close)
🔴 | 📓 Pre Market Close (PRE) | 430.00
Default Range Value: (1)
🔴 | 📗 1 Day High (1DH) | 460.00
Next Range Value: (3)
🟢 | 📕 4 Day Low (4DL) | 420.00
Optional: (Open)
🔴 | 📔 2 Day Open (2DO) | 440.00
Optional: (Close)
🟢 | 📓 3 Day Close (3DC) | 430.00
Default Range Value: (5)
🟢 | 📗 5 Week High (5WH) | 460.00
Next Range Value: (7)
🔴 | 📕 8 Week Low (8WL) | 420.00
Optional: (Open)
🔴 | 📔 7 Week Open (7WO) | 4400.00
Optional: (Close)
🟢 | 📓 6 Week Close (6WC) | 430.00
Default Range Value: (9)
🔴 | 📗 9 Month High (9MH) | 460.00
Next Range Value: (11)
🟢 | 📕 12 Month Low (12ML) | 420.00
Optional: (Open)
🟢 | 📔 11 Month Open (11MO) | 4400.00
Optional: (Close)
🔴 | 📓 10 Month Close (10MC) | 430.00
Default Range Value: (13)
🟢 | 📗 13 Year High (13YH) | 460.00
Next Range Value: (15)
🟢 | 📕 16 Year Low (16YL) | 420.00
Optional: (Open)
🔴 | 📔 15 Year Open (15YO) | 4400.00
Optional: (Close)
🔴 | 📓 14 Year Close (14YC) | 430.00
🟩 COLORS:
(✓) Swap Colors?
Text Color Is Shown Using
Background Color
( ) Swap Colors?
Background Color Is Shown
Using Text Color
🟦 IDEAS:
(✓) Show Ideas?
Plots Four Ideas With Custom Lines
and Labels; Ideas Are Based Around
Post-It Note Reminders with Alerts
Suggestions For Text Ideas:
Take Profit, Stop Loss, Trim, Hold,
Long, Short, Bounce Spot, Retest,
Chop, Support, Resistance, Buy, Sell
🟪 EXAMPLES:
Default Value: (5)
Shows the Custom Value For
Lines, Labels, and Alerts
Default Text: (🥇)
Shown On First Label and
Message Appearing On Alerts
Alert Shows: 🟢 | 🥇 | 5.00
Default Value: (10)
Shows the Custom Value For
Lines, Labels, and Alerts
Default Text: (🥈)
Shown On Second Label and
Message Appearing On Alerts
Alert Shows: 🔴 | 🥈 | 10.00
Default Value: (50)
Shows the Custom Value For
Lines, Labels, and Alerts
Default Text: (🥉)
Shown On Third Label and
Message Appearing On Alerts
Alert Shows: 🟢 | 🥉 | 50.00
Default Value: (100)
Shows the Custom Value For
Lines, Labels, and Alerts
Default Text: (🎖️)
Shown On Fourth Label and
Message Appearing On Alerts
Alert Shows: 🔴 | 🎖️ | 100.00
⬛️ REFERENCES:
Pre-market Highs & Lows on regular
trading hours (RTH) chart
By Twingall
Previous Day Week Highs & Lows
By Sbtnc
Screener for 40+ instruments
By QuantNomad
Daily Weekly Monthly Yearly Opens
By Meliksah55
Harmonic Pattern Table Inputs█ OVERVIEW
This indicator was intended as educational purpose only based on Harmonic Pattern Table (Source Code) .
Some user have different ratios in mind, thus I add input to allow user to change those ratios.
█ CREDITS
Scott M Carney, Trading Volume 3: Reaction vs. Reversal
█ CREDITS
1. List Harmonic Patterns.
2. Font size small for mobile app and font size normal for desktop.
3. Font color does automatically change follow dark / light chart theme.
4. Inputs to change ratio values.
█ USAGE / EXAMPLES
syminfo tableThis is nothing special, and it is not an indicator for investments.
I build this for my programming layout, so I can see all the output of the syminfo command.
Simply put...
It shows the commands on the left side,
and related outputs are on the right side.
TradingView.To Strategy Template (with Dyanmic Alerts)Hello traders,
If you're tired of manual trading and looking for a solid strategy template to pair with your indicators, look no further.
This Pine Script v5 strategy template is engineered for maximum customization and risk management.
Best part?
This Pine Script v5 template facilitates the dynamic construction of TradingView.TO alerts, sparing users the time and effort of mastering the TradingView.TO syntax and manually create alert commands.
This powerful tool gives much power to those who don't know how to code in Pinescript and want to automate their indicators' signals via TradingView.TO bot.
IMPORTANT NOTES
TradingView.TO is a trading bot software that forwards TradingView alerts to your brokers (examples: Binance, Oanda, Coinbase, Bybit, Metatrader 4/5, ...) for automating trading.
Many traders don't know how to create TradingView.TO dynamically-compatible alerts using the data from their TradingView scripts.
Traders using trading bots want their alerts to reflect the stop-loss/take-profit/trailing-stop/stop-loss to break options from your script and then create the orders accordingly.
This script showcases how to create TradingView.TO alerts dynamically.
TRADINGVIEW ALERTS
1) You'll have to create one alert per asset X timeframe = 1 chart.
Example: 1 alert for BTC/USDT on the 5 minutes chart, 1 alert for BTC/USDT on the 15-minute chart (assuming you want your bot to trade the BTC/USDT on the 5 and 15-minute timeframes)
2) Select the Order fills and alert() function calls condition
3) For each alert, the alert message is pre-configured with the text below
{{strategy.order.alert_message}}
Please leave it as it is.
It's a TradingView native variable that will fetch the alert text messages built by the script.
4) TradingView.TO uses webhook technology - setting a webhook URL from the alerts notifications tab is required.
KEY FEATURES
I) Modular Indicator Connection
* plug your existing indicator into the template.
* Only two lines of code are needed for full compatibility.
Step 1: Create your connector
Adapt your indicator with only 2 lines of code and then connect it to this strategy template.
To do so:
1) Find in your indicator where the conditions print the long/buy and short/sell signals.
2) Create an additional plot as below
I'm giving an example with a Two moving averages cross.
Please replicate the same methodology for your indicator, whether a MACD , ZigZag, Pivots , higher-highs, lower-lows or whatever indicator with clear buy and sell conditions.
//@version=5
indicator("Supertrend", overlay = true, timeframe = "", timeframe_gaps = true)
atrPeriod = input.int(10, "ATR Length", minval = 1)
factor = input.float(3.0, "Factor", minval = 0.01, step = 0.01)
= ta.supertrend(factor, atrPeriod)
supertrend := barstate.isfirst ? na : supertrend
bodyMiddle = plot(barstate.isfirst ? na : (open + close) / 2, display = display.none)
upTrend = plot(direction < 0 ? supertrend : na, "Up Trend", color = color.green, style = plot.style_linebr)
downTrend = plot(direction < 0 ? na : supertrend, "Down Trend", color = color.red, style = plot.style_linebr)
fill(bodyMiddle, upTrend, color.new(color.green, 90), fillgaps = false)
fill(bodyMiddle, downTrend, color.new(color.red, 90), fillgaps = false)
buy = ta.crossunder(direction, 0)
sell = ta.crossunder(direction, 0)
//////// CONNECTOR SECTION ////////
Signal = buy ? 1 : sell ? -1 : 0
plot(Signal, title = "Signal", display = display.data_window)
//////// CONNECTOR SECTION ////////
Important Notes
🔥 The Strategy Template expects the value to be exactly 1 for the bullish signal and -1 for the bearish signal
Now, you can connect your indicator to the Strategy Template using the method below or that one.
Step 2: Connect the connector
1) Add your updated indicator to a TradingView chart
2) Add the Strategy Template as well to the SAME chart
3) Open the Strategy Template settings, and in the Data Source field, select your 🔌Connector🔌 (which comes from your indicator)
Note it doesn’t have to be named 🔌Connector🔌 - you can name it as you want - however, I recommend an explicit name you can easily remember.
From then, you should start seeing the signals and plenty of other stuff on your chart.
🔥 Note that whenever you update your indicator values, the strategy statistics and visuals on your chart will update in real-time
II) BOT Risk Management:
- Max Drawdown:
Mode: Select whether the max drawdown is calculated in percentage (%) or USD.
Value: If the max drawdown reaches this specified value, set a value to halt the bot.
- Max Consecutive Days:
Use Max Consecutive Days BOT Halt: Enable/Disable halting the bot if the max consecutive losing days value is reached.
- Max Consecutive Days: Set the maximum number of consecutive losing days allowed before halting the bot.
- Max Losing Streak:
Use Max Losing Streak: Enable/Disable a feature to prevent the bot from taking too many losses in a row.
- Max Losing Streak Length: Set the maximum length of a losing streak allowed.
Margin Call:
- Use Margin Call: Enable/Disable a feature to exit when a specified percentage away from a margin call to prevent it.
Margin Call (%): Set the percentage value to trigger this feature.
- Close BOT Total Loss:
Use Close BOT Total Loss: Enable/Disable a feature to close all trades and halt the bot if the total loss is reached.
- Total Loss ($): Set the total loss value in USD to trigger this feature.
Intraday BOT Risk Management:
- Intraday Losses:
Use Intraday Losses BOT Halt: Enable/Disable halting the bot on reaching specified intraday losses.
Mode: Select whether the intraday loss is calculated in percentage (%) or USD.
- Max Intraday Losses (%): Set the value for maximum intraday losses.
Limit Intraday Trades:
- Use Limit Intraday Trades: Enable/Disable a feature to limit the number of intraday trades.
- Max Intraday Trades: Set the maximum number of intraday trades allowed.
Restart Intraday EA:
III) Order Types and Position Sizing
- Choose between market or limit orders.
- Set your position size directly in the template.
Please use the position size from the “Inputs” and not the “Properties” tab.
I know it's redundant. - the template needs this value from the "Inputs" tab to build the alerts, and the Backtester needs it from the "Properties" tab.
IV) Advanced Take-Profit and Stop-Loss Options
- Choose to set your SL/TP in either USD or percentages.
- Option for multiple take-profit levels and trailing stop losses.
- Move your stop loss to break even +/- offset in USD for “risk-free” trades.
V) Miscellaneous:
Retry order openings if they fail.
Order Types:
Select and specify order type and price settings.
Position Size:
Define the type and size of positions.
Leverage:
Leverage settings, including margin type and hedge mode.
Session:
Limit trades to specific sessions.
Dates:
Limit trades to a specific date range.
Trades Direction:
Direction: Specify the market direction for opening positions.
VI) Logger
The TradingView.TO commands are logged in the TradingView logger.
You'll find more information about it in this TradingView blog post .
WHY YOU MIGHT NEED THIS TEMPLATE
1) Transform your indicator into a TradingView.TO trading bot more easily than before
Connect your indicator to the template
Create your alerts
Set your EA settings
2) Save Time
Auto-generated alert messages for TradingView.TO.
I tested them all and checked with the support team what could/couldn’t be done.
3) Be in Control
Manage your trading risks with advanced features.
4) Customizable
Fits various trading styles and asset classes.
REQUIREMENTS
* Make sure you have your TradingView.TO account
* If there is any issue with the template, ask me in the comments section - I’ll answer quickly.
BACKTEST RESULTS FROM THIS POST
1) I connected this strategy template to a dummy Supertrend script.
I could have selected any other indicator or concept for this script post.
I wanted to share an example of how you can quickly upgrade your strategy, making it compatible with TradingView.TO.
2) The backtest results aren't relevant for this educational script publication.
I used realistic backtesting data but didn't look too much into optimizing the results, as this isn't the point of why I'm publishing this script.
This strategy is a template to be connected to any indicator - the sky is the limit. :)
3) This template is made to take 1 trade per direction at any given time.
Pyramiding is set to 1 on TradingView.
The strategy default settings are:
* Initial Capital: 100000 USD
* Position Size: 1%
* Commission Percent: 0.075%
* Slippage: 1 tick
* No margin/leverage used
Pivot Support & Resistance [DeltaAlgo]Pivot Support & Resistance Indicator - DeltaAlgo
Concept:
The "Pivot Support & Resistance" indicator is designed to help traders identify and visualize key support and resistance levels based on pivot points. It calculates and plots lines representing these levels on a price chart. This indicator's concept is rooted in the idea that pivot points can act as significant price reference points, which can be instrumental in making trading decisions.
Settings:
Pivot Period: Users can customize the period for calculating pivot points. This period determines how many bars are considered when calculating support and resistance levels.
Maximum Lines: The indicator allows traders to set a maximum number of support and resistance lines that will be displayed. When the maximum is reached, older lines are removed to keep the chart uncluttered.
Line Colors and Width: Users can choose the colors and width for both the support and resistance lines to tailor the indicator's appearance to their preferences.
Use Case:
The "Pivot Support & Resistance" indicator is beneficial for traders who employ pivot points in their technical analysis and trading strategies. It aids in identifying potential reversal and breakout levels, which can inform trading decisions. Traders can use this indicator to:
Identify key price levels: The indicator highlights significant support and resistance levels based on pivot points.
Plan entries and exits: Traders can incorporate these levels into their trading strategies to make more informed decisions about when to enter or exit trades.
Manage risk: Knowing where support and resistance levels are can help traders set stop-loss and take-profit orders more effectively.
This indicator simplifies the process of identifying and visualizing pivot-based support and resistance levels, making it a valuable tool for traders who rely on these levels in their technical analysis. It helps streamline the decision-making process and enhances overall trading effectiveness.
Forex Market Fundamental indicatorsThese explanations are provided in both English and Persian languages.
You can read the description in Persian below.
این توضیحات به دو زبان انگلیسی و فارسی ارائه شده است.
در زیر می توانید توضیحات را به زبان فارسی بخوانید.
If you are looking for a fundamental indicator, We suggest you use this indicator.
It provides an advanced and leading model for fundamental market analysis.
The indexes which are used in the “Indicator” include: unemployment rates, GDP, inflation, and M1 money supply.
For the indices of this indicator, a safe range is defined by the central bank of each country.
For example, the inflation target for countries in different periods has specific limits:
United States: 2%
United Kingdom: 2%
Canada: 2%
Australia: 2%
New Zealand: 1 to 3%
Japan: 0 to 2%
Switzerland: 0 to 2%
European Union: 2%
Considering the past events of each country and the goals of each country and the long-term average of the indicators as well as what the economic officials announce, it can be recognized that there is a red line for each country. Therefore, if the value of the index reaches those red lines, it will definitely affect the monetary and financial policies of those countries.
For example, we estimate that if the monthly inflation rate in Japan, Switzerland, the United Kingdom, and the European Union is more than 0.33, the monetary policies of those countries will try to reduce the inflation. They will try to control inflation by using tools such as increasing interest rates, and from our point of view, this is a positive point in the direction of increasing the value of that country's currency.
Likewise, if the monthly inflation rate in the United States, Canada, Australia or New Zealand is below -0.1, our view is that: these countries will try to stimulate the market with policies such as interest rate cuts or liquidity increases. And these economic policies lead to a decrease in the value of the currency of these countries. As a result, we give a negative score to that country's currency.
To be more precise, the view that we have implemented in this indicator is as follows:
Let's say your symbol chart is on the USDJPY pair.
By default, the possibility of growth in the value of each of the currencies relative to each other is 50 to 50.
But suppose the monthly inflation rate in the United States is -0.15.
Our analysis is that the United States will probably try to reduce the value of its currency to control it (due to the adoption of expansionary policies).
As a result, we reduce the probability of growth in the value of the US dollar relative to the Japanese yen by 5% to 45%, and we also increase the probability of growth in the value of the yen to the dollar to 55%.
Now suppose the monthly inflation rate in Japan is 0.4. Then our analysis is: Japan will try to increase the value of its national currency to control the inflation rate (using contractionary policies).
As a result, we reduce the probability that the US dollar will appreciate against the Japanese yen to 40%. Also, we increase the probability of yen to dollar growth by 60%.
Using this indicator and according to the same symbol, based on each of the five economic indicators, we examine both currencies of the symbol. And finally, based on the surveys, we get the probability of price growth between 0 and 100 percent. And we also determine the possibility of price reduction. However, the probability of zero or one hundred is almost impossible.
If you have any questions about our view in relation to other indicators, you can comment and ask.
We will answer you.
These questions and answers will help and evolute both of us. We are trying to keep this Indicator up to date and improve it with the most logical arguments.
The important point is that this indicator never claims to always be correct. The forecast of this Indicator may not be realized or may be realized in different and longer time periods.
As a fact for any financial expert, we should know that there are many parameters that affect the price, and this Indicator cannot analyze all of them. Therefore, look at this Indicator as an auxiliary tool and do not expect miracles from it.
Head of programmers:
Mr. Mojtaba askari - Mr. Mohammad sanaei
Developers:
Mrs. Hamideh Azari
Mr. Peyman Mahdavi
Mr. Mohsen shabani
Mr. Moslem Balasi
Mr. Shahrokh Nakhaei
اگر به دنبال یک اندیکاتور بر پایه تحلیل بنیادی هستید، پیشنهاد می کنیم از این اندیکاتور استفاده کنید.
این یک مدل پیشرفته و پیشرو برای تحلیل بنیادی بازار ارائه می دهد.
شاخص هایی که در این «اندیکاتور» بررسی شده، عبارتند از: نرخ بیکاری، تولید ناخالص داخلی، تورم، نرخ بهره و حجم نقدینگی M1.
برای شاخص های این اندیکاتور، یک محدوده امن توسط بانک مرکزی هر کشور تعریف شده است.
به عنوان مثال، هر کشور، در دوره های مختلف، هدف تورمی خاصی تعیین میکند:
ایالات متحده: 2%
بریتانیا: 2%
کانادا: 2%
استرالیا: 2%
نیوزلند: 1 تا 3 درصد
ژاپن: 0 تا 2 درصد
سوئیس: 0 تا 2 درصد
اتحادیه اروپا: 2%
با توجه به اتفاقات گذشته هر کشور و اهداف هر کشور و میانگین بلندمدت شاخصها و همچنین آنچه مسئولان اقتصادی اعلام میکنند، میتوان تشخیص داد که برای هر کشور یک خط قرمز وجود دارد. بنابراین اگر مقدار شاخص به آن خطوط قرمز برسد، قطعا بر سیاست های پولی و مالی آن کشورها تأثیر خواهد گذاشت.
به عنوان مثال، ما تخمین می زنیم که اگر نرخ تورم ماهانه در ژاپن، سوئیس، انگلستان و اتحادیه اروپا بیش از 0.33 باشد، سیاست های پولی آن کشورها سعی در کاهش تورم خواهد داشت. آنها سعی خواهند کرد با استفاده از ابزارهایی مانند افزایش نرخ بهره، تورم را کنترل کنند و از نظر ما این نکته مثبتی در جهت افزایش ارزش پول آن کشور است.
به همین ترتیب، اگر نرخ تورم ماهانه در ایالات متحده، کانادا، استرالیا یا نیوزلند زیر 0.1- باشد، نظر ما این است که: این کشورها با سیاست هایی مانند کاهش نرخ بهره یا افزایش نقدینگی سعی در تحریک بازار خواهند داشت. و این سیاست های اقتصادی منجر به کاهش ارزش پول این کشورها می شود. در نتیجه به واحد پول آن کشور نمره منفی می دهیم.
به بیان دقیق تر، دیدگاهی که در این اندیکاتور پیاده سازی کرده ایم به شرح زیر است:
فرض کنید نماد نمودار شما روی جفت ارز "USDJPY" است.
به طور پیش فرض امکان رشد ارزش هر یک از ارزها نسبت به یکدیگر 50 تا 50 در نظر گرفته شده.
اما فرض کنید نرخ تورم ماهانه در ایالات متحده 0.15- باشد.
تحلیل ما این است که احتمالا ایالات متحده برای کنترل آن (با استفاده از سیاست های انبساطی) سعی در کاهش ارزش پول خود خواهد داشت.
در نتیجه احتمال رشد ارزش دلار آمریکا نسبت به ین ژاپن را با 5 درصد کاهش به 45 درصد و همچنین احتمال رشد ارزش ین به دلار را به 55 درصد افزایش می دهیم.
حال فرض کنید نرخ تورم ماهانه در ژاپن 0.4 باشد. سپس تحلیل ما این است: ژاپن سعی خواهد کرد ارزش پول ملی خود را افزایش دهد تا نرخ تورم را کنترل کند (با استفاده از سیاست های انقباضی).
در نتیجه، احتمال افزایش ارزش دلار آمریکا در برابر ین ژاپن را به 40 درصد کاهش می دهیم. همچنین، احتمال رشد ین ژاپن به دلار آمریکا را به 60 درصد افزایش می دهیم.
با استفاده از این شاخص و با توجه به همین نماد، بر اساس هر یک از پنج شاخص اقتصادی، هر دو ارز نماد را بررسی می کنیم. و در نهایت بر اساس بررسی های انجام شده احتمال رشد قیمت بین 0 تا 100 درصد را به دست می آوریم و امکان کاهش قیمت را نیز تعیین می کنیم. با این حال، احتمال صفر یا صد تقریبا غیرممکن است.
اگر در مورد دیدگاه ما در ارتباط با سایر شاخص ها سوالی دارید می توانید در قسمت کامنت ها از ما بپرسید.
ما به شما پاسخ خواهیم داد.
این پرسش ها و پاسخ ها به هر دوی ما کمک می کند و باعث رشد و تکامل همه ما می شود. ما سعی میکنیم این اندیکاتور را به روز نگه داریم و با منطقی ترین استدلال ها آن را بهبود ببخشیم.
نکته مهم این است که این اندیکاتور هرگز ادعا نمیکند همیشه درست است. پیش بینی این شاخص ممکن است محقق نشود یا در دوره های زمانی مختلف و طولانی تر محقق شود.
به عنوان یک واقعیت ، هر کارشناس و فعال حوزه مالی میداند که پارامترهای زیادی وجود دارد که بر قیمت تاثیر میگذارد و این اندیکاتور نمیتواند همه آنها را تحلیل کند. بنابراین به این اندیکاتور به عنوان یک ابزار کمکی نگاه کنید و از آن انتظار معجزه نداشته باشید.
سرپرست برنامه نویسان:
آقای محمد ثنائی - آقای مجتبی عسکری
توسعه دهندگان:
خانم حمیده آذری
آقای پیمان مهدوی
آقای محسن شعبانی
آقای مسلم بلاسی
آقای شاهرخ نخعی
Technical Analysis Notes👉 Hello trader.
- In the process of monitoring the list of trading pairs such as stocks, cryptocurrencies... I often mark signals such as: RSI divergence, MACD, Stochatic, RSI trendline, Trendline..."by hand" , like recording on a drawing board, or excell, notepad... Therefore, taking notes is very limited. In addition, each time frame gives different, inconsistent signals and it is difficult to analyze the trend of a trading pair. somehow.
- After a period of careful research, I created the "Technical Analysis notes" indicator to solve the problems mentioned above, and after using it, I personally found it very effective to mark it. Trading signals as well as trend analysis across time frames from small to large.
- For example: On weekends, I often use automatic scanning indicators (about 200 codes) RSI divergence, RSI trendline, Trendlines, MACD-histogram .. within a week, then mark trading pairs when there are signals. Signals such as RSI cutting its trend line, price breaking through the trend line, Histogram MACD divergence... in the weekly frame, from there look to the D1, H4 frames to see the next signals in those frames to find the direction of intersection. Move in the same direction as the weekly frame signal to trade in the same trend. From that analysis, I limit my ability to go against the trend, and wait patiently for the signals that have been noted before.
- On this board you can monitor 10 transaction codes (in real time)
- On this table I have given 4 different time frames (can be customized in settings)
- I add Kumo Cloud (ichimoku) signals on 4 time frames so that people can easily recognize the trend when the price is above the cloud (green circle), in the cloud (white circle), below the cloud (green circle). red circle)
- I add fast typing mode, shortcut typing depending on each person's description including 16 fast typing modes (for example: "ru:RSI br up" in my understanding means the RSI line has broken above the trend line direction)
- From the above example "ru:RSI br up" the sign ' : ' is the separator that must be present to interpret the word 'ru' as being typed quickly, and 'RSI br up' is the part that explains the content of that word typed quickly.
- In those 16 quick typing boxes (divided into 4 rows), the first 3 rows are colored with custom boxes for each person. The last remaining row is not filled.
- The content of note boxes can be hidden in the settings using the check box.
- In particular, the private notes column cannot be hidden, because it is the column for recording, synthesizing, analyzing, identifying main trends, or waiting points to place orders... (This box is the most important in my opinion. ..)
- Has a super smart warning mode (customizable) when Kumo cloud signals are in the same color on 4 time frames for the most certain trend (green - bullish, red - bearish)
- In the warning section, you can adjust from 4 time frames to 3 time frames, 2 time frames, 1 time frame.
- Alert mode lists exact code names when one or more codes qualify. (eg BTC, ADA, BNB...)
--------------------------------------------------------------------------------------------------------------------
👉 Vietnamess
- Trong quá trình theo dõi danh sách các cặp giao dịch như cổ phiếu, tiền điện tử...tôi thường đánh dấu các tín hiệu như : phân kì RSI, MACD, Stochatic, trendline RSI, Trendline ..."bằng tay", như ghi trên bảng vẽ, hoặc excell, notepad...Vì vậy ghi chép rất hạn chế ngoài ra mỗi khung thời gian cho các tín hiệu khác nhau, không đồng nhất và rất khó để phân tích xu hướng của một cặp giao dịch nào đó.
- Sau một thời gian nghiên cứu kĩ lưỡng tôi có lập lên được chỉ báo "ghi chép Phân tích kĩ thuật " nhằm giải quyết các vấn đề nêu như trên, và sau quá trình dùng, cá nhân tôi thấy rất hiệu quả khi đánh dấu các tín hiệu giao dịch cũng như phân tích xu hướng qua các khung thời gian từ nhỏ đến lớn.
- Ví dụ: Cuối tuần tôi thường dùng chỉ báo quét tự động(khoảng 200 mã) RSI phân kì, RSI trendline, Trendlines , MACD-histogram .. trong khung 1 tuần, sau đó đánh dấu những cặp giao dịch khi có những tín hiệu như RSI cắt đường xu hướng của nó, giá đột phá đường xu hướng, phân kì Histogram MACD.. trong khung tuần, từ đó tìm đến những khung D1,H4 xem các tín hiệu tiếp theo trong các khung đó để tìm hướng giao dịch cùng hướng với tín hiệu khung tuần để giao dịch cùng xu hướng. Từ những phân tích đó tôi hạn chế được đi ngược xu hướng, và kiên nhẫn chờ đợi khi có tín hiệu được đã ghi chú từ trước.
- Trên bảng này có thể theo õi được 10 mã giao dịch(theo thời gian thực)
- Trên bảng này tôi có đưa ra 4 khung thời gian khác nhau(có thể tùy chỉnh trong thiết lập)
- Tôi đưa thêm tín hiệu Mây Kumo( ichimoku) trên 4 khung thời gian để mọi người từ đó dễ dàng nhận biết xu hướng khi giá trên mây(dấu tròn xanh lá) , trong mây(dấu tròn trắng) , dưới mây(dấu tròn đỏ)
- Tôi đưa thêm chế độ gõ nhanh, gõ tắt tùy theo diễn tả của mỗi người gồm 16 chế độ gõ nhanh (ví dụ: "ru:RSI br up" theo ý hiểu của tôi là đường RSI đã phá vỡ lên trên đường xu hướng)
- Từ ví dụ trên "ru:RSI br up" dấu ' : ' là ngăn cách phải có để diễn giải từ 'ru' là gõ nhanh, còn 'RSI br up' là phần diễn giải nội dung của từ gõ nhanh đó
- Trong 16 ô gõ nhanh đó(được chia làm 4 hàng) có 3 hàng đầu được tô màu ô tùy chỉnh cầu mỗi người. hàng cuối cùng còn lại không được tô.
- Nội dung các ô ghi chú có thể được ẩn hiện trong mục cài đặt bằng ô dấu tích.
- Đặc biệt cột ghi chú riêng tư không ẩn được, vì đó là cột ghi chép, tổng hợp , phân tích , nhận định xu hướng chính, hay điểm chờ để đặt lệnh...(ô này theo tôi là quan trọng nhất...)
- Có chế độ cảnh báo siêu thông minh(có thể tùy chỉnh) khi tín hiệu mây Kumo cùng trên 4 khung thời gian cùng màu cho xu hướng chắc chắn nhất(xanh- tăng giá, đỏ- giảm giá)
- Trong mục cảnh báo có thể điều chỉnh từ 4 khung thời gian xuống còn 3 khung thời gian, 2 khung thời gian, 1 khung thời gian.
- Chế độ cảnh báo được liệt kê tên mã chính xác khi một hay nhiều mã đủ điều kiện .(ví dụ BTC , ADA , BNB...)
ProfitView Strategy TemplateHello traders,
This script took me a full week of coding/testing, sweat, and tears - and I’m too nice as I’m giving it for free to the community.
If you're tired of manual trading and looking for a solid strategy template to pair with your indicators, look no further.
This Pine Script v5 strategy template is engineered for maximum customization and risk management.
Best part?
This Pine Script v5 template facilitates the dynamic construction of ProfitView alerts, sparing users the time and effort of mastering the ProfitView syntax and manually creating alert commands.
This powerful tool gives much power to those who don't know how to code in Pinescript and want to automate their indicators' signals via the ProfitView Chrome extension.
IMPORTANT NOTES
ProfitView is a trading bot software that forwards TradingView alerts to your brokers (examples: Binance, Oanda, Coinbase, Bybit, etc.) for automating trading.
Many traders don't know how to dynamically create ProfitView-compatible alerts using the data from their TradingView scripts.
Traders using trading bots want their alerts to reflect the stop-loss/take-profit/trailing-stop/stop-loss to break options from your script and then create the orders accordingly.
This script showcases how to create ProfitView alerts dynamically.
TRADINGVIEW ALERTS
1) You'll have to create one alert per asset X timeframe = 1 chart.
Example: 1 alert for EUR/USD on the 5 minutes chart, 1 alert for EUR/USD on the 15-minute chart (assuming you want your bot to trade the EUR/USD on the 5 and 15-minute timeframes)
2) Select the Order fills and alert() function calls condition
3) For each alert, the alert message is pre-configured with the text below
{{strategy.order.alert_message}}
Please leave it as it is.
It's a TradingView native variable that will fetch the alert text messages built by the script.
4) ProfitView doesn't use webhook technology, so setting a webhook URL from the alerts notifications tab is unnecessary.
KEY FEATURES
I) Modular Indicator Connection
* plug your existing indicator into the template.
* Only two lines of code are needed for full compatibility.
Step 1: Create your connector
Adapt your indicator with only 2 lines of code and then connect it to this strategy template.
To do so:
1) Find in your indicator where the conditions print the long/buy and short/sell signals.
2) Create an additional plot as below
I'm giving an example with a Two moving averages cross.
Please replicate the same methodology for your indicator, whether a MACD , ZigZag, Pivots , higher-highs, lower-lows or whatever indicator with clear buy and sell conditions.
//@version=5
indicator("Supertrend", overlay = true, timeframe = "", timeframe_gaps = true)
atrPeriod = input.int(10, "ATR Length", minval = 1)
factor = input.float(3.0, "Factor", minval = 0.01, step = 0.01)
= ta.supertrend(factor, atrPeriod)
supertrend := barstate.isfirst ? na : supertrend
bodyMiddle = plot(barstate.isfirst ? na : (open + close) / 2, display = display.none)
upTrend = plot(direction < 0 ? supertrend : na, "Up Trend", color = color.green, style = plot.style_linebr)
downTrend = plot(direction < 0 ? na : supertrend, "Down Trend", color = color.red, style = plot.style_linebr)
fill(bodyMiddle, upTrend, color.new(color.green, 90), fillgaps = false)
fill(bodyMiddle, downTrend, color.new(color.red, 90), fillgaps = false)
buy = ta.crossunder(direction, 0)
sell = ta.crossunder(direction, 0)
//////// CONNECTOR SECTION ////////
Signal = buy ? 1 : sell ? -1 : 0
plot(Signal, title = "Signal", display = display.data_window)
//////// CONNECTOR SECTION ////////
Important Notes
🔥 The Strategy Template expects the value to be exactly 1 for the bullish signal and -1 for the bearish signal
Now, you can connect your indicator to the Strategy Template using the method below or that one.
Step 2: Connect the connector
1) Add your updated indicator to a TradingView chart
2) Add the Strategy Template as well to the SAME chart
3) Open the Strategy Template settings, and in the Data Source field, select your 🔌Connector🔌 (which comes from your indicator)
Note it doesn’t have to be named 🔌Connector🔌 - you can name it as you want - however, I recommend an explicit name you can easily remember.
From then, you should start seeing the signals and plenty of other stuff on your chart.
🔥 Note that whenever you update your indicator values, the strategy statistics and visuals on your chart will update in real-time
II) BOT Risk Management:
- Max Drawdown:
Mode: Select whether the max drawdown is calculated in percentage (%) or USD.
Value: If the max drawdown reaches this specified value, set a value to halt the bot.
- Max Consecutive Days:
Use Max Consecutive Days BOT Halt: Enable/Disable halting the bot if the max consecutive losing days value is reached.
- Max Consecutive Days: Set the maximum number of consecutive losing days allowed before halting the bot.
- Max Losing Streak:
Use Max Losing Streak: Enable/Disable a feature to prevent the bot from taking too many losses in a row.
- Max Losing Streak Length: Set the maximum length of a losing streak allowed.
Margin Call:
- Use Margin Call: Enable/Disable a feature to exit when a specified percentage away from a margin call to prevent it.
Margin Call (%): Set the percentage value to trigger this feature.
- Close BOT Total Loss:
Use Close BOT Total Loss: Enable/Disable a feature to close all trades and halt the bot if the total loss is reached.
- Total Loss ($): Set the total loss value in USD to trigger this feature.
Intraday BOT Risk Management:
- Intraday Losses:
Use Intraday Losses BOT Halt: Enable/Disable halting the bot on reaching specified intraday losses.
Mode: Select whether the intraday loss is calculated in percentage (%) or USD.
- Max Intraday Losses (%): Set the value for maximum intraday losses.
Limit Intraday Trades:
- Use Limit Intraday Trades: Enable/Disable a feature to limit the number of intraday trades.
- Max Intraday Trades: Set the maximum number of intraday trades allowed.
Restart Intraday EA:
- Use Restart Intraday EA: Enable/Disable a feature to restart the bot at the first bar of the next day if it has been stopped with an intraday risk management safeguard.
III) Order Types and Position Sizing
- Choose between market, limit, or stop orders.
- Set your position size directly in the template.
Please use the position size from the “Inputs” and not the “Properties” tab.
I know it's redundant. - the template needs this value from the "Inputs" tab to build the alerts, and the Backtester needs it from the "Properties" tab.
IV) Advanced Take-Profit and Stop-Loss Options
- Choose to set your SL/TP in either pips or percentages.
- Option for multiple take-profit levels and trailing stop losses.
- Move your stop loss to break even +/- offset in pips for “risk-free” trades.
V) Miscellaneous
Retry order openings if they fail.
Order Types:
Select and specify order type and price settings.
Position Size:
Define the type and size of positions.
Leverage:
Leverage settings, including margin type and hedge mode.
Session:
Limit trades to specific sessions.
Dates:
Limit trades to a specific date range.
Trades Direction:
Direction: Specify the market direction for opening positions.
VI) Notifications (Telegram/Discord/Email/IFTTT/Twilio/SMS)
Customize notifications sent to Telegram, Discord, Email, IFTTT, Twilio, and ProfitView Logger.
VII) Logger
The ProfitView commands are logged in the TradingView logger.
You'll find more information about it in this TradingView blog post .
WHY YOU MIGHT NEED THIS TEMPLATE
1) Transform your indicator into a ProfitView trading bot more easily than before
Connect your indicator to the template
Create your alerts
Set your EA settings
2) Save Time
Auto-generated alert messages for ProfitView.
I tested them all and checked with the support team what could/couldn’t be done.
3) Be in Control
Manage your trading risks with advanced features.
4) Customizable
Fits various trading styles and asset classes.
REQUIREMENTS
* Make sure you have your ProfitView account and do the settings correctly in your Chrome extension. If you don't know how to do it, read the documentation + ask for help in the ProfitView Discord support channel.
* If there is any issue with the template, ask me in the comments section - I’ll answer quickly.
BACKTEST RESULTS FROM THIS POST
1) I connected this strategy template to a dummy Supertrend script.
I could have selected any other indicator or concept for this script post.
I wanted to share an example of how you can quickly upgrade your strategy, making it compatible with ProfitView.
2) The backtest results aren't relevant for this educational script publication.
I used realistic backtesting data but didn't look too much into optimizing the results, as this isn't the point of why I'm publishing this script.
This strategy is a template to be connected to any indicator - the sky is the limit. :)
3) This template is made to take 1 trade per direction at any given time.
Pyramiding is set to 1 on TradingView.
The strategy default settings are:
* Initial Capital: 100000 USD
* Position Size: 1%
* Commission Percent: 0.075%
* Slippage: 1 tick
* No margin/leverage used
Best regards,
Dave
[BCT] Option Pricing via Markov Chain Monte Carlo SimulationOverview:
This script offers a toolkit for quantitative options trading, using Monte Carlo simulations based on actual historical returns to model potential future price paths for underlying assets. A range of metrics related to options trading are also provided.
Monte Carlo Simulations:
The script employs Monte Carlo simulations to model future price paths based on the historical returns of the underlying asset. These simulated paths are represented as parabolas at the 2-sigma, 25th percentile, and median levels for quick reference.
Methodologies:
For calculating options prices at At-the-Money (or any user-selected strike), two methodologies are used:
Simple Averaging: Takes the mean of the simulated asset price paths.
Kernel Density Estimation (KDE): Applied to the simulated asset price paths to produce a smoothed estimate of its probability density function, thereby aiding in a more nuanced option price calculation.
Bootstrap Resampling:
Bootstrap resampling is specifically applied to the simulated asset price paths to generate an estimate of the standard deviation of the options prices. Note that while bootstrap methods are employed, they serve as statistical tools and do not guarantee statistical reliability.
Metrics Displayed:
Model-Estimated At-the-Money (or selected strike) Straddle Price
Model-Estimated At-the-Money (or selected strike) Call Price
Model-Estimated At-the-Money (or selected strike) Put Price
Model-Estimated Standard deviation for Option Prices from simulated price paths
Underlying Monte Carlo Simulation Results (represented as parabolas at the 2 sigma, 25 percentile and median)
This is not financial advice. Use at your own risk.
Disclaimer: Options trading carries a high level of risk and may not be suitable for all investors. This script is intended to serve as an educational tool and should not be considered financial advice. While designed to aid in decision-making, the script's indicators are not guarantees of performance or outcomes. Always conduct your own due diligence before making trading decisions.
Machine Learning using Neural Networks | EducationalThe script provided is a comprehensive illustration of how to implement and execute a simplistic Neural Network (NN) on TradingView using PineScript.
It encompasses the entire workflow from data input, weight initialization, implicit neuron calculation, feedforward computation, backpropagation for weight adjustments, generating predictions, to visualizing the Mean Squared Error (MSE) Loss Curve for monitoring the training phase.
In the visual example above, you can see that the prediction is not aligned with the actual value. This is intentional for demonstrative purposes, and by incrementing the Epochs or Learning Rate, you will see these two values converge as the accuracy increases.
Hyperparameters:
Learning Rate, Epochs, and the choice between Simple Backpropagation and a verbose version are declared as script inputs, allowing users to tailor the training process.
Initialization:
Random initialization of weight matrices (w1, w2) is performed to ensure asymmetry, promoting effective gradient updates. A seed is added for reproducibility.
Utility Functions:
Functions for matrix randomization, sigmoid activation, MSE loss calculation, data normalization, and standardization are defined to streamline the computation process.
Neural Network Computation:
The feedforward function computes the hidden and output layer values given the input.
Two variants of the backpropagation function are provided for weight adjustment, with one offering a more verbose step-by-step computation of gradients.
A wrapper train_nn function iterates through epochs, performing feedforward, loss computation, and backpropagation in each epoch while logging and collecting loss values.
Training Invocation:
The input data is prepared by normalizing it to a value between 0 and 1 using the maximum standardized value, and the training process is invoked only on the last confirmed bar to preserve computational resources.
Output Forecasting and Visualization:
Post training, the NN's output (predicted price) is computed, standardized and visualized alongside the actual price on the chart.
The MSE loss between the predicted and actual prices is visualized, providing insight into the prediction accuracy.
Optionally, the MSE Loss Curve is plotted on the chart, illustrating the loss trajectory through epochs, assisting in understanding the training performance.
Customizable Visualization:
Various inputs control visualization aspects like Chart Scaling, Chart Horizontal Offset, and Chart Vertical Offset, allowing users to adapt the visualization to their preference.
-------------------------------------------------------
The following is this Neural Network structure, consisting of one hidden layer, with two hidden neurons.
Through understanding the steps outlined in my code, one should be able to scale the NN in any way they like, such as changing the input / output data and layers to fit their strategy ideas.
Additionally, one could forgo the backpropagation function, and load their own trained weights into the w1 and w2 matrices, to have this code run purely for inference.
-------------------------------------------------------
While this demonstration does create a “prediction”, it is on historical data. The purpose here is educational, rather than providing a ready tool for non-programmer consumers.
Normally in Machine Learning projects, the training process would be split into two segments, the Training and the Validation parts. For the purpose of conveying the core concept in a concise and non-repetitive way, I have foregone the Validation part. However, it is merely the application of your trained network on new data (feedforward), and monitoring the loss curve.
Essentially, checking the accuracy on “unseen” data, while training it on “seen” data.
-------------------------------------------------------
I hope that this code will help developers create interesting machine learning applications within the Tradingview ecosystem.
NCI Trading Plan - By LightNCINCI Trading Plan - By LightNCI
NCI, which stands for New Concept Integration by Jayce PHAM, is a comprehensive approach that incorporates various critical aspects of trading to provide a logical, structured, and integrated approach to the financial markets. NCI covers market structure, key levels, smart money concepts, multiple timeframes and market cycles
About the NCI Trading Plan Indicator
The NCI Trading Plan is just a table allowing traders to keep track of multiple assets on a single chart, ensuring a comprehensive overview of trading statuses and strategies for each asset. The status is not automatically update. Using the NCI strategy, you may update it yourself the status of each asset.
Features
1. Display up to 10 different assets: Designed to support multi-asset trading strategies.
2. Dynamic Status Indication: Visualize the trading status for each asset:
i. Monitor: Asset is under review or surveillance.
ii. Confirmation: A potential trading signal or setup is being confirmed.
iii. Entry Set: An order for the asset has been placed.
iv. Forward-Test: An asset under monitored for it to being forward test.
3. Strategy Indication: Each asset can be tagged with a specific strategy identifier:
i. CKL: Confluence Key Level
ii. UKL: Un-Confluence Key Level
iii. SMC: Smart Money Concept
iv. BRT: Break & Re-Test
v. RTNKL: Re-Test of New Key Level
4. Customisable Display: Choose which assets you wish to display with a simple toggle on/off feature.
5. Stylisation: Color-code the statuses, table and fonts to suit your visual preference.
How to use
1. Toggle Display: Use the "Show Asset" checkboxes to determine which assets are visible.
2. Asset Name: Assign a name or symbol to each asset.
3. Status Selection: Choose the current trading status for each asset.
4. Strategy Selection: Assign a trading strategy to each asset.
5. Style: Customise the appearance of your trading plan by selecting preferred colours for different statuses and headers.
Conclusion
The NCI Trading Plan ensures a systematic and organised approach to multi-asset trading. By maintaining a visual overview of various assets and their corresponding trading statuses and strategies, traders can efficiently manage their portfolio and ensure timely decision-making.
Tip: To reset or modify an asset's status or strategy, simply adjust the settings in the panel on the left. The table will update in real-time.
WealthElf - Major Market DrawdownsThis simple indicator plots major market events onto the face of any chart, thus providing context to the effect the incident on any ticker