| stevehopwoodforex.com https://www.stevehopwoodforex.com/phpBB3/ Print view |
|
| Desky. TDesk's trading drone. https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?t=5545 |
Page 33 of 50 |
| Author: | Sojourner [ Tue Sep 24, 2019 4:43 pm ] |
| Post subject: | Desky. TDesk's trading drone. |
I might add to that PDF information on FIFO that FIFO (thanks to DODD-FRANK..bastards) now will not even allow a second order to be placed on an instrument if the first one has a TP or SL ! There is other stuff too: https://oanda.secure.force.com/AnswersS ... YifQ%3D%3D This make it tougher on us in the USA. Some EAs won't even work for us now and I'm not talking just hedge ones. I noticed that sometimes the 'close all' scripts won't work either because FIFO wants multiple trades on one instrument to be closed in the order that they were created. I've ended up having to close TDesk/Desky trades manually sometimes because nuke option flags a FIFO violation. Ugh. |
|
| Author: | SteveHopwood [ Tue Sep 24, 2019 4:58 pm ] |
| Post subject: | Desky. TDesk's trading drone. |
I have found one possible cause and have posted an attempted fix in post 1. To DIY, do a search for: fillTheGap(symbol); Insert this immediately above: if (!DeletePendingOrdersOnFlatSignal || signal != FLAT)//Either the user does not want pendings deleted on a flat signal, or the signal is not FLAT I have added some explanatory comments to the code block, which reads: Code: Select all |
|
| Author: | taipan [ Wed Sep 25, 2019 1:16 am ] |
| Post subject: | Desky. TDesk's trading drone. |
Thanks Steve for fixing this small errors. Appreciated very much. taipan |
|
| Author: | SteveHopwood [ Wed Sep 25, 2019 10:55 am ] |
| Post subject: | Desky. TDesk's trading drone. |
V 3u is in post 1. I do not fully understand mastercool's post here http://www.stevehopwoodforex.com/phpBB3 ... 56#p168756 but this sort of post always sends me to look at the code in case I have missed something. I have missed an entire function, so none of the Friday/Saturday close all inputs would have any effect. I have no idea if this is the cause of mastercool's problem, but it is better to have functions that I describe in the user guide actually available. DIYers and code checkers, a teensy bit of housekeeping first. Do a search and replace for FridaycloseAllHour, replacing it with FridayCloseAllHour. Repeat this process with SaturdaycloseAllHour. Copy this function wherever you want it to go. I always add new functions immediately above OnTick(), but that is just me: Code: Select all Copy this code block underneath: Code: Select all |
|
| Author: | SteveHopwood [ Wed Sep 25, 2019 11:35 am ] |
| Post subject: | Desky. TDesk's trading drone. |
Try the updated nuclear option script from post 1. This stores the ticket numbers of all the trades with the appropriate number in an array, and the attempts to close them in the order in which they were placed. The closure is a 2 pass process, closing the market orders first and then deleting stop/limit orders. Sing out if this does not work. Does your problem apply to the, "Close all trades this pair only script.mq4" script as well? |
|
| Author: | taipan [ Wed Sep 25, 2019 12:13 pm ] |
| Post subject: | Desky. TDesk's trading drone. |
Hi Steve, Now the problem resurfaced again few hours ago, same expert log occurred. Please investigage what causes these errors. Now even I turned off "DeletePendingOrdersOnFlatSignal", the Open and Delete events keep on coming. I had update Desky to the latest version v3u. I have now to turn off the following parameters to false: DeletePendingOrdersOnFlatSignal=true DeletePendingOrdersOnOppositeSignal=true DeletePendingOrdersOnEXITSignal=true then the errors stopped. taipan |
|
| Author: | SteveHopwood [ Wed Sep 25, 2019 12:33 pm ] |
| Post subject: | Desky. TDesk's trading drone. |
I haven't the faintest idea what is causing this. Could you post a setfile please, so I can see what all your inputs are. This might help me track down the fault. |
|
| Author: | taipan [ Wed Sep 25, 2019 12:56 pm ] |
| Post subject: | Desky. TDesk's trading drone. |
Here you go: |
|
| Author: | SteveHopwood [ Wed Sep 25, 2019 3:00 pm ] |
| Post subject: | Desky. TDesk's trading drone. |
I am thrashing around in the dark here. It is just like the ole days. I have added a bit more code, in hope rather than faith. Post 1 as usual. I have added some code to: void canWeSendTrades(string symbol, int pairIndex, int signal) Scroll down to: getBasics(symbol); Insert this just above: Code: Select all Edit to include an extra check: if (!DeletePendingOrdersOnFlatSignal || (signal != FLAT && signal != NONE)) No idea if it will work. |
|
| Author: | taipan [ Thu Sep 26, 2019 1:18 pm ] |
| Post subject: | Desky. TDesk's trading drone. |
Hi Steve, After upated with the latest Desky, the problems still happened but not that frequent anymore. I can live with that as long as the expert log does not occurred so freqent that will not causing the GP Demo got deleted. Thanks for the bug hunting. taipan |
|
| All times are UTC | Page 33 of 50 |
|
Powered by phpBB® Forum Software © phpBB Limited |
|