Gewinn in % anzeigen

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #215671 quote
    axmichiaxmichi
    Participant
    Senior

    Hallo,

     

    kann mir jemand einen Indikator machen, der mir im Chart auf Tagesbasis über der letzten Kerze den prozentualen Gewinn in den letzten 20 Tage anzeigt?

    schön wäre, wenn ich diese prozentzahl im indikator variieren könnte

    Geht das zu machen??

     

    Vielen Dank

    #215688 quote
    robertogozzirobertogozzi
    Moderator
    Legend

    Los geht’s:

    DEFPARAM DrawOnLastBarOnly = true
    Timeframe(Daily,UpdateOnClose)
    Periods = 15
    Gain    = ((close / close[Periods]) - 1) * 100
    Offset  = highest[Periods](high) + (average[Periods,0](range) / 2)
    //
    Timeframe(default)
    DrawText("Gain #Gain#",BarIndex,Offset,Dialog,Bold,10) coloured("Green",255)
    RETURN
    #215696 quote
    axmichiaxmichi
    Participant
    Senior

    Hallo Roberto,

     

    wunderbar und vielen Dank!!!!

    LG

    robertogozzi thanked this post
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

Gewinn in % anzeigen


ProBuilder: Indikatoren & Custom Tools

New Reply
Author
author-avatar
axmichi @axmichi Participant
Summary

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

Topic Details
Forum: ProBuilder: Indikatoren & Custom Tools
Language: German
Started: 06/05/2023
Status: Active
Attachments: No files
ProRealCode ProRealCode
Loading...