Copy/Paste Levels Creator ToolThis indicator is for making levels to enter into the Copy/Paste Levels Indicator, This description will serve as a guide on how to use this tool to export levels for sharing!
Copy/Paste Levels Indicator:
Once you add this indicator to your chart it will pop up with a confirmation box for quick access to adding levels, You can see a snapshot of the settings UI on the left in the chart in this post.
If you want to just add the indicator to your chart press "apply" and you will be able to add levels by going into the settings for the indicator. Otherwise, Just fill out the settings and only check on the boxes you need (minimum 1).
All values are default, and the only boxes that need to be filled out are the Ticker and Lvls.
In the lvls box, insert your levels separated by commas(,) it is preferred that you do not have any spaces in the lvls box, however in the code, I have a piece to remove spaces from this box.
Now The Important Part!
As you may notice, this indicator does not display anything. Its main function is to export formatted text to be entered into the Copy/Paste Levels Indicator.
The way we do this is through email alerts .
After inputting levels to Export, Go to a live chart and set an alert for this indicator, check the box for "Email Alerts".
This will send the alert message to your email when it fires.
After the alert fires,
Check your email, you will have a message containing the formatted levels, ready to be copy and pasted into the other indicator!
How does the alert fire?
I have the alert function set to fire on every calculation of the indicator because of this,
This indicator will alert immediately , on any LIVE chart.
Note: After the alert fires, it is probably a good idea to immediately delete the alert, or else you will get an alert on ever candle with the same information you have already exported.
What if its after market and the chart is not ticking?
When making levels on off hours, remember to set the alert (for this indicator) on a live chart such as BTC.
Remember: The chart you are on does not have to be the one you are making levels for. This indicator is simple an interface.
Enjoy!
Copypaste
Copy/Paste LevelsCopy/Paste Levels allows levels to be pasted onto your chart from a properly formatted source.
This tool streamlines the process of adding lines to your chart, and sharing lines from your chart.
More than one ticker at a time!
This indicator will only draw lines on charts it has values for!
This means you can input levels for every ticker you need all at once, one time, and only be displayed the levels for the current chart you are looking at. When you switch tickers, the levels for that ticker will display. (Assuming you have levels entered for that ticker)
The formatting is as follows:
Ticker,Color,Style,Width,Lvl1,Lvl2,Lvl3;
Ticker - Any ticker on Tradingview can be used in the field
Color - Available colors are: Red,Orange,Yellow,Green,Blue,Purple,White,Black,Gray
Style - Available styles are: Solid,Dashed,Dotted
Width - This can be any negative integer, ex.(-1,-2,-3,-4,-5)
Lvls - These can be any positive number (decimals allowed)
Semi-Colons separate sections, each section contains enough information to create at least 1 line.
Each additional level added within the same section will have the same styling parameters as the other levels in the section.
Example:
2 solid lines colored red with a thickness of 2 on QQQ, 1 at $300 and 1 at $400.
QQQ,RED,SOLID,-2,300,400;
IMPORTANT MUST READ!!!
Remember to not include any spaces between commas and the entries in each field!
ex. ; QQQ, red, dotted, -1, 325; <- Wrong
ex. ;QQQ,red,dotted,-1,325;)<- Right
However,
All fields must be filled out, to use default values in the fields, insert a space between the commas.
ex. ;QQQ,red,dotted,,325; <- Wrong
ex. ;QQQ,red,dotted, ,325; <- Right
While spaces can not be included line breaks can!
I recommend for easier typing and viewing to include a line break for each new line (if changing styling or ticker)
Example:
2 solid lines, one red at $300, one green at $400, both default width. Written in a single line AND using multiple lines, both give the same output.
QQQ,red,solid, ,300;QQQ,green,solid, ,400;
or
QQQ,red,solid, ,300;
QQQ,green,solid, ,400;
In this following screenshot you can see more examples of different formatting variations.
The textbox contains exactly what is pasted into the settings input box.
As you can see, capitalization does not matter.
Default Values:
Color = optimal contrast color, If this field is filled in with a space it will display the optimal contrast color of the users background.
Style = solid
Width = -1
More Examples:
Multi-Ticker: drawing 3 lines at $300, all default values, on 3 different tickers
SPY, , , ,300;QQQ, , , ,300;AAPL, , , ,300
or
SPY, , , ,300;
QQQ, , , ,300;
AAPL, , , ,300
Multiple levels: There is no limit* to the number of levels that can be included within 1 section.
* only TV default line limit per indicator (500)
This will be 4 lines all with the same styling at different values on 2 separate tickers.
SPY,BLUE,SOLID,-2,100,200,300,400;QQQ,BLUE,SOLID,-2,100,200,300,400
or
SPY,BLUE,SOLID,-2,100,200,300,400;
QQQ,BLUE,SOLID,-2,100,200,300,400
Semi-colons must separate sections, but are not required at the beginning or end, it makes no difference if they are or are not added.
SPY,BLUE,SOLID,-2,100,200,300,400;
QQQ,BLUE,SOLID,-2,100,200,300,400
==
SPY,BLUE,SOLID,-2,100,200,300,400;
QQQ,BLUE,SOLID,-2,100,200,300,400;
==
;SPY,BLUE,SOLID,-2,100,200,300,400;
QQQ,BLUE,SOLID,-2,100,200,300,400;
All the above output the same results.
Hope this is helpful for people,
Enjoy!