Reinvestment of profits

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #199468 quote
    Link
    Participant
    Senior

    Please, i need Code for reinvestment 10% of profits.

    #199518 quote
    Link
    Participant
    Senior

    Can YOU get THIS?

    #199521 quote
    robertogozzi
    Moderator
    Master

    In the last years you have always been answered, no matter what your userID was!

    Be patient, please.

    #199574 quote
    robertogozzi
    Moderator
    Master

    There you go:

    MyCapital = 1000
    MyProfit  = max(0,(StrategyProfit * 0.1))      //10% of gains pnly
    MyEquity  = MyCapital + MyProfit
    MinSize   = 1
    LotSize   = max(MinSize,MyEquity / MyCapital)
    #199604 quote
    Link
    Participant
    Senior

    Thanks Roberto!

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

Reinvestment of profits


ProOrder: Automated Strategies & Backtesting

New Reply
Author
author-avatar
Link @tony-manero Participant
Summary

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

Topic Details
Forum: ProOrder: Automated Strategies & Backtesting
Language: English
Started: 08/23/2022
Status: Active
Attachments: No files
Logo Logo
Loading...