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):
[youtube]https://www.youtube.com/watch?v=dX_pi7JrZ_Y[/youtube]
Then apply the indicator below the chart:
period = time>=173500 and time<220000
if period and not period[1] then
first=close[1]
drawvline(barindex[1])
endif
if period then
diff=(first-close)/first*100
else
diff=0
endif
if abs(diff)>=0.3 then
signal=1
else
signal=0
endif
return signal
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%