Draw value to "sharpe" indicator

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #97711 quote
    AbzAbz
    Participant
    Veteran

    Hello,

     

    how can i draw the  sharp value on every 7th candestick

     

     

    periodo=254
    RitMensNoRiskTitle=0
    a=log(close/close[1])
    b=summation[periodo](a)
    s=sqrt(254)*std[periodo](a)
    
    //computation of modified Sharpe index
    sharpe=(b-RitMensNoRiskTitle/100)/(s*s)
    
    return sharpe as "ratio"
    #98123 quote
    NicolasNicolas
    Keymaster
    Legend

    You want to draw the value as text? And where? On in the price chart or directly in the indicator window?

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

Draw value to "sharpe" indicator


ProBuilder: Indicators & Custom Tools

New Reply
Author
author-avatar
Abz @abbas_sadiq Participant
Summary

This topic contains 1 reply,
has 2 voices, and was last updated by NicolasNicolas
7 years, 4 months ago.

Topic Details
Forum: ProBuilder: Indicators & Custom Tools
Language: English
Started: 05/05/2019
Status: Active
Attachments: No files
ProRealCode ProRealCode
Loading...