insertion de breakeven

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #202601 quote
    gerard66gerard66
    Participant
    New

    Bonjour Nicolas,

    j utilise un robot DAX en 15mn en long et short

    je voudrais integrer un breakeven et malgre mes recherches sur le site et l utilisation du terme ” SET STOP BREAKEVEN” , le robot ne prend pas en compte ma demande

    je vous joins l ITF du robot et je souhaiterais si c est possible un BREKEAVEN en long et en court avec les parametres suivants:

    en long: declenchement du breakeven si l indice est > 0.8% par rapport a l indice de prise de position du robot et modification du stoploss a 10pts au dessus de l indice de prise de position

    en short: declenchement du breakeven si l indice est < 0.8% par rapport a l indice de prise de position du robot et modification du stoploss a 10pts au dessous de l indice de prise de position

    merci de votre aide

    DAX-15MN-NICOLAS-BREAKEVEN.itf
    #202659 quote
    NicolasNicolas
    Keymaster
    Legend

    Bonjour Gérard, on peut reprendre le test du code de vente partielle que j’avais codé dans ton autre sujet: https://www.prorealcode.com/topic/vente-partielle-de-contrat-sur-indice/#post-195021

    Soit:

    // mise à breakeven 
    if onmarket and positionperf>.8/100 then
     set stop breakeven 
    endif
    #202671 quote
    gerard66gerard66
    Participant
    New

    merci

    ca marche

    cordialement

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

insertion de breakeven


ProOrder : Trading Automatique & Backtests

New Reply
Author
author-avatar
gerard66 @gerard66 Participant
Summary

This topic contains 2 replies,
has 2 voices, and was last updated by gerard66gerard66
4 years ago.

Topic Details
Forum: ProOrder : Trading Automatique & Backtests
Language: French
Started: 10/15/2022
Status: Active
Attachments: 1 files
ProRealCode ProRealCode
Loading...