| stevehopwoodforex.com https://www.stevehopwoodforex.com/phpBB3/ Print view |
|
| Desky. TDesk's trading drone. https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?t=5545 |
Page 14 of 50 |
| Author: | SteveHopwood [ Tue Nov 27, 2018 7:01 pm ] |
| Post subject: | This is driving me nuts |
I occasionally get an Array Out of Range error, thrown up by this line of code: if (TimeCurrent() >= TimeToStartTrading[pairIndex]) with TimeToStartTrading[pairIndex]being the culprit. Thingy is, none of the other arrays do this. Do a search for TimeToStartTrading to see where it is declared, resized etc. You can see that I am resizing it at ArraySize(TDeskSymbols) + 10. Can any of you code slingers see anything wrong? |
|
| Author: | SteveHopwood [ Tue Nov 27, 2018 9:06 pm ] |
| Post subject: | Desky. TDesk's trading drone. |
Folks, my limited brain capacity has just given up. It is exam week and I am seriously pulled out. Re c1borg's pending trade thingy, I know where the problems lie and how to correct them and hope to do so on Friday. I just tried but the two glasses of wine with my dinner have rendered coding an not-good thingy to try to do. Re hedging, those of you who had hedge trades rapidly opening and closing are still on your own. I received this earlier from Leon: I know where to look - just haven't the mental capacity to look right now. I will solve this also with my next update. |
|
| Author: | SteveHopwood [ Wed Nov 28, 2018 5:23 am ] |
| Post subject: | Desky. TDesk's trading drone. |
V 2g is in post 1, in response to this PM from Simon: I shut down and restarted the crapform and hey presto - instant array out of range error. 2g appears to have fixed this. DIYers, insert this at the top of OnInit(): Code: Select all |
|
| Author: | SteveHopwood [ Wed Nov 28, 2018 7:32 am ] |
| Post subject: | Desky. TDesk's trading drone. |
V 2h is in post 1, with two more fixes. Leon sent me this pm last night: DIYers, do a search for, "//We need to know the the position is hedged to prevent order closure further down" and look down three lines. The first conditional is, "if (!BetterOrderSelect(cc, SELECT_BY_POS, MODE_TRADES))". This checks that the trade has not been closed. There are no further checks, so all open trades are examined and once a hedge is discovered then a variable is set to tell Desky that there is a hedge in place, so he cannot add hedges to other pairs. Add these two conditionals: Code: Select all Code: Select all Code: Select all Not a DIYer yet? Try it - you cannot do any harm. Park a copy of your working version somewhere safe so you can return to it if you muck up. If all else fails, then redownload from post 1. Make the changes and hit the F7 key to recompile the code into machine code; no errors appearing mean you have got it right. It is quite satisfying. |
|
| Author: | c1borg [ Wed Nov 28, 2018 7:49 am ] |
| Post subject: | Desky. TDesk's trading drone. |
Many thanks for the fix Steve :hi: |
|
| Author: | Wavegarrick [ Wed Nov 28, 2018 12:30 pm ] |
| Post subject: | Desky. TDesk's trading drone. |
Hi Steve, Thanks for this. I purposely had a set running with quick turnaround signals to test the hedge feature. 3 hedge trades opened on opposite signals and one hedge trade closed with a signal back in the direction of the original trade. From this, as far as I can see all looking good Cheers Leon |
|
| Author: | SteveHopwood [ Wed Nov 28, 2018 4:18 pm ] |
| Post subject: | Desky. TDesk's trading drone. |
|
|
| Author: | c1borg [ Thu Nov 29, 2018 5:03 pm ] |
| Post subject: | Desky. TDesk's trading drone. |
Just worked out I was using the lots per dollup wrongly with a setting of 1000/dollup and 0.01 lot size you get 0.01 from 0 to 2000 and it will change to 0.02 for anything over 2000 equity. I mistakenly thought anything over 1000 would add the extra 0.01 As the manual says.... ▪Example of use, choosing the equity: •equity = $2133.56 •LotPerDollopOfCash = 0.01. •SizeOfDollop = $1,000. •Calculated lot size is 0.02. |
|
| Author: | SteveHopwood [ Mon Dec 03, 2018 2:36 pm ] |
| Post subject: | Desky. TDesk's trading drone. |
Version 2i is in post 1. Peter asked me to add ATR breakeven to mptm, so I have added it here. Details at http://www.stevehopwoodforex.com/phpBB3 ... 59#p165159. You can use the first half of the DIY. For the second part, copy this over the top of the existing function: Code: Select all |
|
| Author: | PeterUK [ Tue Dec 04, 2018 9:19 pm ] |
| Post subject: | Desky... has huge potential... :) |
I see huge potential for Desky... working alongside with TDesk I have just converted a manual trading plan that I'm developing in to Desky so that I can automate the process of paper trading, allowing it to forward test with minimal negative emotional/psychological impact. Desky does what it's programmed to do... pulling the right trigger(S) when it sees a signal or two from TDesk, after evaluating a selection of custom indicators... i.e. SuperSlope, HGI and etc... Possibilities are endless, wherever your imagination takes you Great work team! Thomas, Steve, et al... |
|
| All times are UTC | Page 14 of 50 |
|
Powered by phpBB® Forum Software © phpBB Limited |
|