comment garder la valeur d'un trade cloturé

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

    Bonjour,

    Est-il possible de mettre dans une variable la valeur du dernier trade cloturé?

    Par exemple, j’ai cloturé une position à 1.2 ,j’aimerai mettre dans valclotur cette valeur (valclotur = 1.2) ,pour mon seconde trade si il est clôturé à 1.4 par exemple,
    valclotur = 1.4 et ainsi de suite.

    Merci d’avance pour vos réponses.

    Cordialement

    #45214 quote
    NicolasNicolas
    Keymaster
    Legend

    Pour cela, il est possible d’utiliser POSITIONPERF , cette instruction retourne la performance du n dernier trade en pourcentage. Pour obtenir la valeur de clôture, je pense qu’un calcul entre le TRADEPRICE (valeur d’ouverture) et ce que te retournera POSITIONPERF te permettra d’arriver à tes fins.

    #45244 quote
    yazyaz
    Participant
    New

    Toujours aussi patient avec nous les débutants ! merci Nicolas !!!

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

comment garder la valeur d'un trade cloturé


ProOrder : Trading Automatique & Backtests

New Reply
Author
author-avatar
yaz @yaz Participant
Summary

This topic contains 2 replies,
has 2 voices, and was last updated by yazyaz
9 years, 1 month ago.

Topic Details
Forum: ProOrder : Trading Automatique & Backtests
Language: French
Started: 08/31/2017
Status: Active
Attachments: No files
ProRealCode ProRealCode
Loading...