appliquer un break even en live et non a la cloture

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #162820 quote
    magiclilmagiclil
    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
    NicolasNicolas
    Keymaster
    Legend

    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.
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

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 NicolasNicolas
5 years, 7 months ago.

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