| stevehopwoodforex.com https://www.stevehopwoodforex.com/phpBB3/ Print view |
|
| Desky. TDesk's trading drone. https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?t=5545 |
Page 44 of 50 |
| Author: | c1borg [ Mon Nov 01, 2021 6:00 pm ] |
| Post subject: | Desky. TDesk's trading drone. |
Hey Steve, I cant find the function to add a missing SL TP in Desky any chance it can be added? |
|
| Author: | SteveHopwood [ Mon Nov 01, 2021 8:38 pm ] |
| Post subject: | Desky. TDesk's trading drone. |
Will do. Use MPTM as a substitute until I do. |
|
| Author: | c1borg [ Mon Nov 01, 2021 8:39 pm ] |
| Post subject: | Desky. TDesk's trading drone. |
Thanks will do. |
|
| Author: | SteveHopwood [ Tue Nov 02, 2021 5:02 pm ] |
| Post subject: | Desky. TDesk's trading drone. |
Done. Nev. V 1r in post 1. The two inputs are underneath the 'Trade exit' inputs. |
|
| Author: | c1borg [ Tue Nov 02, 2021 7:27 pm ] |
| Post subject: | Desky. TDesk's trading drone. |
Awesome thanks Steve |
|
| Author: | SteveHopwood [ Tue Nov 02, 2021 8:29 pm ] |
| Post subject: | Desky. TDesk's trading drone. |
You're welcome. I tested the code and it appears to be working correctly, but sing out if you spot anything wrong. I forgot to write earlier that Desky will insert a missing tpsl according to the parameters you set in the 'Trade exits' section. I only tested the fixed pips option. Look at the code in the insertMissing.... functions and you will see that they calculate the values by calling the calculateTakeProfit( and calculateStopLoss( functions, so the results should be the same as had you set your tpsl through Desky taking a trade when responding to a TDesk signal. |
|
| Author: | c1borg [ Wed Nov 03, 2021 2:48 pm ] |
| Post subject: | Desky. TDesk's trading drone. |
I am using the following settings for SLTP so didnt work, I did look at the code to try and add it myself but a bit beyond my basic coding skills. Update: Seems to add the SLTP for the first missing trade then fails on the next, very odd, nothing in the experts or journal tabs to give any clues? |
|
| Author: | SteveHopwood [ Wed Nov 03, 2021 6:00 pm ] |
| Post subject: | Desky. TDesk's trading drone. |
Basic bloop on my part. Do a search for: //Missing tpsl Delete the two blocks of code that follow with ctrl+x, then scroll up to: }//ffor (cc = OrdersTotal() - 1; cc >= 0; cc--) where the loop around the open orders closes, then replace the code blocks above the closure of the loop, with ctrl+v. I had put the code in the wrong place. I will have posted the fixed version in post 1 by the time you read this. |
|
| Author: | c1borg [ Thu Nov 04, 2021 7:39 am ] |
| Post subject: | Desky. TDesk's trading drone. |
Thanks will let you know if any problems :hi: |
|
| Author: | c1borg [ Wed Jan 05, 2022 3:23 pm ] |
| Post subject: | Desky. TDesk's trading drone. |
FYI The code Steve has changed here viewtopic.php?f=5&t=6037&p=173688#p173688 I noticed is also contained in Desky V1r, I have corrected the code in my version. |
|
| All times are UTC | Page 44 of 50 |
|
Powered by phpBB® Forum Software © phpBB Limited |
|