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

Desky. TDesk's trading drone.
https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?t=5545
Page 28 of 50
Author:  SteveHopwood [ Wed Apr 10, 2019 12:06 pm ]
Post subject:  Desky. TDesk's trading drone.

V 3i is in post 1. This is no big deal unless you are using lot sizing by dollops of cash; you can wait for the next update if not. . DC posted about a bloop in the code that was resulting in incorrect lot sizing under certain circumstances. This is fixed in 3i. It is also fixed in SPB 2j, which I shall post when I have finished writing this.

The DIY fix in both is easy. Do a search for: Lot = NormalizeDouble(NoOfDollops * LotsPerDollopOfCash, decimal);

Replace it with:

Code: Select all

   //This equation provided by DygitalCrypto. Thanks David.
   Lot = NormalizeDouble((MathFloor(((DoshDollop / SizeOfDollop) * LotsPerDollopOfCash) * 100) / 100), decimal);
    
The second is for Desky only. It is a check that the position is in a cash profit before closure is allowed. I am not sure this is necessary but does no harm. Insert this somewhere at the top of void CanWeCloseTheRollingGrid(string symbol, int pairIndex, int type):

Code: Select all

   //Only close the position if it is cash positive.
   if (TotalCashUpl < 0)
      return;
 
:xm: :rocket:
Author:  wallywonka [ Thu Apr 11, 2019 9:31 am ]
Post subject:  Desky. TDesk's trading drone.

Is anyone else having issues with some trades not opening on a super signal? I've noticed it on a few instances, not sure what's going on but rolling back to version 3c and trades open up just fine...
Author:  tomele [ Thu Apr 11, 2019 9:58 am ]
Post subject:  Desky. TDesk's trading drone.

wallywonka wrote:Is anyone else having issues with some trades not opening on a super signal? I've noticed it on a few instances, not sure what's going on but rolling back to version 3c and trades open up just fine...
MaxPairsAllowedToTrade=8?
Author:  wallywonka [ Fri Apr 12, 2019 8:29 am ]
Post subject:  Desky. TDesk's trading drone.

tomele » Thu Apr 11, 2019 9:58 am wrote:
wallywonka wrote:Is anyone else having issues with some trades not opening on a super signal? I've noticed it on a few instances, not sure what's going on but rolling back to version 3c and trades open up just fine...
MaxPairsAllowedToTrade=8?
Hi Thomas,

I'll have maybe 3 trades open and 5/6 Super signals and the others just won't open.. They are within the timeframe allowed for the signals etc and I have tried to remove the EA and attach it again but they simply don't open, reverting back to older versions and the other trades open instantly so not sure what's changed in the more recent versions.... It's a strange one, if I work it out I'll let you know but can't see anything in the options that may be preventing it.
Author:  Bigricky1 [ Fri Apr 12, 2019 8:47 am ]
Post subject:  Desky. TDesk's trading drone.

Zeljko enabled by default ???
Author:  Alexfirst [ Fri Apr 12, 2019 9:01 am ]
Post subject:  Desky. TDesk's trading drone.

wallywonka » Fri Apr 12, 2019 11:29 am wrote:
Hi Thomas,

I'll have maybe 3 trades open and 5/6 Super signals and the others just won't open.. They are within the timeframe allowed for the signals etc and I have tried to remove the EA and attach it again but they simply don't open, reverting back to older versions and the other trades open instantly so not sure what's changed in the more recent versions.... It's a strange one, if I work it out I'll let you know but can't see anything in the options that may be preventing it.
I have faced same problem several times with different versions of Desky. When Desky loads, it opens trades on existing super signals, then stops reacting to new ones. If I reload it, it again acts once and then stops.

Last time switching “EveryTickMode” ON solved the problem.
Author:  tomele [ Fri Apr 12, 2019 9:23 am ]
Post subject:  Desky. TDesk's trading drone.

Hi.

This behaviour has to do with the fact that Steve has turned on various overtrading filters as default in version 3g. Turn off what you don't need. Attached is an example set file.

Cheers
Thomas
.
Author:  wallywonka [ Fri Apr 12, 2019 9:36 am ]
Post subject:  Desky. TDesk's trading drone.

tomele » Fri Apr 12, 2019 9:23 am wrote:Hi.

This behaviour has to do with the fact that Steve has turned on various overtrading filters as default in version 3g. Turn off what you don't need. Attached is an example set file.

Cheers
Thomas
.
Cheers Thomas, I'll throw that set file on it and see how it goes :hi:
Author:  SteveHopwood [ Fri Apr 12, 2019 10:49 am ]
Post subject:  Desky. TDesk's trading drone.

tomele » Fri Apr 12, 2019 9:23 am wrote:Hi.

This behaviour has to do with the fact that Steve has turned on various overtrading filters as default in version 3g.

Cheers
Thomas
.
The reason Thomas knows this is that he read the post when I informed you folks that these filters would be turned on by default.

I know there are those amongst you who resolutely refuse to read anything I write whatever the circumstances. That is why I do not bother to SCREAM IMPORTANT POINTS IN HUGE PRINT. I would be wasting my energy.

Fact is folks, you can expect thingies to go wrong if you take no notice of the poor sap actually writing this EA. Stop being so bloody stupid.

On a slightly more positive note, I have added a note about this to the relevant sections of the user guide.
Author:  SteveHopwood [ Sun Apr 14, 2019 2:19 pm ]
Post subject:  Desky. TDesk's trading drone.

Here is something I want to add to Desky and SPB - equalising the value of pip movements across all the currencies. I want to add code to calculate a differential lot size so that, say, a 10 pip movement creates the same profit along all pairs.

I am utterly useless at the mathematical stuff. I have googled this, started to read it and it is not long before my eyes glaze over and I lose the will to live.

Can someone here either: explain how it is done in big print, single-syllable words in short sentences

or, even better:

provide the formula.

If someone can provide the steps, I can write the code.

:xm: :rocket:
All times are UTC Page 28 of 50