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

Desky. TDesk's trading drone.
https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?t=5545
Page 48 of 50
Author:  WorldsEnd [ Tue Aug 29, 2023 7:26 pm ]
Post subject:  Re: Desky. TDesk's trading drone.

Thx gents,
good to know. Even though it makes it a bit harder to troubleshoot this issue :? Does anybody have a good idea what could be the reason or how to handle it? I am kind of puzzled.
Author:  pree876 [ Sat Dec 09, 2023 2:53 pm ]
Post subject:  Re: Desky. TDesk's trading drone.

Changing the broker time and local time from army time to normal time in the TDesk Trading Partner EA.mq4

Find this

Code: Select all

screenMessage = "";
   //screenMessage = StringConcatenate(screenMessage,gap + NL);
   //SM(NL);
   
   SM(""+NL);
   SM("Broker time = "+TimeToStr(TimeCurrent(),TIME_DATE|TIME_SECONDS)+": Local time = "+TimeToStr(TimeLocal(),TIME_DATE|TIME_SECONDS)+NL);
   SM(version + NL);
   
   SM(NL);

Replace it with this

Code: Select all

screenMessage = "";
//screenMessage = StringConcatenate(screenMessage, gap + NL);
//SM(NL);

datetime currentTime = TimeCurrent();
datetime localTime = TimeLocal(); // Use TimeLocal directly

int brokerYear = TimeYear(currentTime);
int brokerMonth = TimeMonth(currentTime);
int brokerDay = TimeDay(currentTime);
int brokerHour = TimeHour(currentTime);
int brokerMinute = TimeMinute(currentTime);
int brokerSecond = TimeSeconds(currentTime);

int localYear = TimeYear(localTime);
int localMonth = TimeMonth(localTime);
int localDay = TimeDay(localTime);
int localHour = TimeHour(localTime);
int localMinute = TimeMinute(localTime);
int localSecond = TimeSeconds(localTime);

string brokerTime = StringFormat("Broker time = %04d-%02d-%02d %02d:%02d:%02d %s", brokerYear, brokerMonth, brokerDay, brokerHour % 12, brokerMinute, brokerSecond, brokerHour >= 12 ? "PM" : "AM");
string localTimeString = StringFormat("Local time = %04d-%02d-%02d %02d:%02d:%02d %s", localYear, localMonth, localDay, localHour % 12, localMinute, localSecond, localHour >= 12 ? "PM" : "AM");

SM(""+NL);
SM(brokerTime + ": " + localTimeString + NL);
SM(version + NL);

SM(NL);
Author:  CoRi [ Fri Jan 12, 2024 1:59 am ]
Post subject:  Individual basket trading

Hi everybody,
the 29th of June Wallywonka reported an issue regarding the single pair basket, which prevented orders to open.
Has there been any new development?
Saludos
Author:  SteveHopwood [ Sun Jan 14, 2024 3:11 pm ]
Post subject:  Re: Individual basket trading

CoRi wrote: Fri Jan 12, 2024 1:59 am Hi everybody,
the 29th of June Wallywonka reported an issue regarding the single pair basket, which prevented orders to open.
Has there been any new development?
Saludos
This prompted me to take another look. I still cannot see what is causing this. :arrrg:

:xm: :rocket:
Author:  Fabster76 [ Fri Feb 23, 2024 2:59 pm ]
Post subject:  Re: Individual basket trading

SteveHopwood wrote: Sun Jan 14, 2024 3:11 pm
CoRi wrote: Fri Jan 12, 2024 1:59 am Hi everybody,
the 29th of June Wallywonka reported an issue regarding the single pair basket, which prevented orders to open.
Has there been any new development?
Saludos
This prompted me to take another look. I still cannot see what is causing this. :arrrg:

:xm: :rocket:
hi Steve,

hope all is well!
apologies for being a pain. Would you have any updates on this please?
thanks a million
Author:  SteveHopwood [ Sat Feb 24, 2024 3:15 pm ]
Post subject:  Re: Individual basket trading

