Hello, i would like to create alerts when the spread between DAX/Dow Jones between 17:35 to 22:00, has a variation more to +0.3% or -0.3%. How I could make it? Thanks for advance.
Yes, firstly create a spread chart with DAX divided by DOWJONES (CTRL+R):
Then apply the indicator below the chart:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
period=time>=173500andtime<220000
ifperiodandnotperiod[1]then
first=close[1]
drawvline(barindex[1])
endif
ifperiodthen
diff=(first-close)/first*100
else
diff=0
endif
ifabs(diff)>=0.3then
signal=1
else
signal=0
endif
returnsignal
and configure an alert (with the dedicated tool) when the indicator returns 1. Value = 1 means that the difference between the actual price and the one at 173500 is >=0.3 or <=-0.3%
To help us continually offer you the best experience on ProRealCode, we use cookies. By clicking on "Continue" you are agreeing to our use of them. You can also check our "privacy policy" page for more information.Continue