Calcular la ganancia temporal de un trade

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #228623 quote
    gustavobpgustavobp
    Participant
    New

    buenos dias amigos,

    Estoy intentando calcular la ganancia en puntos o en dolares acumulada (de manera temporal en el trade abierto por el bot) dewde la apertura del trade, vela a vela, Esa funcion me serviria para en funcion de la ganancia cumulada del trade abierto saber si me interesa cerrar o poner un stopo en algun punto.

    ¿Alguien sabe darme un ejemplo de dicha funcion para calcular la ganancia temporal del trade abierto? es para el futuro Micro sp500

    Mil gracias!!!!

    #228635 quote
    robertogozzirobertogozzi
    Moderator
    Legend

    La ganancia (o pérdida temporal, si es negativa) en PUNTOS se calcula de la siguiente manera:

    tempProfit = PositionPerf * PositionPrice / PipSize

    La ganancia (o pérdida temporal, si es negativa) en DINERO se calcula de la siguiente manera:

    tempProfit = PositionPerf * PositionPrice / PipSize * PipValue
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

Calcular la ganancia temporal de un trade


ProOrder: Trading Automático y Backtesting

New Reply
Author
author-avatar
gustavobp @gustavobp Participant
Summary

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

Topic Details
Forum: ProOrder: Trading Automático y Backtesting
Language: Spanish
Started: 02/23/2024
Status: Active
Attachments: No files
ProRealCode ProRealCode
Loading...