Tests des gains et des pertes

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #106557 quote
    bobarmorbobarmor
    Participant
    Junior

    Bonjour,

    Je débute en trading automatique et je voudrais connaitre la manière la plus simple pour tester si l’on est en gain ou en perte lorsqu’une position est ouverte.

    Est-il possible par exemple de programmer une sortie de position si le gain est supérieur à 10 euros ?.

    Merci

    #106561 quote
    NicolasNicolas
    Keymaster
    Legend

    Tu peux utiliser l’instruction POSITIONPERF qui retourne le gain de la position en pourcentage du prix (pas du compte de trading).

    Ou tu peux utiliser ce calcul pour vérifier en temps réel le gain en monnaie :

    //floating profit
    floatingprofit = (((close-positionprice)*pointvalue)*countofposition)/pipsize //actual trade gains
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

Tests des gains et des pertes


ProOrder : Trading Automatique & Backtests

New Reply
Author
author-avatar
bobarmor @bobarmor Participant
Summary

This topic contains 1 reply,
has 2 voices, and was last updated by NicolasNicolas
7 years, 2 months ago.

Topic Details
Forum: ProOrder : Trading Automatique & Backtests
Language: French
Started: 09/05/2019
Status: Active
Attachments: No files
ProRealCode ProRealCode
Loading...