Fabster76 wrote: Fri Feb 23, 2024 2:59 pm
SteveHopwood wrote: Sun Jan 14, 2024 3:11 pm
CoRi wrote: Fri Jan 12, 2024 1:59 am Hi everybody,
the 29th of June Wallywonka reported an issue regarding the single pair basket, which prevented orders to open.
Has there been any new development?
Saludos
This prompted me to take another look. I still cannot see what is causing this. :arrrg:

:xm: :rocket:
hi Steve,

hope all is well!
apologies for being a pain. Would you have any updates on this please?
thanks a million
None at all. TreatIndividualPairsAsBasket is used 3 times:
  • In the chart feedback display.
    When calling the function that calculates the basket TP.
    When calling the function that examines the basket for possible closure.
The input is not referenced in any of the order sending decisions so I do not see how it can stop trading. The problem must have a different cause but I cannot find it.

:xm: :rocket:
Author:  SteveHopwood [ Sat Feb 24, 2024 3:19 pm ]
Post subject:  Re: Individual basket trading

SteveHopwood wrote: Sat Feb 24, 2024 3:15 pm
Fabster76 wrote: Fri Feb 23, 2024 2:59 pm
SteveHopwood wrote: Sun Jan 14, 2024 3:11 pm
CoRi wrote: Fri Jan 12, 2024 1:59 am Hi everybody,
the 29th of June Wallywonka reported an issue regarding the single pair basket, which prevented orders to open.
Has there been any new development?
Saludos
This prompted me to take another look. I still cannot see what is causing this. :arrrg:

:xm: :rocket:
hi Steve,

hope all is well!
apologies for being a pain. Would you have any updates on this please?
thanks a million
None at all. TreatIndividualPairsAsBasket is used 3 times:
  • In the chart feedback display.
  • When calling the function that calculates the basket TP.
  • When calling the function that examines the basket for possible closure.
The input is not referenced in any of the order sending decisions so I do not see how it can stop trading. The problem must have a different cause but I cannot find it.

:xm: :rocket:
Author:  SteveHopwood [ Sat Feb 24, 2024 3:20 pm ]
Post subject:  Re: Individual basket trading

SteveHopwood wrote: Sat Feb 24, 2024 3:19 pm
SteveHopwood wrote: Sat Feb 24, 2024 3:15 pm
Fabster76 wrote: Fri Feb 23, 2024 2:59 pm
SteveHopwood wrote: Sun Jan 14, 2024 3:11 pm
CoRi wrote: Fri Jan 12, 2024 1:59 am Hi everybody,
the 29th of June Wallywonka reported an issue regarding the single pair basket, which prevented orders to open.
Has there been any new development?
Saludos
This prompted me to take another look. I still cannot see what is causing this. :arrrg:

:xm: :rocket:
hi Steve,

hope all is well!
apologies for being a pain. Would you have any updates on this please?
thanks a million
None at all. TreatIndividualPairsAsBasket is used 3 times:
  • In the chart feedback display.
  • When calling the function that calculates the basket TP.
  • When calling the function that examines the basket for possible closure.
The input is not referenced in any of the order sending decisions so I do not see how it can stop trading. The problem must have a different cause but I cannot find it.

:xm: :rocket:
Author:  CoRi [ Fri Mar 01, 2024 8:00 pm ]
Post subject:  Individual basket trading

Steve,
I saved some older versions of Desky and tried some for Individual Basket Trading. Version 1m is still working fine.
Version q and following are not working. The big difference between those 2 versions is that in-between of the 2 you started with "Richard Specials". Maybe this information helps.
Saludos
Author:  SteveHopwood [ Fri Mar 01, 2024 8:58 pm ]
Post subject:  Re: Individual basket trading

CoRi wrote: Fri Mar 01, 2024 8:00 pm Steve,
I saved some older versions of Desky and tried some for Individual Basket Trading. Version 1m is still working fine.
Version q and following are not working. The big difference between those 2 versions is that in-between of the 2 you started with "Richard Specials". Maybe this information helps.
Saludos
Thanks. It gives me something to look into.

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