disegnare un segmento

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #238542 quote
    Antonio GarbinesiAntonio Garbinesi
    Participant
    Average

    if year=2024 and Month =9 and day =11 then
    mylow1=low
    mybarindex1=barindex
    endif

    if year=2024 and Month =10 and day =2 then
    mylow2=low
    mybarindex2=barindex
    endif

    drawsegment(mybarindex1,mylow1,mybarindex2,mylow2)
    return

    Screenshot-2024-10-06-170414.png Screenshot-2024-10-06-170414.png
    #238544 quote
    Antonio GarbinesiAntonio Garbinesi
    Participant
    Average

    non capisco perche mi disegna due segmenti

    #238545 quote
    robertogozzirobertogozzi
    Moderator
    Legend

    La riga

    drawsegment(mybarindex1,mylow1,mybarindex2,mylow2)

    devi spostarla prima dell’ultimo ENDIF.

    Antonio Garbinesi and Iván González thanked this post
    #238546 quote
    Antonio GarbinesiAntonio Garbinesi
    Participant
    Average

    in effetti funziona ,ma non capisco perche

    #238547 quote
    drubydruby
    Participant
    New

    Al primo appuntamento vengono aggiornati entrambi i valori mylow1 e mybarindex1.

    Tuttavia, mylow2 e mybarindex2 hanno ancora il valore predefinito pari a zero.

    In questo modo il segmento dalla prima data viene riportato ai valori predefiniti.

    Una volta raggiunta la seconda data, i valori vengono aggiornati.

    Il secondo segmento viene disegnato tra il primo e il secondo appuntamento.

    Se intendevi utilizzare questo secondo segmento, sposta DRAWSEGMENT alla fine del secondo blocco data IF.

    robertogozzi thanked this post
Viewing 5 posts - 1 through 5 (of 5 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

disegnare un segmento


ProBuilder: Indicatori & Strumenti Personalizzati

New Reply
Summary

This topic contains 4 replies,
has 3 voices, and was last updated by drubydruby
1 year, 11 months ago.

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