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

Desky. TDesk's trading drone.
https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?t=5545
Page 43 of 50
Author:  SteveHopwood [ Wed Dec 16, 2020 7:56 pm ]
Post subject:  Desky. TDesk's trading drone.

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:
Author:  SteveHopwood [ Sun Jan 17, 2021 11:27 am ]
Post subject:  Desky. TDesk's trading drone.

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:
Author:  kaiserchen0811 [ Thu Mar 18, 2021 6:15 pm ]
Post subject:  Desky. TDesk's trading drone.

Excuse me, do you have this problem? thank you
20210317203928.png
Author:  SteveHopwood [ Thu Mar 18, 2021 7:35 pm ]
Post subject:  Desky. TDesk's trading drone.

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:
Author:  tomele [ Thu Mar 18, 2021 7:56 pm ]
Post subject:  Desky. TDesk's trading drone.

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.
Author:  kaiserchen0811 [ Thu Mar 18, 2021 8:53 pm ]
Post subject:  Desky. TDesk's trading drone.

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
Author:  SteveHopwood [ Thu Mar 18, 2021 10:01 pm ]
Post subject:  Desky. TDesk's trading drone.

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:
Author:  Weyk [ Wed Mar 24, 2021 12:14 am ]
Post subject:  Desky. TDesk's trading drone.

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
Author:  biobier [ Tue Apr 27, 2021 10:10 am ]
Post subject:  Desky. TDesk's trading drone.

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)
Author:  SteveHopwood [ Wed Apr 28, 2021 7:18 pm ]
Post subject:  Desky. TDesk's trading drone.

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

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