Hopelessly confused by TDesk or Desky? Ask here.

Post Reply
taipan
Trader
Posts: 355
Joined: Sat Feb 16, 2013 11:27 am

Hopelessly confused by TDesk or Desky? Ask here.

Post by taipan »

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
User avatar
RMSSC
Trader
Posts: 41
Joined: Wed Sep 25, 2019 7:09 pm

Hopelessly confused by TDesk or Desky? Ask here.

Post by RMSSC »

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
You do not have the required permissions to view the files attached to this post.
User avatar
SteveHopwood
Owner
Posts: 9904
Joined: Tue Nov 15, 2011 8:43 am
Location: Misterton - an insignificant village in England. Very pleasant to live in.

Hopelessly confused by TDesk or Desky? Ask here.

Post by SteveHopwood »

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:
Read the effing manual, ok?

Afterprime is the official SHF broker. Read about them at https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?p=175790#p175790.

I still suffer from OCCD. Good thing, really.

Anyone here feeling generous? My paypal account is always in the market for a tiny donation. pianodoodler@hotmail.com is the account.

To see The Weekly Roundup of stuff you guys might have missed Click here

My special thanks to Thomas (tomele) for all the incredible work he does here.
User avatar
RMSSC
Trader
Posts: 41
Joined: Wed Sep 25, 2019 7:09 pm

Hopelessly confused by TDesk or Desky? Ask here.

Post by RMSSC »

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
User avatar
SteveHopwood
Owner
Posts: 9904
Joined: Tue Nov 15, 2011 8:43 am
Location: Misterton - an insignificant village in England. Very pleasant to live in.

Hopelessly confused by TDesk or Desky? Ask here.

Post by SteveHopwood »

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:
Read the effing manual, ok?

Afterprime is the official SHF broker. Read about them at https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?p=175790#p175790.

I still suffer from OCCD. Good thing, really.

Anyone here feeling generous? My paypal account is always in the market for a tiny donation. pianodoodler@hotmail.com is the account.

To see The Weekly Roundup of stuff you guys might have missed Click here

My special thanks to Thomas (tomele) for all the incredible work he does here.
User avatar
RMSSC
Trader
Posts: 41
Joined: Wed Sep 25, 2019 7:09 pm

Hopelessly confused by TDesk or Desky? Ask here.

Post by RMSSC »

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:
User avatar
SteveHopwood
Owner
Posts: 9904
Joined: Tue Nov 15, 2011 8:43 am
Location: Misterton - an insignificant village in England. Very pleasant to live in.

Hopelessly confused by TDesk or Desky? Ask here.

Post by SteveHopwood »

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:
Read the effing manual, ok?

Afterprime is the official SHF broker. Read about them at https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?p=175790#p175790.

I still suffer from OCCD. Good thing, really.

Anyone here feeling generous? My paypal account is always in the market for a tiny donation. pianodoodler@hotmail.com is the account.

To see The Weekly Roundup of stuff you guys might have missed Click here

My special thanks to Thomas (tomele) for all the incredible work he does here.
User avatar
RMSSC
Trader
Posts: 41
Joined: Wed Sep 25, 2019 7:09 pm

Hopelessly confused by TDesk or Desky? Ask here.

Post by RMSSC »

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:
You do not have the required permissions to view the files attached to this post.
Maximilian
Trader
Posts: 150
Joined: Sat Sep 06, 2014 2:43 pm

Hopelessly confused by TDesk or Desky? Ask here.

Post by Maximilian »

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
User avatar
RMSSC
Trader
Posts: 41
Joined: Wed Sep 25, 2019 7:09 pm

Hopelessly confused by TDesk or Desky? Ask here.

Post by RMSSC »

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:
Post Reply

Return to “TDesk: A Thomas Special. The greatest trading tool ever.”