drawtext su indicatore performance

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #183511 quote
    luxrun
    Participant
    Master

    Gentile Roberto avrei bisogno di un aiuto riguardo a un pezzo di codice da inserire in questo mio indicatore di performance. Si tratta di aggiungere nell’indicatore stesso il risultato della formula che solitamente è messo al lato della finestra dell’indicatore stesso. Io vorrei inserirlo dentro la mia codifica. Questo è l’indicatore, molto semplice,  che ho scritto. Grazie

    // Indicatore di performance
    
    // barre=250
    
    cond1= close
    cond2= close [barre]
    
    performance= ((cond1/cond2)-1)*100
    
    
    return performance
    #183550 quote
    robertogozzi
    Moderator
    Master

    Eccolo:

    // Indicatore di performance
     
    // barre=250
    defparam DrawOnLastBarOnly = true
    cond1= close
    cond2= close [barre]
     
    performance= ((cond1/cond2)-1)*100
     
    x = highest[10](performance) * 1.5   //calcolo posizione di stampa
    DrawText("#performance#",BarIndex,x)
    
    return performance
    x-5.jpg x-5.jpg
    #183600 quote
    luxrun
    Participant
    Master

    Grazie mille!

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

drawtext su indicatore performance


ProBuilder: Indicatori & Strumenti Personalizzati

New Reply
Author
author-avatar
luxrun @luxrun Participant
Summary

This topic contains 2 replies,
has 2 voices, and was last updated by luxrun
4 years, 3 months ago.

Topic Details
Forum: ProBuilder: Indicatori & Strumenti Personalizzati
Language: Italian
Started: 12/17/2021
Status: Active
Attachments: 1 files
Logo Logo
Loading...