Profitfactor im Chart anzeigen

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

    Hallo,

     

    ist es möglich den  Profitfactor im Chart anzeigen zu lassen, wenn man einen Backtest gemacht hat. Alle nötigen Daten dafür sind ja im Backtestergebnis vorhanden, ist nur die Frage wie man das per Formel ausrechnen und in den Chart bekommen kann??!!

     

    Hier die Formel des Profitfactor:

     

    PF =   Anzahl der Gewinner * ØGewinn / Anzahl der Verlierer * ØVerlierer

    Beispiel für 100 Trades:

    PF =                     70               *    10            /               30                  *          20

    PF =  1,166

     

    Kann man das Ergebniss am letzten Kurs direkt im Chart anzeigen lassen??

    Vielen Dank

    #205965 quote
    robertogozzi
    Moderator
    Master

    Los geht’s:

    ONCE Wins   = 0
    ONCE Losses = 0
    IF StrategyProfit > StrategyProfit[1] THEN
       Wins   = Wins   + 1
    ELSIF StrategyProfit < StrategyProfit[1] THEN
       Losses = Losses + 1
    ENDIF
    WLratio = max(1,Wins) / max(1,Losses)
    if not OnMarket then
       if close crosses over average[100] then
          buy at market
       elsif close crosses under average[100] then
          sellshort at market
       endif
       set stop   ploss   200
       set target pprofit 500
    endif
    graph WLratio
    graph Wins
    graph Losses
    x-9.jpg x-9.jpg
    #205980 quote
    axmichi
    Participant
    Senior

    Danke, aber Ihre Formel berechnet nicht alles!?

     

    Ihre Formel berechnet nur die Anzahl der Gewinner geteilt durch die Anzahl der Verlierer

     

    Wir müssen noch die durchschnittlichen Gewinne und Verluste mit einrechnen.

     

    hier die komplette Formel wie auch im Foto zu sehen..

    Profitfactor = Anzahl der Gewinner/Anzahl der Verlierer * Durchschnittlicher Gewinn/durchschnittlicher Verlust

     

    Siehe Foto!!

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

Profitfactor im Chart anzeigen


ProOrder: Automatischer Handel & Backtesting

New Reply
Author
author-avatar
axmichi @axmichi Participant
Summary

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

Topic Details
Forum: ProOrder: Automatischer Handel & Backtesting
Language: German
Started: 12/16/2022
Status: Active
Attachments: 2 files
Logo Logo
Loading...