Max Daily Loss Limit Script Needed

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #190730 quote
    shazshaz
    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
    robertogozzirobertogozzi
    Moderator
    Legend

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

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 robertogozzirobertogozzi
4 years, 7 months ago.

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