Piccola modifica indicatore William’s high low

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #221603 quote
    Msport71Msport71
    Participant
    Senior

    Buongiorno,

    gentilmente sarebbe possibile modificare il codice in oggetto, in modo che evidenzi solo gli swing caratterizzati dalla freccia + ellisse, che identifica gli swing più rilevanti?

    Graficamente mi sarebbe utile quindi vedere solo le frecce contornate dall’ellisse.

    Ringrazio anticipatamente e saluto.

    Williams’ Highs and Lows

    williams-high-and-low-128x72-1.jpg williams-high-and-low-128x72-1.jpg
    #221661 quote
    robertogozzirobertogozzi
    Moderator
    Legend

    Eccolo:

    radius=average[200](range)/4
    //formula to compute short term swing points
    if (high>alto[1]) and not (high<high[1] and low>low[1]) then
    alto=high
    basso=low
    markup=barindex
    markhigh=high
    endif
    if (low<basso[1]) and not (high<high[1] and low>low[1]) then
    alto=high
    basso=low
    markdown=barindex
    marklow=low
    endif
    if alto<alto[1] and trend=1 then
    trend=0
    //drawarrowdown(markup,markhigh)
    mediummarkup=shortmarkup
    shortmarkup=markup
    longmarkhigh=mediummarkhigh
    mediummarkhigh=shortmarkhigh
    shortmarkhigh=markhigh
    //intermediate high swing points
    if longmarkhigh<mediummarkhigh and mediummarkhigh>shortmarkhigh then
    DRAWELLIPSE(mediummarkup-1, mediummarkhigh-radius, mediummarkup+1, mediummarkhigh+radius) style(line,2) coloured("Blue")
    drawarrowdown(mediummarkup,mediummarkhigh-radius) coloured("Red")
    endif
    endif
    if basso>basso[1] and trend=0 then
    trend=1
    //drawarrowup(markdown,marklow)
    mediummarkdown=shortmarkdown
    shortmarkdown=markdown
    longmarklow=mediummarklow
    mediummarklow=shortmarklow
    shortmarklow=marklow
    //intermediate low swing points
    if longmarklow>mediummarklow and mediummarklow<shortmarklow then
    DRAWELLIPSE(mediummarkdown-1, mediummarklow-radius, mediummarkdown+1, mediummarklow+radius) style(line,2) coloured("Blue")
    drawarrowup(mediummarkdown,mediummarklow-radius) coloured("Green")
    endif
    endif
    drawcandle(open,high,low,close)
    return
    Il-Mio-Indicatore12.itf
    #221685 quote
    Msport71Msport71
    Participant
    Senior

    Grazie e mille , anche le frecce colorate, troppo gentile!

    Buon pomeriggio

    robertogozzi thanked this post
Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.
ProRealAI ProRealAI New

Stuck on this ProBuilder code?

Describe what this topic is trying to build, in plain English, and ProRealAI writes the ProRealTime™ indicator, screener or system for you.

Available in 7 languages
Try ProRealAI

Piccola modifica indicatore William’s high low


ProBuilder: Indicatori & Strumenti Personalizzati

New Reply
Author
author-avatar
Msport71 @carlo-pasca Participant
Summary

This topic contains 2 replies,
has 2 voices, and was last updated by Msport71Msport71
2 years, 11 months ago.

Topic Details
Forum: ProBuilder: Indicatori & Strumenti Personalizzati
Language: Italian
Started: 09/26/2023
Status: Active
Attachments: 2 files
ProRealCode ProRealCode
Loading...