-
Notifications
You must be signed in to change notification settings - Fork 31
/
_alert_multiple.yaml
146 lines (146 loc) · 7.93 KB
/
_alert_multiple.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
# Define one or more charts, each with their own indicators you can use.
# Information about the structure of this document can be found in the README.md
# NOTE: all values are CASE SENSITIVE and put text into double quotation marks (") unless you know what you are doing.
charts:
- url: https://www.tradingview.com/chart/<your_chart>/
timeframes: [1 day]
watchlists: [<your_watchlist_name>, <your_second_watchlist_name>]
# Optional. Defines how long chromedriver should wait for a page to load (seconds).
page_load_timeout: 30
# Optional. Defines how long chromedriver should wait for finding elements (seconds).
# This is on a lower level than check_if_exists_timeout (below) and should be an equal or higher number than said option.
# 30 seconds should be ample and - unless you have serious issues running the script - you should not change this.
wait_time_implicit: 30
# Optional. Defines how long the script should wait finding elements (seconds).
check_if_exists_timeout: 30
# Optional. Define delays in seconds. If a particular delay isn't set, it will fall back to that particular delay in the config file
# Options are: change_symbol, submit_alert, break, break_mini and clear_inactive_alerts
delays: {change_symbol: 1, submit_alert: 2.5}
# Alert listed under alerts must be available from the chart which is loaded through the 'url' parameter.
alerts:
# The name is used to identify already existing alerts on your alert list in TradingView and is used to purge/update previously added alerts
# You can make use of the following keywords:
# %SYMBOL which is of the format <exchange>:<ticker>
# Make sure the name is unique
- name: "Example 1 %SYMBOL"
# Optional. When set, the interval will be omitted from links in the alert. This is useful if you want to link to a multiple chart layout. Default is no.
# Please, note that Kairos will only process and set an alert on the first chart (top/left) in a multi chart layout.
show_multi_chart_layout: no
# list of charts (urls) to include in the alert (these will be picked up by the summary mail as well)
# if you want to include additional screenshot then the option screenshot_timing must be set to 'summary' (without quotation marks) in your kairos.cfg (section [tradingview])
include_screenshots_of_charts: [https://www.tradingview.com/chart/<your_chart>/, https://www.tradingview.com/chart/<your_chart>/]
# Conditions need to be listed in order of TV's Create Alert dialog form, i.e. from left to right and from top to bottom.
# Values need to be EXACT (unless specified differently in your kairos.cfg under section TradingView, setting exact_conditions) and are CASE SENSITIVE.
conditions: ["BTCUSD", "Outside channel", "Value", "6826.28", "Value", "5880.00"]
trigger: "Only Once"
expiration:
# Future date time (note TradingView uses local time to set expiration and Kairos will check the computer's time against TV expiration).
# Format it in yyyy-mm-dd hh:mm, or n where n is the number of days (note that trading view has a maximum of 60).
# time: 2019-05-19 13:42, or delta in minutes (max 86400, or 60 days), or leave empty to use TradingView's default of 30 days (somewhat improves performance).
time: 2
# Note that open-ended is for premium users only and - when set - will ignore the value for 'time'
open-ended: no
# Recommended to turn this off if the 'expiration' is likely to be smaller than the time Kairos needs on your machine to complete its run.
show_popup: no
sound:
# Recommended to turn this off if the 'expiration' is likely to be smaller than the time Kairos needs on your machine to complete its run.
play: yes
# For a full list of options please open the alert dialog manually.
ringtone: "Chirpy"
# Possible values for duration are "Once", "5 seconds", "10 seconds", "30 seconds", "Minute".
duration: "10 seconds"
send:
# Send an email?
# Note that in order to create a watchlist or send a summary email this needs to be set to yes.
email: yes
# Send a server side sms (for Premium users only)
email-to-sms: no
# Get a push notification in TradingView's app
notify-on-app: no
# Send to a webhook. Optional. Leave the value empty or remove the line if you don't want to define a webhook.
webhook: https://test
message:
# Use `\n` to add an ENTER
# Use keywords to add dynamic information in your text.
# %TIMEFRAME, is self-explanatory
# %SYMBOL is <exchange>:<ticker symbol>
# %NAME is the name of the alert
# %GENERATED is the text that TradingView generates
# %SCREENSHOT add an url to a screenshot (only available when config option tradingview_screenshot is set to true)
# Recommended value: "%NAME %TIMEFRAME: %SYMBOL\n%CHART\n%SCREENSHOT\n%GENERATED"
text: "%NAME %TIMEFRAME: %SYMBOL\n%CHART\n%SCREENSHOT\n%GENERATED\n lorem ipsum"
# If you want to add JSON, put the whole JSON statement between apostrophes ('), like this:
# text: '{"content": "Buy 1 min {{exchange}}:{{ticker}}, price = {{close}} Time ={{time}}"}'
- name: "Example 2 %SYMBOL"
conditions: ["BTCUSD", "Moving Up %", "5.00", "1"]
trigger: "Once Per Bar Close"
expiration: 86400
show_popup: no
sound:
play: yes
ringtone: "Hand Bell"
duration: "10 seconds"
send:
email: yes
email-to-sms: no
notify-on-app: no
message:
text: "%NAME %TIMEFRAME: %SYMBOL\n%CHART\n%SCREENSHOT\n%GENERATED\n lorem ipsum"
show_multi_chart_layout: no
- url: https://www.tradingview.com/chart/<your_second_chart>/
timeframes: [2 minutes]
watchlists: [<your_watchlist-name>]
alerts:
- name: "Example 3 %SYMBOL"
conditions: ["BTCUSD", "Crossing", "MA (200, close)"]
trigger: "Once Per Bar Close"
expiration: 86400
show_popup: no
sound:
play: yes
ringtone: "Hand Bell"
duration: "10 seconds"
send:
email: yes
email-to-sms: no
notify-on-app: no
message:
text: "%NAME %TIMEFRAME: %SYMBOL\n%CHART\n%SCREENSHOT\n%GENERATED\n lorem ipsum"
show_multi_chart_layout: no
summary:
# Create email
email:
# List of comma separated values
to: ['[email protected]', '[email protected]']
# List of comma separated values
cc: ['[email protected]', '[email protected]']
# List of comma separated values
# Note: not all email providers support bcc (e.g. gmail)
bcc: ['[email protected]', '[email protected]']
subject: 'TradingView Alert Summary'
# Use keyword %SUMMARY in your text and/or html to include the Kairos generated summary
text: 'my prepended text %SUMMARY my appended text'
# Note: you may include <html> and <body> tags, but it is not necessary (Kairos will include them if they aren't found)
html: '<p>my prepended text</p>%SUMMARY<p>my appended text</p>'
# If you just want to send the signals to webhooks (see your config file) or import them as a watchlist, set this to no
send: yes
# if you want to shield recipients from seeing each other's email address, set this to yes
one-mail-per-recipient: yes
# Create a watchlist of summarized signals
watchlist:
# Keywords %DATE (yyyymmdd), %TIME (hhmm)
# Note: will overwrite watchlists of the same name
name: 'summary_%DATE_%TIME'
# Import the watchlist into TV
# Note: existing watchlists of the same name will be deleted
# Note: this will make use of your clipboard to insert the filename in TV's upload file dialog
import: no
# Attach to summary email
attach-to-email: yes
# Send individual signals to one or more lists webhooks when one out of a list of search_criteria is met
webhooks:
- url: ['https://hooks.zapier.com/hooks/catch/my_id/<webhook_id>']
search_criteria: ['search_text', 'second_search_text']
webdriver:
# run the webdriver in the background or not (this overrides the setting in the configuration file)
run-in-background: yes