X Max trade per day

Forums ProRealTime English forum ProOrder support X Max trade per day

Viewing 5 posts - 1 through 5 (of 5 total)
  • #222386

    Hello All !

    Hope you are doing well 😉

    1 – May I kindly ask for a snippet of code that would allow an auto strategy being triggered X MAX num of time per Day ?

    2 – Is there another snippet of code that will let the strategy keeping on being triggered until X Pts per day are achieved?

    Example > I am looking for a gain of 10 pts per day. First trigger, loss of -30 pts. I need 40 pips to achieve my daily goal (forget about the fees).  Best scenario, 4 wins in a row THEN the strategy will stop for the day.

    BIG THANKS

     

    #222390

    1/ numerous topics for that:

    Max profit and loss each day in a trading strategy

    https://www.prorealcode.com/topic/1-gain-par-jour/#post-74368

    https://www.prorealcode.com/topic/1-position-par-jour/#post-46788

    https://www.prorealcode.com/topic/how-to-operate-just-once-in-a-day/

    https://www.prorealcode.com/topic/quick-question-one-order-per-day/

    https://www.prorealcode.com/topic/limiting-accumulating-orders-fuse/#post-25833

    https://www.prorealcode.com/topic/limite-le-trading-automatique-a-un-ordre-journalier/

    https://www.prorealcode.com/topic/max-number-of-trades-in-a-period/#post-176779

    https://www.prorealcode.com/topic/limite-du-nombre-de-trade-par-jour-ne-fonctionne-par-correctement/#post-165596

    2/ code for Daily max loss/profit in points/pips:

     

    1 user thanked author for this post.
    #222402

    Hello !

    This strategy keep buying indefinitely … I thought the code would have stopped after the second trade…

    Where is my mistakeplease??

    THANK YOU 😉

     

    #222456

    You added variable maxorders, but you never used it to enter trades, so it is useless. In addition count wasn’t correctly updated and wasn’t used either.

    I added maxpips to set a daily target, after which trading is disabled:

     

     

     

    1 user thanked author for this post.
    #222459

    THANK YOU very much Roberto !  I keep this one safe.

    Have a nice week-end.

    Damien

    1 user thanked author for this post.
Viewing 5 posts - 1 through 5 (of 5 total)

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