Max Daily Loss Limit for automating trading

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #217099 quote
    RingoRingo
    Participant
    Junior
    Hello, at the moment I ran 3 stocks in an automatated trading system. So 3 strategies are running at the same time. I like to install a daily loss limit of $300 Recently I put these lines in the code to not allow to open new trades when the loss limit is reached:
    Once MaxLoss = 300
    Once TempProfit = 0
    Once TradeON = 1
    IF IntraDayBarIndex = 0 Then
    TempProfit = STRATEGYPROFIT
    TradeON = 1
    ENDIF
    If TempProfit - STRATEGYPROFIT >= MaxLoss THEN
    TradeON = 0
    ENDIF
      But this only works for each stock. Therfore I am running the system for 3 stocks/3strategies, the system stops for the day when 3x-$300 is reached. How can I install a check  before a new trade is openend, regarding the total running profit/Loss for the day for the whole protfolio? Any ideas?   Thanks for help André
    #217108 quote
    JSJS
    Participant
    Master

    Hi @Ringo

    Unfortunately, this is not possible because the different trading systems cannot exchange information…

    Ringo and KumoNoJuzza thanked this post
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 for automating trading


ProOrder: Automated Strategies & Backtesting

New Reply
Author
author-avatar
Ringo @ringo Participant
Summary

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

Topic Details
Forum: ProOrder: Automated Strategies & Backtesting
Language: English
Started: 06/30/2023
Status: Active
Attachments: No files
ProRealCode ProRealCode
Loading...