appliquer un break even en live et non a la cloture

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #162820 quote
    magiclil
    Participant
    Average

    Bonjour Nicolas, j’aimerais savoir si il est possible d’appliquer un break even au cours en direct plutot qu’a la cloture.

    voici le code que j’utilise

    IF LONGONMARKET AND close - tradeprice(1) >= 15 then
    breakevenLevel = tradeprice(1) + 5
    ENDIF
    IF breakevenLevel > 0 THEN
    SELL AT breakevenLevel STOP
    ENDIF
    IF NOT ONMARKET THEN
    breakevenLevel = 0
    ENDIF

    par quoi pourrais-je remplacer le close ?

    Merci d’avance

    #162834 quote
    Nicolas
    Keymaster
    Master

    Oui c’est possible, en utilisant un timeframe inférieur pour gérer ses positions, pour comprendre la programmation en timeframe multiple, voir ce sujet :

    Première approche sur le multi timeframe avec ProRealTime

    Exemple de breakeven en cours de bougie: https://www.prorealcode.com/topic/move-sl-during-current-candle/#post-79130

    magiclil thanked this post
Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.

appliquer un break even en live et non a la cloture


ProOrder : Trading Automatique & Backtests

New Reply
Author
author-avatar
magiclil @magiclil Participant
Summary

This topic contains 1 reply,
has 2 voices, and was last updated by Nicolas
5 years ago.

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