STOP Trailing sur Future avec ProOrder

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #226833 quote
    Gerf11
    Participant
    New

    Bonjour à tous,

    Actuellement il n’est pas possible d’utiliser sur les Futures (je suis avec le broker IB) les trailing stop. Quand on veut lancer son code, nous recevons l’information que ce n’est pas encore disponible, je pense qu’ils y travaillent.

    Une personne a-t-il trouvé un workaround pour obtenir malgré tout le code ci-cessous mais du coup autrement:

    // Stops et objectifs
    if LONGONMARKET THEN
    SET STOP TRAILING 4
    ENDIF
    if SHORTONMARKET THEN
    SET STOP TRAILING 5
    ENDIF

     

    MERCI à la communauté

    #226842 quote
    Nicolas
    Keymaster
    Legend

    En effet, l’instruction n’est pas encore disponible via ProOrder avec Interactive Broker.

    Il existe une multitude de code de trailing stop sur les forums, tu pourras en trouver plusieurs dans cette liste: https://docs.google.com/spreadsheets/d/1rgboqj7sVwsP9ZRhOduOefye48QMWC07jWVXCl-KJPU/edit#gid=0

    Sinon, je me souviens avoir codé un trailing stop qui agit en quelque sorte de la même manière que l’instruction lorsqu’elle travaille chez IG: https://www.prorealcode.com/topic/set-stop-loss-x-trailing-y-code-manuel/#post-166298

    #226843 quote
    Nicolas
    Keymaster
    Legend

    Voir aussi ici pour un fork de ce code de trailing stop: https://www.prorealcode.com/topic/code-trailing-stop/

    #226884 quote
    Gerf11
    Participant
    New

    Merci Nicolas,

    Actuellement aucun ne correspond à ceci ou alors je m’y prends mal…

    if LONGONMARKET THEN
    SET STOP TRAILING 4
    ENDIF
    if SHORTONMARKET THEN
    SET STOP TRAILING 5
    ENDIF

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 Trailing sur Future avec ProOrder


ProOrder : Trading Automatique & Backtests

New Reply
Author
author-avatar
Gerf11 @gerf11 Participant
Summary

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

Topic Details
Forum: ProOrder : Trading Automatique & Backtests
Language: French
Started: 01/24/2024
Status: Active
Attachments: No files
Logo Logo
Loading...