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

Hopelessly confused by TDesk or Desky? Ask here.
https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?t=5546
Page 46 of 71
Author:  taipan [ Tue Oct 20, 2020 9:57 pm ]
Post subject:  Hopelessly confused by TDesk or Desky? Ask here.

milanese » Wed Oct 21, 2020 1:15 am wrote:
taipan » Tue Oct 20, 2020 4:18 pm wrote:
Appreciate the Admin can move my setup to the viewtopic.php?f=106&t=5532&start=90

Thanks.
I did move your post.

All the best

Tommaso

Thanks milanese for the move.

taipan
Author:  RMSSC [ Thu Oct 29, 2020 7:40 pm ]
Post subject:  Hopelessly confused by TDesk or Desky? Ask here.

Hi,
I have the Trailing Stop activated and working, however, I constantly see the error in the image below.
Can anyone tell me the reason for this error?
Cheers
Author:  SteveHopwood [ Thu Oct 29, 2020 9:45 pm ]
Post subject:  Hopelessly confused by TDesk or Desky? Ask here.

Somehow over time, I have changed some of the TS logic and introduced some faulty ones. This has infected pretty much everything I have coded since. I will upload a fix tomorrow.

In the meantime, go to viewtopic.php?p=171428#p171428 and read it and the following two posts if you want to do a quick DIY. 'tis easy to do.

:xm: :rocket:
Author:  RMSSC [ Fri Oct 30, 2020 9:31 am ]
Post subject:  Hopelessly confused by TDesk or Desky? Ask here.

SteveHopwood » Thu Oct 29, 2020 9:45 pm wrote:Somehow over time, I have changed some of the TS logic and introduced some faulty ones. This has infected pretty much everything I have coded since. I will upload a fix tomorrow.

In the meantime, go to viewtopic.php?p=171428#p171428 and read it and the following two posts if you want to do a quick DIY. 'tis easy to do.

:xm: :rocket:
Thanks Steve for the information :) .
I take the opportunity to question something that, however much I look, I am not discovering in Desky that it is the possibility of making the trilling stop dynamic. :roll: .
Please note that I am not asking you to add new features to this excellent tool, I just want to know if Desky does and if it does, how do I activate this possibility.
I give the following example:
T.S. = 30
T.P. = 50
When the price reaches the profit of 40 pips the T.S. increase 5 pips to 35 (for example), if the price reaches the profit of 45pips, the TS increases another 5 pips to 40 ...
I question because I think it can boost profit by reducing the difference between the T.S. and T.P. if the price remains in our favor.
Cheers :hi:
RMSSC
Author:  SteveHopwood [ Sun Nov 01, 2020 7:07 pm ]
Post subject:  Hopelessly confused by TDesk or Desky? Ask here.

RMSSC » Fri Oct 30, 2020 9:31 am wrote:
Thanks Steve for the information :) .
I take the opportunity to question something that, however much I look, I am not discovering in Desky that it is the possibility of making the trilling stop dynamic. :roll: .
Please note that I am not asking you to add new features to this excellent tool, I just want to know if Desky does and if it does, how do I activate this possibility.
I give the following example:
T.S. = 30
T.P. = 50
When the price reaches the profit of 40 pips the T.S. increase 5 pips to 35 (for example), if the price reaches the profit of 45pips, the TS increases another 5 pips to 40 ...
I question because I think it can boost profit by reducing the difference between the T.S. and T.P. if the price remains in our favor.
Cheers :hi:
RMSSC
This is not possible as currently coded.

:xm: :rocket:
Author:  RMSSC [ Mon Nov 02, 2020 1:28 pm ]
Post subject:  Hopelessly confused by TDesk or Desky? Ask here.

SteveHopwood » Thu Oct 29, 2020 9:45 pm wrote:Somehow over time, I have changed some of the TS logic and introduced some faulty ones. This has infected pretty much everything I have coded since. I will upload a fix tomorrow.

In the meantime, go to viewtopic.php?p=171428#p171428 and read it and the following two posts if you want to do a quick DIY. 'tis easy to do.

