stevehopwoodforex.com
https://www.stevehopwoodforex.com/phpBB3/
Print view

Desky. TDesk's trading drone.
https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?t=5545
Page 21 of 50
Author:  c1borg [ Mon Feb 11, 2019 5:04 am ]
Post subject:  Desky. TDesk's trading drone.

Early testing which could definately be my fault, I had a Pending and a Super signal and no trade? I have another Demo with the same setfiles for both TDesk and Desky which is making trades? Will try and get some more useable feedback.
Capture.PNG
Capture1.png
Author:  c1borg [ Mon Feb 11, 2019 5:59 am ]
Post subject:  Desky. TDesk's trading drone.

c1borg » Mon Feb 11, 2019 5:04 am wrote:Early testing which could definately be my fault, I had a Pending and a Super signal and no trade? I have another Demo with the same setfiles for both TDesk and Desky which is making trades? Will try and get some more useable feedback.


Ignore this atm I have tracked the issue to a combination of my setfile(s) and indicator. Will report back soon.
Author:  SteveHopwood [ Mon Feb 11, 2019 12:40 pm ]
Post subject:  Desky. TDesk's trading drone.

wallywonka » Mon Feb 11, 2019 3:55 am wrote:
Hi Steve, I'm using grid orders and it doesn't appear to be deleting pending orders on opposite or flat signals, both are enabled.
werterherr just sent me the solution to this. Thanks werterherr. :clap: :clap: :clap: :clap: :clap: :clap:

The fix is in post 1.

DIYers, the faults are to be found in lines:
4817 if (SellOpen)
4809 if (BuyOpen)

These stop Desky from deleting pending orders if there is a market trade already open. Doubtless there was a reason for this at the time I coded it, but I cannot think what it was.

Change these lines to:
if (SellStopOpen || SellLimitOpen)
if (BuyStopOpen || BuyLimitOpen)

Your line numbers are probably a bit different to mine if you are an avid DIYer, so if in doubt do a search for, "//Following an opposite direction signal" to take you to the relevant code block.

:xm: :rocket:
Author:  SteveHopwood [ Wed Feb 13, 2019 4:52 pm ]
Post subject:  Desky. TDesk's trading drone.

V 2t is in post 1. I have added the daily profit target thingy. The inputs are underneath the weekly profit target inputs.

:xm: :rocket:
Author:  wallywonka [ Fri Feb 15, 2019 5:24 am ]
Post subject:  Desky. TDesk's trading drone.

Delete pending trades on signal change doesn't appear to be working here... Anyone else confirm this?
Author:  c1borg [ Fri Feb 15, 2019 6:07 am ]
Post subject:  Desky. TDesk's trading drone.

wallywonka » Fri Feb 15, 2019 5:24 am wrote:Delete pending trades on signal change doesn't appear to be working here... Anyone else confirm this?
Working for me this just happened as an example.
pending order #117987446 sell stop 0.01 GBPUSD at 1.27932 deleted
Author:  wallywonka [ Fri Feb 15, 2019 6:10 am ]
Post subject:  Desky. TDesk's trading drone.

c1borg » Fri Feb 15, 2019 6:07 am wrote:
wallywonka » Fri Feb 15, 2019 5:24 am wrote:Delete pending trades on signal change doesn't appear to be working here... Anyone else confirm this?
Working for me this just happened as an example.
pending order #117987446 sell stop 0.01 GBPUSD at 1.27932 deleted
Are you using grid trading or normal pending trades?
Author:  c1borg [ Fri Feb 15, 2019 6:35 am ]
Post subject:  Desky. TDesk's trading drone.

wallywonka » Fri Feb 15, 2019 6:10 am wrote:
Are you using grid trading or normal pending trades?
Normal trades grid trading is off in this setup
Author:  wallywonka [ Fri Feb 15, 2019 7:38 am ]
Post subject:  Desky. TDesk's trading drone.

c1borg » Fri Feb 15, 2019 6:35 am wrote: Normal trades grid trading is off in this setup
Cheers bud, not sure what is happening here... I made sure I have the latest version but pending trades just wont delete...hmmm
Author:  ppaulius1 [ Fri Feb 15, 2019 6:13 pm ]
Post subject:  Desky. TDesk's trading drone.

Hello,

I have the same issue. I'm using grid on two demos and pending orders are not deleted on flat signal. Tested on 'q', 's' and 't' versions - the same results.
Didn't test 'DeletePendingOrdersOnOppositeSignal' yet.

There is my .set file if somebody want to check/compare settings.
All times are UTC Page 21 of 50