Setting Buy and Sell size a % of equity

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

    Is it possible to set the lot size as a % of equity?

    For example, if I start with 10,000 in equity and want to trade 10 lots(or shares).

    size = equity/1000

    Thanks

    #8916 quote
    Nicolas
    Keymaster
    Master

    Yes it’s possible. But you have to set your capital in the code as a variable.

    Adolfo has made a nice code snippet for everyone to use in their own prorealtime codes :

    http://www.prorealcode.com/blog/learning/money-management-prorealtime-code/

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.

Setting Buy and Sell size a % of equity


ProOrder: Automated Strategies & Backtesting

New Reply
Author
author-avatar
K12AN @k12an Participant
Summary

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

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