Max Daily Loss Limit Script Needed

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

    Hello,

    I am new to Pro Real Code, and was keen for someone to share a simple script that can provide me with a MAX DAILY LOSS limit of £500.

    After which I cannot place a trade in that day.

    This would need to reset the following day.

     

    Thanks

    Shaz

    #190735 quote
    robertogozzi
    Moderator
    Master

    Use TradeON as an additional condition to enter a trade:

    Once MaxLoss    = 500
    Once TempProfit = 0
    Once TradeON    = 1
    If IntraDayBarIndex = 0 Then
       TempProfit = StrategyProfit
       TradeON    = 1
    Endif
    If TempProfit - StrategyProfit >= MaxLoss then
       TradeON = 0
    Endif
Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.

Max Daily Loss Limit Script Needed


ProBuilder: Indicators & Custom Tools

New Reply
Author
author-avatar
shaz @shaz Participant
Summary

This topic contains 1 reply,
has 2 voices, and was last updated by robertogozzi
3 years, 10 months ago.

Topic Details
Forum: ProBuilder: Indicators & Custom Tools
Language: English
Started: 03/29/2022
Status: Active
Attachments: No files
Logo Logo
Loading...