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é
JSParticipant
Senior
Hi @Ringo
Unfortunately, this is not possible because the different trading systems cannot exchange information…