SiadoreR

MultiAlert, MultiTargets + Tickers

SiadoreR 업데이트됨   
This is my first script, completely made from scratch. Bear with me.

Script that allows one to set an alert for Multiple Price Levels, on Multiple Tickers, complete with Dynamic Messages showing you which ticker, at which price, at which alert (Stop loss, Target 1 etc.), set to Once Per Bar.


Select Ticker, type in price levels that you have for targets & stop loss, move on to the next, or don't and leave 0 and blank.
Disable the targets you do not need in STYLE tab to disable plotting & scaling, leave unused tickers & targets blank & 0.
Create Alert, select this indicator, anyfunction() alert.
MAKE SURE to remake the alert every time you change something, they are not smart enough to change as you change things. Can Confirm by using the numbers in the alert name. You will also have to set the profit level or stop loss to zero every time it triggers to avoid triggered again.
In fact, you do not need the indicator active at all. Add it to a chart and hide it by clicking on the little eyeball icon, to make an alert open the settings for the indicator and type in your targets like normal. Indicator will remain invisable.

I have not found a way to dynamic message the alert name, or else I would.

DISCLAIMER: NONE OF THIS IS FINANCIAL ADVICE. You are completely responsible for whatever happens to you. Do not use the targets in this chart. Do your own research before trading.
릴리즈 노트:
I prematurely released the script, as I found a problem as soon as I released it. I wanted to just delete it and reupload it, but after taking another look at the House Rules I cannot, so your along for the ride. The multiple tickers do not work yet, I have to link them, so it will only work on one ticker. I would also like to use true/false indicators for the multiple symbols so you can enable / disable them that way instead of leaving it all at zero. I have plans to also make a Divergence Indicator w/ Dymamic Alerts on multiple tickers. Please make sure you follow the instructions to avoid the alert not working properly. it works on only a single ticker right now.
릴리즈 노트:
Cleaned up some text, fixed alert messages for Symbols 2 & 3 (Were displaying Symbol 1's Price but triggered at the right price)

Started working on plotting to chart. For now is not working. Selectable Timeframes & Enable/Disable for Symbols 2 & 3 added.
릴리즈 노트:
Quick Typo fix, Stop Loss for Symbol 3 was reading Stop Loss input for Symbol 1.
릴리즈 노트:
Changed alert triggers to cross down (Stop Loss) and cross up (Targets) and a True/False option for reversing these for Shorts.
It is possible that the alerts will auto trigger if the price is inside the selected candle. For instance if you have a 4 hour candle stick $4000 tall, and you have your price levels in this active 4hr candle, the alerts could fire immediately, in this case you could change the timeframe in the settings of the alert to get around this.

You can also change the timeframe to effect how often the alert will go off if you wanted that, as the alert settings are set to (Once Per Bar), if you set to 1 second they would go off every 1, and once every month, and anywhere in between.

Cannot plot on screen yet.
릴리즈 노트:
.
릴리즈 노트:
Alot of cleaning up and fixing.
Made Enable/Disable for every Target Price.
Horizontal Lines on chart although they are just plotting the price of the ticker horizontally, they are not true horizontal lines. able to move them to the right with the Offset tick.
Horizontal Lines will only show up on selected ticker @ it's selected price. This took alot of work on my end but is a skill that can used in the future most definitely.
Organized the input window with tooltips, please check the timeframe tooltip for currently aware bug.

Added the Target Price Enable/Disables to the Alert Triggers so they will disable the alert as well.

MAKE SURE IF YOU CHANGE *ANY* SETTINGS IN THE INDICATOR THAT YOU *REMAKE* YOUR ALERT. CHANGING THEM DOES *NOT* CHANGE THE ALERT, YOU MUST REMAKE IT FOR CHANGES TO TAKE EFFECT.

Please comment or DM me any problems, this will be the final version until I can make horizontal lines. I am currently also working on a LITE version of this where it supports only one ticker at a time, and a super version where it is 6, 8, 10, etc.
릴리즈 노트:
.
릴리즈 노트:
Better Example chart, FICTIONAL TARGETS.
릴리즈 노트:
Had multiple Security Calls for no reason, deleted the. Quality of life'd some of the code. Please notify of any bugs.

REMAKE THE ALERT EVERY TIME YOU CHANGE SOMETHING. The alerts are NOT live. You MUST remake it if you change ANY settings and expect the alert to go off.
릴리즈 노트:
FINAL UPDATE FOR THIS. PLEASE LOOK AT MY OTHER MultiPrice Alerts.


오픈 소스 스크립트

이 스크립트의 오써는 참된 트레이딩뷰의 스피릿으로 이 스크립트를 오픈소스로 퍼블리쉬하여 트레이더들로 하여금 이해 및 검증할 수 있도록 하였습니다. 오써를 응원합니다! 스크립트를 무료로 쓸 수 있지만, 다른 퍼블리케이션에서 이 코드를 재사용하는 것은 하우스룰을 따릅니다. 님은 즐겨찾기로 이 스크립트를 차트에서 쓸 수 있습니다.

면책사항

이 정보와 게시물은 TradingView에서 제공하거나 보증하는 금융, 투자, 거래 또는 기타 유형의 조언이나 권고 사항을 의미하거나 구성하지 않습니다. 자세한 내용은 이용 약관을 참고하세요.

차트에 이 스크립트를 사용하시겠습니까?