:xm: :rocket:

Hi Steve,
The correction implemented by Fourxxxx seems to me that only corrects the error of the trailingstop in Ghostrider.mq4, but in TDesk Trading Partner EA, the same error occurs.
I tried to correct, but when compiling it gives error.
I think that the correction does not apply in the same way in TDesk Trading Partner EA, my programming knowledge is very basic.
Is there any correction for this error in TDesk Trading Partner EA?
Sorry for the inconvenience.
Cheers
RMSSC :hi:
Author:  SteveHopwood [ Mon Nov 02, 2020 8:39 pm ]
Post subject:  Hopelessly confused by TDesk or Desky? Ask here.

RMSSC » Mon Nov 02, 2020 1:28 pm wrote:
SteveHopwood » Thu Oct 29, 2020 9:45 pm wrote:Somehow over time, I have changed some of the TS logic and introduced some faulty ones. This has infected pretty much everything I have coded since. I will upload a fix tomorrow.

In the meantime, go to viewtopic.php?p=171428#p171428 and read it and the following two posts if you want to do a quick DIY. 'tis easy to do.

:xm: :rocket:

Hi Steve,
The correction implemented by Fourxxxx seems to me that only corrects the error of the trailingstop in Ghostrider.mq4, but in TDesk Trading Partner EA, the same error occurs.
I tried to correct, but when compiling it gives error.
I think that the correction does not apply in the same way in TDesk Trading Partner EA, my programming knowledge is very basic.
Is there any correction for this error in TDesk Trading Partner EA?
Sorry for the inconvenience.
Cheers
RMSSC :hi:
I forgot to add the fix to Desky. Done now.

:xm: :rocket:
Author:  RMSSC [ Wed Nov 04, 2020 9:31 am ]
Post subject:  Hopelessly confused by TDesk or Desky? Ask here.

SteveHopwood » Mon Nov 02, 2020 8:39 pm wrote:
RMSSC » Mon Nov 02, 2020 1:28 pm wrote:
SteveHopwood » Thu Oct 29, 2020 9:45 pm wrote:Somehow over time, I have changed some of the TS logic and introduced some faulty ones. This has infected pretty much everything I have coded since. I will upload a fix tomorrow.

In the meantime, go to viewtopic.php?p=171428#p171428 and read it and the following two posts if you want to do a quick DIY. 'tis easy to do.

:xm: :rocket:

Hi Steve,
The correction implemented by Fourxxxx seems to me that only corrects the error of the trailingstop in Ghostrider.mq4, but in TDesk Trading Partner EA, the same error occurs.
I tried to correct, but when compiling it gives error.
I think that the correction does not apply in the same way in TDesk Trading Partner EA, my programming knowledge is very basic.
Is there any correction for this error in TDesk Trading Partner EA?
Sorry for the inconvenience.
Cheers
RMSSC :hi:
I forgot to add the fix to Desky. Done now.

:xm: :rocket:

Hi Steve,
It seems to me that Trailing Stop is not working properly.
I have the demo with TP of 50 pips, without stop loss and Trailing Stop at 30 pips.
The previous version, although with errors, activated the TP at 30pips at some point.
If possible take a look
Follow the capture of Empty4
Cheers :hi:
Author:  Maximilian [ Wed Nov 04, 2020 5:29 pm ]
Post subject:  Hopelessly confused by TDesk or Desky? Ask here.

RMSSC » Wed Nov 04, 2020 9:31 am wrote:
SteveHopwood » Mon Nov 02, 2020 8:39 pm wrote:
RMSSC » Mon Nov 02, 2020 1:28 pm wrote:
SteveHopwood » Thu Oct 29, 2020 9:45 pm wrote:Somehow over time, I have changed some of the TS logic and introduced some faulty ones. This has infected pretty much everything I have coded since. I will upload a fix tomorrow.

In the meantime, go to viewtopic.php?p=171428#p171428 and read it and the following two posts if you want to do a quick DIY. 'tis easy to do.

