Hi guys
Is it possible to code a “max loss per day” into the system? Essentially adding a dollar amount loss which if hit within a period of time will stop the system trading and push into “not running”.
Thanks
There you go, you’ll have to:
- add TradeON to your conditions to enter a trade
- set TradeON back to 1 to reenable trading whenever you want
ONCE MaxLoss = 500
ONCE TradeON = 1
IF STRATEGYPROFIT <= MaxLoss THEN
TradeON = 0
ENDIF
Thanks Roberto
Bit new to this so when you say “add TradeON to your conditions to enter a trade” – is this a build in function or will this form part of the code?
Thanks Roberto
Bit new to this so when you say “add TradeON to your conditions to enter a trade” – is this a build in function or will this form part of the code?
You have to merge my code into yours, then us TradeON, alcong with your conditions, to enter a trade, i.e.:
IF MyConditions AND TradeON THEN
BUY/SELLSHORT .....
ENDIF
Thanks heaps Nicolas thats exactly what I needed