Desky. TDesk's trading drone.

Post Reply
User avatar
SteveHopwood
Owner
Posts: 9754
Joined: Tue Nov 15, 2011 8:43 am
Location: Misterton - an insignificant village in England. Very pleasant to live in.

Desky. TDesk's trading drone.

Post by SteveHopwood »

V 1l is in post 1, in response to this post viewtopic.php?p=171864#p171864

Read the post before downloading the update - it will not be relevant to many of you.

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

Desky. TDesk's trading drone.

Post by SteveHopwood »

SteveHopwood » Sun Jan 17, 2021 11:18 am wrote:
V 1m is in post 1.

Alex (biobier) emailed yesterday with a bug spot that stops the trailing and jumping stop functions from working except on certain pairs.

It is an easy DIY:
- Go to: void jumpingStopLoss(int ticket).
- Scroll down a few lines to double sl = OrderStopLoss();
- Insert this code underneath:

Code: Select all

//This next line fixes a bug spotted by biobier. Thanks Alex.
  double point = SymbolInfoDouble(OrderSymbol(),SYMBOL_POINT);
- Go to: void trailingStopLoss(int ticket) (next function down)
- Repeat the insertion.
- Go back to the top of: void jumpingStopLoss(int ticket)
- Do a search and replace, replacing "Point" with "point". There are two instances in each function.


Thanks Alex. :clap: :clap: :clap: :clap: :clap: :clap: :clap:

: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. [email protected] 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.
kaiserchen0811
Posts: 5
Joined: Wed Apr 29, 2020 5:43 am

Desky. TDesk's trading drone.

Post by kaiserchen0811 »

Excuse me, do you have this problem? thank you
20210317203928.png
You do not have the required permissions to view the files attached to this post.
User avatar
SteveHopwood
Owner
Posts: 9754
Joined: Tue Nov 15, 2011 8:43 am
Location: Misterton - an insignificant village in England. Very pleasant to live in.

Desky. TDesk's trading drone.

Post by SteveHopwood »

kaiserchen0811 » Thu Mar 18, 2021 6:15 pm wrote:Excuse me, do you have this problem? thank you
Somewhere, somehow, Desky is calculating an order size the broker cannot accept. I have no idea how, where or why.

Keep your fingers crossed that this is an anomaly. I am.

: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. [email protected] 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
tomele
Administrator
Posts: 1166
Joined: Tue May 17, 2016 3:40 pm
Location: Germany, Forest of Odes, Defending the Limes

Desky. TDesk's trading drone.

Post by tomele »

As far as I know, possible reasons for Error 4107 are:

1. You are backtesting: Won't work anyway
2. Your account is FIFO: Set MustObeyFifo to true
3. Your broker is ECN: Set IsGlobalPrimeOrECNCriminal to true
4. Your broker is bollocks: Switch to Global Prime (you should anyway)

As Steve wrote, it is your personal anomaly. If we would have had it as a general problem on GP demo or live accounts, it would have been discussed and fixed long ago.
Happy pippin, Thomas :-BD

It ain't what you don't know that gets you into trouble.
It's what you know for sure that just ain't so.
(Mark Twain)

Keep the coder going: Donate
kaiserchen0811
Posts: 5
Joined: Wed Apr 29, 2020 5:43 am

Desky. TDesk's trading drone.

Post by kaiserchen0811 »

tomele » Thu Mar 18, 2021 7:56 pm wrote:As far as I know, possible reasons for Error 4107 are:

1. You are backtesting: Won't work anyway
2. Your account is FIFO: Set MustObeyFifo to true
3. Your broker is ECN: Set IsGlobalPrimeOrECNCriminal to true
4. Your broker is bollocks: Switch to Global Prime (you should anyway)

As Steve wrote, it is your personal anomaly. If we would have had it as a general problem on GP demo or live accounts, it would have been discussed and fixed long ago.

Changed Global Prime, the problem remains。
thank you
20210317203928.png
ea.set
You do not have the required permissions to view the files attached to this post.
User avatar
SteveHopwood
Owner
Posts: 9754
Joined: Tue Nov 15, 2011 8:43 am
Location: Misterton - an insignificant village in England. Very pleasant to live in.

Desky. TDesk's trading drone.

Post by SteveHopwood »

kaiserchen0811 » Thu Mar 18, 2021 8:53 pm wrote:
Changed Global Prime, the problem remains。
thank you

Still don't know and still don't care.

There comes a point when an unpaid coder of a monumental piece of coding says,"You know what?I have done the best i can. Piss off and play elsewhere if what my FREELY OFFERED AND MONUMENTALLY CODED OFFERING is not good enough for you.

And that is before we ask for your setfiles and discover that it is something moronic that you have been doing. And when we discover that you are a moron disclaim, "Moron"?

