WILLIAMS'S HIGHS AND LOWS

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #99265 quote
    Gaspare
    Participant
    Veteran

    Salve

    cortesemente si puo’ creare un sistema automatico da applicare all’indicatore di WILLIAMS’S HIGHS AND LOWS?

    Grazie

    Gaspare

     

    //computation of the radius to draw ellipses
    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)
     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)
     endif
    endif
     
     
    drawcandle(open,high,low,close)
    return
    #99267 quote
    robertogozzi
    Moderator
    Master

    No, perché ristampa sulle vecchie candele, per cui quando vedi il segnale sul grafico, in realtà è già passato.

    È il cosiddetto repainting, comune allo ZigZag.

    In realtà si può fare, ma vedrai l’entrate sballate rispetto al grafico.

    #99268 quote
    robertogozzi
    Moderator
    Master
Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.

WILLIAMS'S HIGHS AND LOWS


ProOrder: Trading Automatico & Backtesting

New Reply
Author
author-avatar
Gaspare @gaspare Participant
Summary

This topic contains 2 replies,
has 2 voices, and was last updated by robertogozzi
6 years, 8 months ago.

Topic Details
Forum: ProOrder: Trading Automatico & Backtesting
Language: Italian
Started: 05/23/2019
Status: Active
Attachments: No files
Logo Logo
Loading...