Hello Guest

Restart script if profit level is reached in stead of a stop

  • 1 Replies
  • 116 Views
*

TheFrog

  • *
  • 1
  • +0/-0
    • View Profile
Restart script if profit level is reached in stead of a stop
« on: December 17, 2020, 07:29:30 pm »
Testing this script works great so far, but it stops when profit is reached, i would like to autmatically let it restart again is this possible?


*

Seuntjie

  • *****
  • 549
  • +14/-2
    • View Profile
Re: Restart script if profit level is reached in stead of a stop
« Reply #1 on: December 17, 2020, 09:24:28 pm »
there isn't a built in reset function, it's impossible to do for scripts by nature of scripts. To reset your script, you need to reset the relevant variables.
There is also this pattern you can use to write your scripts in to make it easier to reset/resume: https://forum.seuntjie.com/index.php?topic=2.msg2195#msg2195