Max Loss per day

Viewing 6 posts - 1 through 6 (of 6 total)
  • #102882

    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

    #102884

    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

     

    #102885

    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?

    1 user thanked author for this post.
    #102886

    A good code snippet for the daily maximum loss can be found here:

    https://www.prorealcode.com/blog/learning/max-profit-loss-day-trading-strategy/

     

    #102889

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

     

    #102991

    Thanks heaps Nicolas thats exactly what I needed

Viewing 6 posts - 1 through 6 (of 6 total)

Create your free account now and post your request to benefit from the help of the community
Register or Login