kumulierte Orders

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #118151 quote
    GuentherGuenther
    Participant
    Junior

    Hallo,

    kann man bei kumulierten Orders programmieren,

    dass eine weitere Position nur dann geöffnet wird,

    wenn der Kurs einen entsprechenden Abstand zum Einstiegskurs hat?

    zB +0,5%

    #118250 quote
    NicolasNicolas
    Keymaster
    Legend

    Wenn Sie kumulative Bestellungen in einem Abstand von 0,5% von der letzten Bestellung öffnen möchten, können Sie dies folgendermaßen tun:

    next = tradeprice*1.05
    
    if close<next then 
     buy at next stop
    endif
    #118466 quote
    GuentherGuenther
    Participant
    Junior

    gilt das für Longpositionen?

    wie muss ich formulieren bei Shortpositionen?

    #118468 quote
    robertogozzirobertogozzi
    Moderator
    Legend
    next = tradeprice*0.95
     
    if close>next then 
     Sellshort at next stop
    endif
    #118475 quote
    GuentherGuenther
    Participant
    Junior

    wenn ich das einfüge habe ich “Syntaxfehler bei der Zuweisung”

    das Wort “next” ist markiert

    #118476 quote
    robertogozzirobertogozzi
    Moderator
    Legend

    War das nicht für lange Trades markiert? Ich habe gesehen, dass es hervorgehoben wurde und vermutet, dass es ein reserviertes Schlüsselwort gewesen sein muss, aber da Sie nichts gesagt haben, habe ich es weiter verwendet. Ersetzen Sie das Schlüsselwort NEXT durch ein beliebiges Wort Ihrer Wahl, NEXTX oder MyNext oder XX. Reservierte Wörter können nicht verwendet werden.

    #118479 quote
    GuentherGuenther
    Participant
    Junior

    was ist ein reserviertes Wort?

    #118483 quote
    robertogozzirobertogozzi
    Moderator
    Legend

    Reservierte Schlüsselwörter sind alle beim Einfügen von Code hervorgehobenen Schlüsselwörter: Systemanweisungen, Konstanten, Indikatoren, Operatoren.

    Sie können nicht als Variablennamen CLOSE, NOT, MACD, IF, SELL, TIME, DAY…. usw. verwenden.

    #120199 quote
    GuentherGuenther
    Participant
    Junior

    wenn ich einen Backtest für kumulierte Order durchführe bekomme ich

    dasselbe Ergebnis bei Positionsanzahl, Gewinn, etc. Schwer vorstellbar das das möglich ist.

     

    3Min Chart,

    0,1-3,

    0,05Schritte

Viewing 9 posts - 1 through 9 (of 9 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

kumulierte Orders


ProOrder: Automatischer Handel & Backtesting

New Reply
Author
author-avatar
Guenther @guenther Participant
Summary

This topic contains 8 replies,
has 3 voices, and was last updated by GuentherGuenther
6 years, 7 months ago.

Topic Details
Forum: ProOrder: Automatischer Handel & Backtesting
Language: German
Started: 01/28/2020
Status: Active
Attachments: No files
ProRealCode ProRealCode
Loading...