Stopp nachziehen

Viewing 4 posts - 16 through 19 (of 19 total)
  • Author
    Posts
  • #40605 quote
    alexander48
    Participant
    New

    Fehler ist klar:

    das Programm berechnet den SL bei jedem neuen Balken neu. Trifft die Bedingung (High oder Close > tradeprice then SL 0) nicht mehr zu, dann setzt es den SL eben wieder auf 18. Es müsste also eine Möglichkeit geben, das High für der gesamten Periode der offenen Position zu berechnen, also von buy weg. Ich finde aber nur Perioden über eine Anzahl von (n) Balken. Wieviele Balken sinds aber seit der Positionseröffnung?

    sl=18
    if high >40 then              (sollte etwa so lauten: if high from open Position till now > 40 then)
       sl=0
    endif
    set stop ploss sl
    #40606 quote
    alexander48
    Participant
    New

    mit ONCE funktionierts auch nicht:

    ONCE SL18 = 18
    ONCE SL0 = 0

    IF high > 40 THEN
    SET STOP PLOSS SL0 // 2. Stop
    ENDIF

    SET STOP PLOSS SL18 // 1. Stop

    #42805 quote
    isirganotu
    Participant
    New

    Habt ihr es raus oder soll ich es euch zeigen? 🙂

    #42807 quote
    alexander48
    Participant
    New

    zeigen wäre optimal!!!!!!

Viewing 4 posts - 16 through 19 (of 19 total)
  • You must be logged in to reply to this topic.

Stopp nachziehen


ProOrder: Automatischer Handel & Backtesting

New Reply
Author
Summary

This topic contains 18 replies,
has 4 voices, and was last updated by alexander48
8 years, 6 months ago.

Topic Details
Forum: ProOrder: Automatischer Handel & Backtesting
Language: German
Started: 07/04/2017
Status: Active
Attachments: No files
Logo Logo
Loading...