drawtext su indicatore performance

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #183511 quote
    luxrunluxrun
    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
    robertogozzirobertogozzi
    Moderator
    Legend

    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
    luxrunluxrun
    Participant
    Master

    Grazie mille!

Viewing 3 posts - 1 through 3 (of 3 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

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 luxrunluxrun
4 years, 9 months ago.

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