:xm: :rocket:

Hi Steve,
The correction implemented by Fourxxxx seems to me that only corrects the error of the trailingstop in Ghostrider.mq4, but in TDesk Trading Partner EA, the same error occurs.
I tried to correct, but when compiling it gives error.
I think that the correction does not apply in the same way in TDesk Trading Partner EA, my programming knowledge is very basic.
Is there any correction for this error in TDesk Trading Partner EA?
Sorry for the inconvenience.
Cheers
RMSSC :hi:
I forgot to add the fix to Desky. Done now.

:xm: :rocket:

Hi Steve,
It seems to me that Trailing Stop is not working properly.
I have the demo with TP of 50 pips, without stop loss and Trailing Stop at 30 pips.
The previous version, although with errors, activated the TP at 30pips at some point.
If possible take a look
Follow the capture of Empty4
Cheers :hi:
These pieces of code are missing:
//Check that the market is sufficiently in profit to continue
if (Bid < OrderOpenPrice() + (trailStartsAtProfit / factor) )
return;
for buy orders
and this for sell:
//Check that the market is sufficiently in profit to continue
if (Bid > OrderOpenPrice() - (trailStartsAtProfit / factor) )
return;

also the extern trailStartsAtProfit has to be defined.
I don´t want to mess with Steves code, so this are just pointers, where to look.
Max
Author:  RMSSC [ Wed Nov 04, 2020 7:12 pm ]
Post subject:  Hopelessly confused by TDesk or Desky? Ask here.

Maximilian » Wed Nov 04, 2020 5:29 pm wrote:
RMSSC » Wed Nov 04, 2020 9:31 am wrote:
SteveHopwood » Mon Nov 02, 2020 8:39 pm wrote:
RMSSC » Mon Nov 02, 2020 1:28 pm wrote:
SteveHopwood » Thu Oct 29, 2020 9:45 pm wrote:Somehow over time, I have changed some of the TS logic and introduced some faulty ones. This has infected pretty much everything I have coded since. I will upload a fix tomorrow.

In the meantime, go to viewtopic.php?p=171428#p171428 and read it and the following two posts if you want to do a quick DIY. 'tis easy to do.

:xm: :rocket:

Hi Steve,
The correction implemented by Fourxxxx seems to me that only corrects the error of the trailingstop in Ghostrider.mq4, but in TDesk Trading Partner EA, the same error occurs.
I tried to correct, but when compiling it gives error.
I think that the correction does not apply in the same way in TDesk Trading Partner EA, my programming knowledge is very basic.
Is there any correction for this error in TDesk Trading Partner EA?
Sorry for the inconvenience.
Cheers
RMSSC :hi:
I forgot to add the fix to Desky. Done now.

:xm: :rocket:

Hi Steve,
It seems to me that Trailing Stop is not working properly.
I have the demo with TP of 50 pips, without stop loss and Trailing Stop at 30 pips.
The previous version, although with errors, activated the TP at 30pips at some point.
If possible take a look
Follow the capture of Empty4
Cheers :hi:
These pieces of code are missing:
//Check that the market is sufficiently in profit to continue
if (Bid < OrderOpenPrice() + (trailStartsAtProfit / factor) )
return;
for buy orders
and this for sell:
//Check that the market is sufficiently in profit to continue
if (Bid > OrderOpenPrice() - (trailStartsAtProfit / factor) )
return;

also the extern trailStartsAtProfit has to be defined.
I don´t want to mess with Steves code, so this are just pointers, where to look.
Max

Steve and Max,
Thanks for your help, however my programming knowledge is very limited, please can you tell me in which line should I insert these pieces of code?
Max you mention that "also the extern trailStartsAtProfit has to be defined.", Here already exceeds my capabilities.
I know the intention of the group is for us to learn for ourselves and I already learned a lot, but the coding is still too much sand for my truck :oops: , I need more experience, so I wonder if it would be possible to post all these increments here or Steve you can update Desky?
Cheers
RMSSC :hi:
All times are UTC Page 46 of 71