Trade aus der Vergangenheit auswerten

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

    Hallo,

     

    ich möchte trade die ich früher in Prorealtime gemacht habe auswerten.

     

    Leider ist im Chart nur der grüne pfeil und das Viereck für den Einst ieg und den Ausstieg zu sehen.

    Kann ich noch rausfinden wo der Initialstop Stopp loss gelegen hat. Kann ich die Stopp level noch irgend wo sehen oder finden?

     

    danke euch

    #237284 quote
    robertogozzi
    Moderator
    Master

    Sie können den Stop-Loss und den Take-Profit auf dem Diagramm mit ROTEN und BLAUEN Linien sehen.

    MyLongConditions  = Not OnMarket AND Close CROSSES OVER  Average[20,0](close)
    MyShortConditions = Not OnMarket AND Close CROSSES UNDER Average[20,0](close)
    IF MyLongConditions THEN
       BUY 1 CONTRACT AT MARKET
       StopLoss    = lowest[3](low)
       TargetPrice = close + (close - StopLoss)
    ELSIF MyShortConditions THEN
       SELLSHORT 1 CONTRACT AT MARKET
       StopLoss    = highest[3](high)
       TargetPrice = close - (StopLoss - close)
    ENDIF
    SET STOP PRICE   StopLoss
    SET TARGET PRICE TargetPrice
    //
    graphonprice TargetPrice AS "TP" coloured("Blue")
    graphonprice StopLoss    AS "SL" coloured("Red")
    #237285 quote
    axmichi
    Participant
    Senior

    Danke für die schnelle Antwort!!!

    #237287 quote
    axmichi
    Participant
    Senior

    Hallo Roberto,

     

    kannst Du es noch so schreiben das der Take profit 2 mal so groß ist wie der stop loss also CRV 2:1

    Ich habe es versucht mit

    SET TARGET PRICE TargetPrice * 2  // das funktioniert aber nicht

    #237348 quote
    Iván González
    Moderator
    Master

    Hallo. Sie müssen lediglich die Codezeilen 6 und 10 ändern.

    TargetPrice = close + 2*(close - StopLoss)
    TargetPrice = close - 2*(close - StopLoss)
    #237352 quote
    axmichi
    Participant
    Senior

    Hallo und danke für die Info,

    kann ich noch etwas fragen??!!

    können sie bitte  auch noch schreiben, das der Kurs auf Break even gezogen wird, sobald das CRV von 1:1 erreicht ist??

    #237416 quote
    robertogozzi
    Moderator
    Master

    Los geht’s:

    MyLongConditions  = Not OnMarket AND Close CROSSES OVER  Average[20,0](close)
    MyShortConditions = Not OnMarket AND Close CROSSES UNDER Average[20,0](close)
    IF MyLongConditions THEN
       BUY 1 CONTRACT AT MARKET
       StopLoss    = lowest[3](low)
       CRV11       = close + (close - StopLoss)
       TargetPrice = close + 2*(close - StopLoss)
       SET STOP PRICE   StopLoss
       SET TARGET PRICE TargetPrice
    ELSIF MyShortConditions THEN
       SELLSHORT 1 CONTRACT AT MARKET
       StopLoss    = highest[3](high)
       CRV11       = close - (StopLoss - close)
       TargetPrice = close - 2*(StopLoss - close)
       SET STOP PRICE   StopLoss
       SET TARGET PRICE TargetPrice
    ENDIF
    //
    IF (LongOnMarket AND (close >= CRV11)) OR (ShortOnMarket AND (close <= CRV11)) THEN
       StopLoss = TradePrice
       SET STOP PRICE StopLoss
    ENDIF
    //
    graphonprice TargetPrice AS "TP"      coloured("Blue")
    graphonprice CRV11       AS "Crv 1:1" coloured("Cyan")
    graphonprice StopLoss    AS "SL"      coloured("Red")
    Iván González thanked this post
    #237425 quote
    axmichi
    Participant
    Senior

    Danke schön, ich schau es mir Morgen an…

    #237553 quote
    axmichi
    Participant
    Senior

    Ich würde den Code noch um eine Stop Regel erweitern.

    Ich möchte das der Stop Loss in die Mitte zwischen Tradeprice und StopLoss gezogen wird, wenn der Kurs 70 % im Gewinn ist.

    Ist dieser Code hier dafür richtig?

    if longonmarket AND (close) >= (Tradeprice-StopLoss)* 1.7 Then
    stopLoss = (TRADEPRICE-StopLoss)/2
    SET STOP PRICE StopLoss
    endif

    #237667 quote
    robertogozzi
    Moderator
    Master

    Probieren Sie diese Version aus:

    MyLongConditions  = Not OnMarket AND Close CROSSES OVER  Average[20,0](close)
    MyShortConditions = Not OnMarket AND Close CROSSES UNDER Average[20,0](close)
    IF MyLongConditions THEN
       BUY 1 CONTRACT AT MARKET
       StopLoss    = lowest[3](low)
       CRV11       = close + (close - StopLoss)
       TargetPrice = close + 2*(close - StopLoss)
       MyGain      = abs(TargetPrice - close)
       SET STOP PRICE   StopLoss
       SET TARGET PRICE TargetPrice
    ELSIF MyShortConditions THEN
       SELLSHORT 1 CONTRACT AT MARKET
       StopLoss    = highest[3](high)
       CRV11       = close - (StopLoss - close)
       TargetPrice = close - 2*(StopLoss - close)
       MyGain      = abs(TargetPrice - close)
       SET STOP PRICE   StopLoss
       SET TARGET PRICE TargetPrice
    ENDIF
    //
    IF OnMarket THEN
       tempGain = PositionPrice * POSITIONPERF * PipValue * abs(CountOfPosition)
    ENDIF
    //
    IF (LongOnMarket AND (close >= CRV11)) OR (ShortOnMarket AND (close <= CRV11)) THEN
       StopLoss = TradePrice
       SET STOP PRICE StopLoss
    ENDIF
    IF OnMarket THEN
       IF tempGain >= (MyGain * 0.70) AND OnMarket THEN
          IF LongOnMarket THEN
             StopLoss =  max(StopLoss,(close + StopLoss) / 2)
          ELSIF ShortOnMarket THEN
             StopLoss =  min(StopLoss,(close + StopLoss) / 2)
          ENDIF
          SET STOP PRICE   StopLoss
       ENDIF
    ENDIF
    //
    graphonprice TargetPrice AS "TP"      coloured("Blue")
    graphonprice CRV11       AS "Crv 1:1" coloured("Cyan")
    graphonprice StopLoss    AS "SL"      coloured("Red")
    graph PositionPerf
Viewing 10 posts - 1 through 10 (of 10 total)
  • You must be logged in to reply to this topic.

Trade aus der Vergangenheit auswerten


Plattform-Support: Charts, Daten & Broker

New Reply
Author
author-avatar
axmichi @axmichi Participant
Summary

This topic contains 9 replies,
has 3 voices, and was last updated by robertogozzi
1 year, 5 months ago.

Topic Details
Forum: Plattform-Support: Charts, Daten & Broker
Language: German
Started: 09/07/2024
Status: Active
Attachments: No files
Logo Logo
Loading...