Equity available for trading

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #136034 quote
    ngmngm
    Participant
    New

    Hi, I would like to know if there is a function to get the equity available for trading.

    Let’s say I want to put a X LOTS depending on my available equity (more wins more LOTS, less wins less LOTS).

    Also if it’s possible to set the equity for start trading in the code itself. For instance: When I change to EURUSD to USDJPY in the graph itself the currency I wrote in the box it doesn’t change. I would like to fix always 10.000 € (my local currency) and not use the trading currency (sometimes 10.000 $, 10.000 JPY, etc.)

    Thanks.

    #136083 quote
    NicolasNicolas
    Keymaster
    Legend

    The calculation are made with the currency of the current instrument.

    There is no way to get the available equity for the whole account, but you can calculate it for the current code:

    capital = 10000 //capital at start of the strategy 
    
    floatingprofit = (((close-positionprice)*pointvalue)*countofposition)/pipsize //actual trade gains
    
    equity = capital+strategyprofit+floatingprofit
    dcmonova thanked this post
    #136176 quote
    ngmngm
    Participant
    New

    Thanks Nicolas. This solves to get equity without considering spread and broker fees (I found another topic about this and I will test it).

    Then, how I manage to test my system in different currencies? Do I have to manually change the capital for each one?

    #181504 quote
    dcmonovadcmonova
    Participant
    New

    That’s a basic feature to build strategies on. It should be implemented as a simple function to query. Am I missing something ?

    #200527 quote
    boup09boup09
    Participant
    New

    This is indeed something that would be very helpful for money management when running multiple strats.


    @PRT
    please consider this request to add total account equity as a function in ProBuilder

    #200542 quote
    robertogozzirobertogozzi
    Moderator
    Legend

    Use the suggestion box at https://trading.prorealtime.com/en/contact, to make sure PRT know what you wrote.

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

Equity available for trading


ProOrder: Automated Strategies & Backtesting

New Reply
Author
author-avatar
ngm @ngm Participant
Summary

This topic contains 5 replies,
has 3 voices, and was last updated by robertogozzirobertogozzi
4 years ago.

Topic Details
Forum: ProOrder: Automated Strategies & Backtesting
Language: English
Started: 06/15/2020
Status: Active
Attachments: No files
ProRealCode ProRealCode
Loading...