Now. I am not saying that there is nothing wrong in DEsky's code. I am telling you AGAIN that I cannot find it.

I will mention that you are the first person to bring this to our attention. Did you ever consider that you have buggered up a monumental piece of coding that nobody else has managed to bugger previously?

Or that you might merely be an idiot?

Shut up or I will ban you. One more idiotic post and you are done.

Coders, as usual sing out if you spot anything I have missed.

Moron, do not take comfort from that last para. You are always one imbecillic post away from a ban.

: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. [email protected] 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
Weyk
Trader
Posts: 42
Joined: Mon Apr 10, 2017 3:53 pm

Desky. TDesk's trading drone.

Post by Weyk »

kaiserchen0811 » 18 Mar 2021, 23:53 wrote:
tomele » Thu Mar 18, 2021 7:56 pm wrote:As far as I know, possible reasons for Error 4107 are:

1. You are backtesting: Won't work anyway
2. Your account is FIFO: Set MustObeyFifo to true
3. Your broker is ECN: Set IsGlobalPrimeOrECNCriminal to true
4. Your broker is bollocks: Switch to Global Prime (you should anyway)

As Steve wrote, it is your personal anomaly. If we would have had it as a general problem on GP demo or live accounts, it would have been discussed and fixed long ago.

Changed Global Prime, the problem remains。
thank you

Something weird going on here. Set file has SendImmediateMarketTrade = true. SendPendingTrades=false but grid trading is enabled. Do you need grid trading with 0 pips distance between trades? Type of grid is 1 and this means limit orders and you have problem with them. Try increasing pip distance between trades. Alternativly consider disabling grid trading and use sendpendingtrades. On the other hand you have atr enabled so it should be good. If it works then the problem maybe is in the way grid function works... Make sure you understand all the settings. Try different settings to pinpoint where is the problem. By posting just a pic when you didn't do much troubleshooting what answer did you expect on this forum? lol Don't be disappointed by the aswers you get here sometimes you get some verbal slaps but this is how it is here. :)


Cheers,
Weyk
If you put your mind onto something sooner or later it will come up with the solution.
biobier
Trader
Posts: 72
Joined: Mon Mar 18, 2019 7:24 am

Desky. TDesk's trading drone.

Post by biobier »

The UI info line when using BE with UseAtrBEis not correct as it showed still the pips setting.
My attempt for a fix:

Code: Select all

   if (UseBreakEven)
   {
      if (UseAtrBE)
         text = "Break even set to "+ DoubleToString(AtrMultiplierBE*100,0) + " ATR(" + IntegerToString(AtrPeriodBE) + ","+ IntegerToString(AtrShiftBE) + ") at " + EnumToString(AtrTimeFrameBE) + ".";
      else
         text = "Break even set to " + IntegerToString(BreakEvenTargetPips) + " pips. ";
      if (!UseAtrBE && BreakEvenTargetPips > 0)
         text = text + "Locking in " + IntegerToString(BreakEvenTargetProfit) + " pips profit at BE.";
      SM(text + NL);   
   }//if (UseBreakEven)
Also it would be good to have an option to select the ATR period when using ATR based SL TP:
After line

Code: Select all

extern SLTPStrategies SLTPCalcMode=ATRPercent;
insert:

Code: Select all

extern ENUM_TIMEFRAMES SLTPATRTF=PERIOD_D1; //SLTP ATR TF
Then search for ATRPercent and replace the PERIOD_D1 with SLTPATRTF.


Since we are on it Jumping Stop ATR based pips:
New inputs:

Code: Select all

extern string  atrj="-- ATR jumping stop loss --";
extern bool    UseAtrJS=false;
extern ENUM_TIMEFRAMES AtrTimeFrameJS=PERIOD_D1;
extern int     AtrPeriodJS=14;
extern int     AtrShiftJS=0;
extern double  AtrMultiplierJS=1;
After line:

Code: Select all

double JSWidth=jumpingStopPips/factor;//Thomas
Insert:

Code: Select all

   //ATR JS
   if (UseAtrJS)
   {
      double val = getAtr(OrderSymbol(), AtrTimeFrameJS, AtrPeriodJS, AtrShiftJS);
      JSWidth = (val * factor);
      JSWidth*= AtrMultiplierJS;
   }//if (UseAtrJS)
Must-reads for FOREX NOOBS as me:
Help for Newbies.
Information For Beginners
User avatar
SteveHopwood
Owner
Posts: 9754
Joined: Tue Nov 15, 2011 8:43 am
Location: Misterton - an insignificant village in England. Very pleasant to live in.

Desky. TDesk's trading drone.

Post by SteveHopwood »

V 1q is in post 1 folks. Please see the thread I am developing at viewtopic.php?p=172472#p172472 for details.

: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. [email protected] 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.
Post Reply

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