Massimi o Minimi all’interno di un range di spazio e tempo

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #232642 quote
    EdisoneEdisone
    Participant
    Average

    Ciao, chiedo aiuto per codice che mi disegni in automatico con linee orrizontali (time frame Daily) tutti i massimi o i minimi ma con due conzioni:

    1. “N”candele indietro rispetto alla candela di ieri
    2. Solo i massimi compresi nel range della candela di ieri  e un + – 0,3 % sempre rispetto al range della candela di ieri.

    Allego immagine per capire meglio.

    Grazie mille.

    Screenshot-2024-05-14-165051.jpg Screenshot-2024-05-14-165051.jpg
    #232663 quote
    Iván GonzálezIván González
    Moderator
    Legend

    Buongiorno. Ecco il codice:

    n=50
    if islastbarupdate then
    drawrectangle(barindex[n+3],high[1]*1.003,barindex+10,low[1]*0.997)fillcolor("yellow",30)coloured("yellow",0)
    for i=0 to n do
    if high[i]>low[1]*0.997 and high[i]<high[1]*1.003 then
    drawsegment(barindex[i],high[i],barindex+5,high[i])coloured("purple",95)
    endif
    next
    endif
    return 
    Edisone thanked this post
Viewing 2 posts - 1 through 2 (of 2 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

Massimi o Minimi all’interno di un range di spazio e tempo


ProBuilder: Indicatori & Strumenti Personalizzati

New Reply
Author
author-avatar
Edisone @edisone Participant
Summary

This topic contains 1 reply,
has 2 voices, and was last updated by Iván GonzálezIván González
2 years, 4 months ago.

Topic Details
Forum: ProBuilder: Indicatori & Strumenti Personalizzati
Language: Italian
Started: 05/14/2024
Status: Active
Attachments: 1 files
ProRealCode ProRealCode
Loading...