spread Dax/dowjones

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #77754 quote
    agosto18
    Participant
    New

    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.

    #77763 quote
    Nicolas
    Keymaster
    Master

    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%

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.

spread Dax/dowjones


ProScreener: Market Scanners & Detection

New Reply
Author
author-avatar
agosto18 @agosto18 Participant
Summary

This topic contains 1 reply,
has 2 voices, and was last updated by Nicolas
7 years, 7 months ago.

Topic Details
Forum: ProScreener: Market Scanners & Detection
Language: English
Started: 08/08/2018
Status: Active
Attachments: No files
Logo Logo
Loading...