Money management – How to get the available capital from the broker?

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

    Good morning,

    I want to be able to set my position size according to x% risk of the available capital in my account. I have read this money management code.

    Instead of having to manually declare the variable Capital = x, is there no way for pro order to lookup the amount automatically?

    I will need to use pro order to automate more than one strategy so it seems like strategyprofit wouldn’t work, it would only update from a single strategy and not include the value of the others?

    It seems to defeat the purpose of automation if I have to manually update the capital after every trade is closed?

    Thanks.

    #145384 quote
    Nicolas
    Keymaster
    Master

    It is not possible to automatically retrieve the amount of your account into ProOrder.

    STRATEGYPROFIT cumulate the profit and loss of the current strategy and does not communicate with other ones.

    For a single strategy, to get the real time capital available, you can code it like in this example:

    once startCapital = 1000
    capital = startCapital + STRATEGYPROFIT
Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.

Money management – How to get the available capital from the broker?


ProOrder: Automated Strategies & Backtesting

New Reply
Author
author-avatar
PhilA @phila Participant
Summary

This topic contains 1 reply,
has 2 voices, and was last updated by Nicolas
5 years, 4 months ago.

Topic Details
Forum: ProOrder: Automated Strategies & Backtesting
Language: English
Started: 07/20/2020
Status: Active
Attachments: No files
Logo Logo
Loading...