Reinvestment of profits

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

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

    #199518 quote
    LinkLink
    Participant
    Senior

    Can YOU get THIS?

    #199521 quote
    robertogozzirobertogozzi
    Moderator
    Legend

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

    Be patient, please.

    #199574 quote
    robertogozzirobertogozzi
    Moderator
    Legend

    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
    LinkLink
    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.
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

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 LinkLink
4 years ago.

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