Un saluto a tutti i membri del Forum

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #30205 quote
    gpfrance
    Participant
    Junior

    Vorrei avere chiarimenti sull’ istruzione di Pro Builder  Drawarrow (x,y) coulored (R, G, B, a);

    1) come faccio a specificare le coordinate x,y ?

    2) cosa rappresenta a nell’istruzione coulored ?

    Ringrazio anticipatamente chi mi vorrà aiutare.

    #30212 quote
    ALE
    Moderator
    Master

    Ciao

    ti faccio un esempio

    la “a” dovrebbe indicare la trasparenza

    fast = average[10](close)
    slow = average[30](close)
    
    //la prima freccia sarà blu
    if fast crosses over slow then
      cross = slow[1]
      DRAWARROW(barindex-1, slow[1]) COLOURED(0,100,255,255)
    endif
    // barindex-1=x-1 e slow[1] =y 
    //(barindex-1 significa spostare la posizione della freccia di una"candela" indietro rispetto al punto dove si è verificata la condizione istruita) 
    
    //la prossima candela sara porpora semi trasparente
    if fast>slow AND slow<>cross then
      DRAWARROW(barindex, slow) COLOURED(151,17,228,100)
    endif
    // barindex=x e slow =y (in questo caso la freccia sarà disegnata sulla candela nella quale si sono verificate le condizioni istruite)
    RETURN 
     
Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.

Un saluto a tutti i membri del Forum


Benvenuto e Presentazione Nuovi Membri

New Reply
Author
author-avatar
gpfrance @gpfrance Participant
Summary

This topic contains 1 reply,
has 2 voices, and was last updated by ALE
8 years, 11 months ago.

Topic Details
Forum: Benvenuto e Presentazione Nuovi Membri
Language: Italian
Started: 03/29/2017
Status: Active
Attachments: No files
Logo Logo
Loading...