- Slopey Peaky Bob running on a live account on my VPS.
- I am monitoring the position on my desktop machine.
- The position was in deep DD and I wanted to delete the outstanding stop orders.
- Every time I deleted them from my desktop, SPB added them back.
- I went to the VPS and told SPB to cut down on the number of stop orders to send.
- He took no notice and just kept on adding them back in as I deleted them.
VPS users know that it helps to reduce the cpu load, so I coded the attached basket manager. All it does is monitor open trades and closes them when my cash profit target is reached. The inputs are:
- EventTimerSeconds: tells the manager how often to run its routines. The default is once a second.
- MagicNumber: this tells the manager which trades he is to monitor. Bear this in mind:
- A magic of 0 tells him to regard manual trades as 'his'.
- A magic of -1 tells him to regard all trades on the platform as 'his', regardless of their origin and magic number. Use with care.
- CashProfitTarget: your profit target in your account currency. The default is $30.