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 56 of 71
Author:  SteveHopwood [ Wed May 05, 2021 1:42 pm ]
Post subject:  Hopelessly confused by TDesk or Desky? Ask here.

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:
Author:  telaso [ Wed Jun 02, 2021 11:33 am ]
Post subject:  Hopelessly confused by TDesk or Desky? Ask here.

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!
Author:  SteveHopwood [ Thu Jun 03, 2021 3:56 pm ]
Post subject:  Hopelessly confused by TDesk or Desky? Ask here.

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:
Author:  lemur6666 [ Thu Jun 03, 2021 4:45 pm ]
Post subject:  Hopelessly confused by TDesk or Desky? Ask here.

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
Author:  Alp4991 [ Tue Jun 08, 2021 12:44 pm ]
Post subject:  Hopelessly confused by TDesk or Desky? Ask here.

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.
Author:  SteveHopwood [ Tue Jun 08, 2021 1:15 pm ]
Post subject:  Hopelessly confused by TDesk or Desky? Ask here.

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:
Author:  trader689 [ Sun Jun 13, 2021 7:32 pm ]
Post subject:  Hopelessly confused by TDesk or Desky? Ask here.

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
Author:  opita [ Sun Jun 13, 2021 8:02 pm ]
Post subject:  Hopelessly confused by TDesk or Desky? Ask here.

Download the latest HGI 16.09 from the
viewtopic.php?f=88&t=3964&hilit=hgi#p105044
Author:  trader689 [ Sun Jun 13, 2021 8:05 pm ]
Post subject:  Hopelessly confused by TDesk or Desky? Ask here.

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


Author:  opita [ Sun Jun 13, 2021 8:10 pm ]
Post subject:  Hopelessly confused by TDesk or Desky? Ask here.

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.
All times are UTC Page 56 of 71