Stop Price vs. Target Price

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #212658 quote
    SuffiSuffi
    Participant
    Junior

    Hallo
    ich habe folgende Funktion gesetzt bei
    DEFPARAM CumulateOrders = true

    set stop price (POSITIONPRICE – sl) //Bsp. Long  sl=100

    funktioniert bestens.
    Jetzt das Gleiche für den Profit

    set target price (POSITIONPRICE + tp) //Bsp. Long  tp=100

    funktioniert nicht. Gibt es diese Funktion nicht?

    Gruß
    Suffi

    #212721 quote
    GraHalGraHal
    Participant
    Master

    Kursziel setzen (POSITIONPRICE + tp) //Bsp. Lange tp=100

    Oben wird der Wert von 100 für tp „auskommentiert“ / vom Code nicht gelesen, da er sich in derselben Codezeile wie // befindet.

    Ist tp an anderer Stelle im Code definiert, wo tp nicht auskommentiert ist?   

    #212874 quote
    SuffiSuffi
    Participant
    Junior

    Hallo GraHal,
    der TP ist an richtig definiert, genauso der sl es sollte hier ein //Beispiel genannt werden, wie es nicht fuktioniert.

    Die Frage ist eigentlich gibt es den Befehl

    “set target price ”
    wenn
    DEFPARAM CumulateOrders = true

    So wie ich nachlesen konnte funktioniert der

    set Breakeven
    nicht wenn
    DEFPARAM CumulateOrders = true

    Gruß
    Suffi

    #212893 quote
    GraHalGraHal
    Participant
    Master

    Kursziel setzen (POSITIONPRICE + tp) //Bsp. Lange tp=100
    funktioniert nicht.

    Überprüfen Sie Ergebnisse mit POSITION PRICE, die wie im Link unten definiert sind?

    https://www.prorealcode.com/documentation/positionprice/  

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

Stop Price vs. Target Price


ProOrder: Automatischer Handel & Backtesting

New Reply
Author
author-avatar
Suffi @suffi Participant
Summary

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

Topic Details
Forum: ProOrder: Automatischer Handel & Backtesting
Language: German
Started: 04/02/2023
Status: Active
Attachments: No files
ProRealCode ProRealCode
Loading...