Working with Studies in Scanner: Difference between revisions
No edit summary |
|||
(18 intermediate revisions by 6 users not shown) | |||
Line 1: | Line 1: | ||
Studies can be added, formatted, removed, and customized. | Studies can be added, formatted, removed, and customized. | ||
Line 9: | Line 8: | ||
Audio, visual and E-mail alerts can be enabled. | Audio, visual and E-mail alerts can be enabled. | ||
== Adding Studies == | == Adding Studies == | ||
To add a study to the Scanner window: | |||
# Open the Insert Study window. | # Open the '''Insert Study''' window. | ||
#* Press the '''F7''' button | #* Press the '''F7''' button. | ||
#* Select '''Insert''' in the main menu and select '''Study''' | #* Select '''Insert''' in the main menu and select '''Study'''. | ||
#* Right-click on any cell in the Scanner window and select '''Insert Study'''. | #* Right-click on any cell in the Scanner window and select '''Insert Study'''. | ||
# Select either an individual study or multiple studies. To select multiple studies, hold down the | # Select either an individual study or multiple studies. To select multiple studies, hold down the '''Ctrl''' button and select each study. | ||
<br> | |||
A study's color is defined in its PowerLanguage Script. | |||
To edit the colors, use the reserved words [[SetPlotColor]] and [[SetPlotBGColor]]. | |||
== Formatting Studies == | == Formatting Studies == | ||
To format a study: | To format a study: | ||
* Double-click on the symbol's cell in the study's column. | |||
* Double-click on the symbol's cell in the study's column | |||
* Right-click on the symbol's cell in the study's column. Select '''Format Study'''. | * Right-click on the symbol's cell in the study's column. Select '''Format Study'''. | ||
<br> | <br> | ||
The Format Study dialog window will appear. If a study has two or more plots, then formatting will be applied | The Format Study dialog window will appear. If a study has two or more plots, then formatting will be applied to all the plots for that particular study. | ||
to all the plots for that particular study. | |||
=== Setting Inputs Values === | === Setting Inputs Values === | ||
An Input is a constant used in the study's calculations. Studies can have one or more inputs, or none at all. Each input is assigned a name. | An Input is a constant used in the study's calculations. Studies can have one or more inputs, or none at all. Each input is assigned a name. | ||
There are three types of inputs: Numeric, True/False, and String. Studies can be modified by changing the input Values. Most, but not all, studies use input values. | There are three types of inputs: '''Numeric''', '''True/False''', and '''String'''. Studies can be modified by changing the input Values. Most, but not all, studies use input values. | ||
<div class="tip-no-title">Find more info about studies inputs on [[Default_Study_Properties|this page]].</div> | |||
One of the main advantages of using inputs is that the study's logic can be changed by simply changing the input values. Editing the study's code is not required. The inputs can be modified before and after the study has been inserted. | One of the main advantages of using inputs is that the study's logic can be changed by simply changing the input values. Editing the study's code is not required. The inputs can be modified before and after the study has been inserted. | ||
=== Setting the Symbol Properties === | === Setting the Symbol Properties === | ||
Line 47: | Line 42: | ||
Study properties can be different for all symbols in the Scanner window. | Study properties can be different for all symbols in the Scanner window. | ||
Study properties include '''Number Format''' and '''Update On Every Tick''' sections. | Study properties include '''Number Format''' and '''Update On Every Tick''' sections. | ||
* Select '''Same as Symbol''' radio button to use the same number of decimals as the symbol | To define the number of decimals to display for all the study plots of the specified symbol: | ||
* Select '''Same as Symbol''' radio button to use the same number of decimals as the symbol. | |||
* Select '''Show''' radio button and enter the number of decimals. | * Select '''Show''' radio button and enter the number of decimals. | ||
<br> | |||
To recalculate study on every tick, select the '''Update On Every Tick''' check box. | To recalculate study on every tick, select the '''Update On Every Tick''' check box. | ||
<div | <div class="note">Even with this check box checked, updates are still limited to two updates in one second.</div> | ||
<div class="tip">To use these '''Properties''' settings for all new symbols, check '''Use as Default''' check box.</div> | |||
=== Enabling the Alerts === | === Enabling the Alerts === | ||
Line 62: | Line 56: | ||
Visual, audio, or e-mail alerts can be sent when market conditions meet the criteria specified in the study. | Visual, audio, or e-mail alerts can be sent when market conditions meet the criteria specified in the study. | ||
To enable alerts | To enable alerts: | ||
# Select the '''Enable Alerts''' check box under the '''Alerts'''. | # Select the '''Enable Alerts''' check box under the '''Alerts'''. | ||
# In the '''Alert Conditions Check''' section, select whether the alerts will be triggered '''On Bar Close''' | # In the '''Alert Conditions Check''' section, select whether the alerts will be triggered '''On Bar Close''', '''Every Tick''' or '''Once per bar'''. | ||
==== Audio Alert ==== | ==== Audio Alert ==== | ||
To enable Audio alerts | To enable Audio alerts: | ||
# Select the '''Audio Alert''' check box. | # Select the '''Audio Alert''' check box. | ||
# Select the | # Select the .wav sound file in the '''File''' field. Ding.wav is selected by default. | ||
# Press the ''' | # Press the '''Play''' button to test the sound. | ||
<div | <div class="note">Make sure that the sound is enabled on your PC so that the '''Audio Alert''' function works properly.</div> | ||
==== Visual Alert ==== | ==== Visual Alert ==== | ||
To enable Visual alert: | To enable Visual alert: | ||
# Select the '''Visual Alert''' check box. | # Select the '''Visual Alert''' check box. | ||
# In the '''Display Notify Window for''' drop-down list, select the period of time for the alert message to be displayed. | # In the '''Display Notify Window for''' drop-down list, select the period of time for the alert message to be displayed. | ||
==== | ==== External Alerts ==== | ||
To enable External Alerts click the '''Add''' button and select one of the external alert configurations. | |||
To add a new external alert configuration: | |||
# Click the gear icon next to the '''Add''' button. | |||
# In the opened window configure the desired external alerts: | |||
#* [[Using_Alerts#E-mail_Alert|E-mail]] | |||
#* [[Slack WebHooks|Slack]] | |||
#* [[Telegram]] | |||
# Press '''OK'''. | |||
# Click the '''Add''' button and select the newly added alert configurations. | |||
= | <div class="tip">To use these alert settings as the default for all new indicators, select '''Use as Default''' check box.</div> | ||
== Displaying Studies With Two or More Plots == | |||
It is possible to hide/display plots of studies, in case a study has more than one plot. To hide/display plots of a study: | |||
# Right-click on a cell in the study's column or on the study title. | # Right-click on a cell in the study's column or on the study title. | ||
# Select '''Show Plots'''. | # Select '''Show Plots'''. | ||
# Select or deselect the plots to be displayed/hidden. | # Select or deselect the plots to be displayed/hidden. | ||
== Formatting a Study for All Symbols == | |||
== Formatting a Study for All Symbols == | |||
Formatting a Study for All Symbols makes it possible to modify settings for all symbols at the same time. | Formatting a Study for All Symbols makes it possible to modify settings for all symbols at the same time. | ||
To format a Study for all symbols: | To format a Study for all symbols: | ||
# Right-click anywhere within the '''Study's''' column, excluding the header. | # Right-click anywhere within the '''Study's''' column, excluding the header. | ||
# Select '''Format 'Study Title' Study for All Symbols'''. The Format Study window will appear. | # Select '''Format 'Study Title' Study for All Symbols'''. The Format Study window will appear. | ||
<br> | |||
The settings for all existing studies will be changed. However newly added symbols will not inherit these settings. | |||
<div class="tip-no-title">Find more info about Formatting Studies on [[#Formatting Studies|this page]].</div> | |||
== Settings a Study Style in the Real-Time Market Scanner == | |||
It is possible to change the style of the studies applied to the Real-Time Market Scanner. Color, Alignment, plot format and number of decimals can be changed. | |||
To change the style of the plots: | |||
# Right-click anywhere within the '''Study's''' column, excluding the header. | |||
# Select '''Format Study'''. The Format Study window will appear. | |||
# Turn to the '''Style Tab'''. | |||
<br> | |||
Alignment types available: | |||
* Right | |||
* Center | |||
* Left | |||
<br> | <br> | ||
Format types available: | |||
* Same as instrument | |||
* Number | |||
* Currency | |||
* Percentage | |||
* Date | |||
* Time | |||
* Text | |||
== Removing Studies == | == Removing Studies == | ||
To remove a study: | To remove a study: | ||
# Right-click on any cell within the '''Study's''' column, excluding the header. | # Right-click on any cell within the '''Study's''' column, excluding the header. | ||
# Select '''Remove 'Study Title' Study'''. | # Select '''Remove 'Study Title' Study'''. | ||
== Accessing Scripts == | == Accessing Scripts == | ||
To access a script from a Scanner window: | To access a script from a Scanner window: | ||
# Right-click on any cell within the '''Study's''' column, excluding the header. | # Right-click on any cell within the '''Study's''' column, excluding the header. | ||
# Select '''Open 'Study Title' Script'''. A PowerLanguage Editor window will appear. | # Select '''Open 'Study Title' Script'''. A PowerLanguage Editor window will appear. | ||
# Customize the study script in the PowerLanguage Editor. | # Customize the study script in the PowerLanguage Editor. | ||
<div class="tip-no-title">Find more info about working with Studies in PowerLanguage Editor on [[Using_Studies_(PowerLanguage_Editor)|this page]]. | |||
[[Category:Real-Time Market Scanner]] | [[Category:Real-Time Market Scanner|C]] |
Latest revision as of 17:36, 17 September 2024
Studies can be added, formatted, removed, and customized.
A study script can be accessed directly from the Scanner.
It is possible to change settings for multiple studies at once.
Indicated plots of a study can be hidden or displayed when necessary. Audio, visual and E-mail alerts can be enabled.
Adding Studies
To add a study to the Scanner window:
- Open the Insert Study window.
- Press the F7 button.
- Select Insert in the main menu and select Study.
- Right-click on any cell in the Scanner window and select Insert Study.
- Select either an individual study or multiple studies. To select multiple studies, hold down the Ctrl button and select each study.
A study's color is defined in its PowerLanguage Script.
To edit the colors, use the reserved words SetPlotColor and SetPlotBGColor.
Formatting Studies
To format a study:
- Double-click on the symbol's cell in the study's column.
- Right-click on the symbol's cell in the study's column. Select Format Study.
The Format Study dialog window will appear. If a study has two or more plots, then formatting will be applied to all the plots for that particular study.
Setting Inputs Values
An Input is a constant used in the study's calculations. Studies can have one or more inputs, or none at all. Each input is assigned a name.
There are three types of inputs: Numeric, True/False, and String. Studies can be modified by changing the input Values. Most, but not all, studies use input values.
One of the main advantages of using inputs is that the study's logic can be changed by simply changing the input values. Editing the study's code is not required. The inputs can be modified before and after the study has been inserted.
Setting the Symbol Properties
Study properties can be different for all symbols in the Scanner window. Study properties include Number Format and Update On Every Tick sections.
To define the number of decimals to display for all the study plots of the specified symbol:
- Select Same as Symbol radio button to use the same number of decimals as the symbol.
- Select Show radio button and enter the number of decimals.
To recalculate study on every tick, select the Update On Every Tick check box.
Enabling the Alerts
Visual, audio, or e-mail alerts can be sent when market conditions meet the criteria specified in the study.
To enable alerts:
- Select the Enable Alerts check box under the Alerts.
- In the Alert Conditions Check section, select whether the alerts will be triggered On Bar Close, Every Tick or Once per bar.
Audio Alert
To enable Audio alerts:
- Select the Audio Alert check box.
- Select the .wav sound file in the File field. Ding.wav is selected by default.
- Press the Play button to test the sound.
Visual Alert
To enable Visual alert:
- Select the Visual Alert check box.
- In the Display Notify Window for drop-down list, select the period of time for the alert message to be displayed.
External Alerts
To enable External Alerts click the Add button and select one of the external alert configurations.
To add a new external alert configuration:
- Click the gear icon next to the Add button.
- In the opened window configure the desired external alerts:
- Press OK.
- Click the Add button and select the newly added alert configurations.
Displaying Studies With Two or More Plots
It is possible to hide/display plots of studies, in case a study has more than one plot. To hide/display plots of a study:
- Right-click on a cell in the study's column or on the study title.
- Select Show Plots.
- Select or deselect the plots to be displayed/hidden.
Formatting a Study for All Symbols
Formatting a Study for All Symbols makes it possible to modify settings for all symbols at the same time.
To format a Study for all symbols:
- Right-click anywhere within the Study's column, excluding the header.
- Select Format 'Study Title' Study for All Symbols. The Format Study window will appear.
The settings for all existing studies will be changed. However newly added symbols will not inherit these settings.
Settings a Study Style in the Real-Time Market Scanner
It is possible to change the style of the studies applied to the Real-Time Market Scanner. Color, Alignment, plot format and number of decimals can be changed.
To change the style of the plots:
- Right-click anywhere within the Study's column, excluding the header.
- Select Format Study. The Format Study window will appear.
- Turn to the Style Tab.
Alignment types available:
- Right
- Center
- Left
Format types available:
- Same as instrument
- Number
- Currency
- Percentage
- Date
- Time
- Text
Removing Studies
To remove a study:
- Right-click on any cell within the Study's column, excluding the header.
- Select Remove 'Study Title' Study.
Accessing Scripts
To access a script from a Scanner window:
- Right-click on any cell within the Study's column, excluding the header.
- Select Open 'Study Title' Script. A PowerLanguage Editor window will appear.
- Customize the study script in the PowerLanguage Editor.