Gewinn in % anzeigen

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #215671 quote
    axmichi
    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
    robertogozzi
    Moderator
    Master

    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
    axmichi
    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.

Gewinn in % anzeigen


ProBuilder Support

New Reply
Author
author-avatar
axmichi @axmichi Participant
Summary

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

Topic Details
Forum: ProBuilder Support
Language: German
Started: 06/05/2023
Status: Active
Attachments: No files
Logo Logo
Loading...