Hopelessly confused by TDesk or Desky? Ask here.

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

freakyg415 » Wed May 05, 2021 12:54 pm wrote:Many thanks Steve,

:youknow: I gave her a go and it worked like a charm. The error in the Experts tab reports that there is an "invalid lot amount for the send order function" and the alert below shows that the lot size is 0.0; that's when it hit me. I went under the hood to verify and I saw that the lot size is based off of the "Hard lot sizing" setting. Unless I am off in my logic.

Code: Select all

extern string  hls="-- 'Hard' lot sizing --";
extern double  Lot=0.1;

Code: Select all

   double lotSize = Lot;
The goal is to get the risk percent setting into the mix so that desky will take the desired risk percent, ATR period and multiplier, conduct the math to come up with the proper lot size and stop level, and enter the trade apropriately. In the manual it says that "You can use this feature (Differential Lot Sizing) in conjunction with account size lot sizing." I interpreted that to include the risk percentage I guess. Regardless I know this is possible but it looks like this is a bit more than a bolt change out under the hood , this baby needs a new set of headers to get where I'm trying to go. I'm a bit lost on how to calculate my desired effect but I'm in this for the long haul.

Stay green gents.


V/r
Osito
I am not sure I understand you, so sorry if this does not help.

Use the normalizeLots() function whenever you calculate a lot size. For example, sendBuyGrid() includes this code block:

Code: Select all

   //Incremental lot sizing
   if (UseIncrementalLotSizing)
      if (!closeEnough(highestLotSoFar, 0))
      {
         lot = normalizeLots(symbol, highestLotSoFar + LotIncrement);
         highestLotSoFar = lot;   
      }//if (!closeEnough(highestLotSoFar, 0))
You can include a check that the calculated lot is within the range accepted by your broker, although normalizeLots() includes this check. For example, the double getDifferentialLotSize(string symbol) function has these two blocks:

Code: Select all

   //Min/max checks
   if ( lotSize < MarketInfo( symbol, MODE_MINLOT ) ) 
   {
      lotSize = MarketInfo( symbol, MODE_MINLOT );
   }//if ( lotSize < MarketInfo( symbol, MODE_MINLOT ) )
   
   if ( lotSize > MarketInfo( symbol, MODE_MAXLOT ) ) 
   {
      lotSize = MarketInfo( symbol, MODE_MAXLOT );
   }//if ( lotSize > MarketInfo( symbol, MODE_MAXLOT ) ) 


: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.
telaso
Trader
Posts: 17
Joined: Mon Jan 25, 2021 8:32 am

Hopelessly confused by TDesk or Desky? Ask here.

Post by telaso »

Desky settings.png
PendingTradeInseadMarket.png
Hello,
I've looked through Desky settings and did not understand why did it opened a pending trade GBPNZD instead of market trade. It is not the first time when I set SendImmediateMarketTrade=true and SendPendingTrades=false and sometimes, inexplicable, Desky open pending trades.
I've attached Desky set file and 2 screenshots.
Thanks in advance for replies!
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 »

telaso » Wed Jun 02, 2021 11:33 am wrote: Hello,
I've looked through Desky settings and did not understand why did it opened a pending trade GBPNZD instead of market trade. It is not the first time when I set SendImmediateMarketTrade=true and SendPendingTrades=false and sometimes, inexplicable, Desky open pending trades.
I've attached Desky set file and 2 screenshots.
Thanks in advance for replies!
I had a look at the code - I always do when something comes up. I cannot see anything wrong, so I have no idea why this happened.

: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.
lemur6666
Trader
Posts: 69
Joined: Mon Nov 27, 2017 8:29 am

Hopelessly confused by TDesk or Desky? Ask here.

Post by lemur6666 »

UseGridTrading= true might get you i trouble via line 7205 of Desky code:

Code: Select all

if (UseGridTrading && (SendImmediateMarketTrade || SendPendingTrades))
as a result of above being true a limit/stop order is being created.
In your preset file UseGridTrading= false, which is what you want, but why don't you double check the preset you are using for Desky has UseGridTrading=false
Alp4991
Posts: 2
Joined: Wed Apr 28, 2021 7:17 pm

Hopelessly confused by TDesk or Desky? Ask here.

Post by Alp4991 »

Hi all
when I try and compile TDesk Trading Partner EA from mq4 to ex4 format I get some errors and I am not a coder so I'm not really sure how to fix them, if someone could be so kind to please share a ex4 format of the EA I would highly appreciate it.
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 »

Alp4991 » Tue Jun 08, 2021 12:44 pm wrote:Hi all
when I try and compile TDesk Trading Partner EA from mq4 to ex4 format I get some errors and I am not a coder so I'm not really sure how to fix them, if someone could be so kind to please share a ex4 format of the EA I would highly appreciate it.
Here you are but I doubt it will run. Read "PROBLEMS LOADING DESKY" at viewtopic.php?p=164249#p164249 and make sure you have downloaded the TDeskSignals.mqh file into your /MQL4/Include folder.

Post a screenshot of the errors your attempts to compile are generating.

:xm: :rocket:
You do not have the required permissions to view the files attached to this post.
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.
trader689
Trader
Posts: 674
Joined: Thu Nov 17, 2011 12:53 am

Hopelessly confused by TDesk or Desky? Ask here.

Post by trader689 »

hey

I've loaded r1ch4rd's latest Sharky templates, everything indicators / libraries / files wise is bang up to date and refreshed on my terminal, but I'm nontheless getting these messages in my experts tab:

hgi expired messages.JPG
And on the main Tdesk screen, I've noticed that the HGI columns are not showing any activity:
hgi not showing.JPG

Any advice would be greatly appreciated,

trader
You do not have the required permissions to view the files attached to this post.
User avatar
opita
Trader
Posts: 67
Joined: Tue Mar 20, 2012 10:10 am

Hopelessly confused by TDesk or Desky? Ask here.

Post by opita »

Download the latest HGI 16.09 from the
viewtopic.php?f=88&t=3964&hilit=hgi#p105044
Cheer,

:youknow:

----
Opita
trader689
Trader
Posts: 674
Joined: Thu Nov 17, 2011 12:53 am

Hopelessly confused by TDesk or Desky? Ask here.

Post by trader689 »

hey opita

thanks, but like I said in my post all my indicators, including HGI, are bang up to date (just to make sure, I literally downloaded them again fresh and tried, before posting my error messages)

trader


User avatar
opita
Trader
Posts: 67
Joined: Tue Mar 20, 2012 10:10 am

Hopelessly confused by TDesk or Desky? Ask here.

Post by opita »

trader689 » Sun Jun 13, 2021 1:05 pm wrote:hey opita

thanks, but like I said in my post all my indicators, including HGI, are bang up to date (just to make sure, I literally downloaded them again fresh and tried, before posting my error messages)

trader


Maybe try switching to XAUUSD and load the template again. It is working for me.
You do not have the required permissions to view the files attached to this post.
Cheer,

:youknow:

----
Opita
Post Reply

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