| stevehopwoodforex.com https://www.stevehopwoodforex.com/phpBB3/ Print view |
|
| Desky. TDesk's trading drone. https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?t=5545 |
Page 35 of 50 |
| Author: | Ehrenmat [ Tue Nov 12, 2019 7:34 am ] |
| Post subject: | Desky. TDesk's trading drone. |
Hey Thomas! Thank you very much. At the moment, I am working with WSPB since it causes a relatively low DD itself. But I am still trying to find a way to optimize the overall take profit strategy dependent on the available funds. This is still a sketch from thoughts but some external input could help here: I'm thinking about a new sort of a trailing stop loss that counts in the behaviour of the overall equity over time. It came to my mind when I had some discussion about the Michaelis–Menten kinetics in terms of the underlying limited growth function. We all have seen this approximation curve virtually: The profits number rises to some maximum relatively fast, then hovers around some pivot and then starts to fall fast again. This is when eveybody thinks: "Man, why didn't I just take the profit... But it could have gone higher though... Who knows!?". Actually, I think we could know: In utilizing this "hovering around the presumed maximum equity over a limited time". That's my trailing stop loss theory that I'm working on. Practically, I want the trailing stop loss to climb over time as soon as the profit doesn't climb anymore. The last part can be depicted mathematically by comparing the profits ATR from one M1, M15 or H1 candle to the next. As soon as the the present profit ATR becomes smaller than the last one, the trailing stop loss climbs up by a given percentage of the distance between the highest profit and the actual SL. I will code this in the next coming days and implement it in Desky to try it out. But to date, I don't know if the parameter "profit ATR" is a good approximation for the "hovering araound a maximum" and I have problems with the approximation of the rising trailing stop loss by a given percentage. I would rather link the amount of the profit ATR with the percentage... But as I said, it's all just thoughts at the moment. Is this too far or too weird? What do you people think? I need your input Cheers, Mat :hi: |
|
| Author: | Wavegarrick [ Tue Nov 12, 2019 3:58 pm ] |
| Post subject: | Desky. TDesk's trading drone. |
Mat you are a Godsent I am following your posts with great interest. Nothing is too weird about your thoughts, especially knowing when to get out. It is probably the hardest part of forex. Basically, In my manual trading I look at daily pivots converging from my buy or sell position before I close the trade. If my daily pivot moves back down in my buy direction for example I will look at closing the trade. If an ATR becomes smaller it means we are going into range mode and it would be good practice to move your stops up. Hope we get more thoughts on this. Thanks Mat. Cheers Leon. |
|
| Author: | bodavid [ Tue Nov 12, 2019 11:32 pm ] |
| Post subject: | Desky. TDesk's trading drone. |
Mat, Thank you for your creative outside the box way of thinking! I think you are groundbreaking! Cheers, Ben |
|
| Author: | lamdog330 [ Fri Nov 15, 2019 7:43 pm ] |
| Post subject: | Desky. TDesk's trading drone. |
Hey guys. I just updated to the new Desky 3w today. TargetBasketCash ($0 to $500) BasketCashPercentageTarget is 0.0 It will show "All pair basket take profit = USD $20" no matter if I set from TargetBasketCash $0 to $500. However, if I change BasketCashPercentageTarget to from 0.0 to 2, then it will correctly show "All pair basket take profit = 100". **As usual, I clear all variables, restart, completely re-do my set files for Desky on new chart, delete mqlcache.dat, tried on two Terminals, FALSE all other settings under All Trades Belong in Basket including UseDynamicCashTP. I've read the manual and I don't see anything else that would influence this. |
|
| Author: | SteveHopwood [ Sun Nov 17, 2019 12:29 pm ] |
| Post subject: | Desky. TDesk's trading drone. |
V 3x is in post 1. There is a fix for a teensy bug; I had forgotten to apply the Friday global basket take profit (BasketFridayCashTargets etc) to the dynamic global basket TP. More usefully is a scaling out of a losing trade function suggested by one of our recent new members, ilworking. From the updated user guide and at the end of the Trade Exits inputs: Do not use this on a live account just yet. I could not fully test the code on demo on Friday, so there might be bugs to squish. The next step will be to work out how to scale back in if a market turns out to be in a temporary reversal. Coders will see commented out code that starts to deal with this. It is commented out because I realised that I had no idea how best to do this. I decided to let you folks play with scaling out and tell me how you want the scaling back in to work. Over to you. |
|
| Author: | SteveHopwood [ Mon Nov 18, 2019 5:04 pm ] |
| Post subject: | Desky. TDesk's trading drone. |
I have re-uploaded 3x to post 1. The scaling out code was not correct but appears to be working ok now. Copy this over the top of the existing bool scaleOutStopLoss(int ticket) function if you want to DIY: Code: Select all
|
|
| Author: | SteveHopwood [ Mon Nov 18, 2019 9:59 pm ] |
| Post subject: | Oops |
There is a line of code in Desky that tells him to wait for 10 seconds so that TDesk has time to initialise - you see that, "Waiting for TDesk to initialise" message when you first load him. You can imagine how annoying it is to wait for 10 seconds to see if the latest bit of code I have added is working, so I comment this line of code out when working on the bot. I forgot to uncomment it when I uploded the latest fix. Simply redownload Desky if this has caused the expired TDesk version error when you restart a platform that already has TDesk and Desky loaded. Alternatively, load up the source code and search for: Comment("Waiting for TDesk to initialise....."); If the line of code underneath is greyed out and reads: //Sleep(10000); then remove the "//" so that it becomes: Sleep(10000); |
|
| Author: | SteveHopwood [ Mon Nov 18, 2019 10:21 pm ] |
| Post subject: | Food for thought |
Hey folks, here is something for you to think about. Look at this chart: Ignore that this is an M5 chart containing HGI. Ignore a lot of the yellow text apart from the spread right at the bottom. This is the demo that I am testing the scaling out stop loss. There is a buy and a sell trade taken out withing seconds of each other. Deaksy has closed out 50% of the (so far) unsuccessful sell. I took the pic during rollover, when the normal GP GJ spread of < 1 pip has widened to just over 33 pips. The dotted red line is a sell trade stop loss. The solid red line is the Ask. You can see how close this is to triggering the stop loss and closing the trade at a stonking loss. In the event: rollover passed; the spread returned to normal; the trade survived, just. It was a close run thingy though. So here is my question. Is there a demand for functionality that removes stop loss and take profit prices from open orders during x minutes before rollover, and then replaces them once the storm has passed? Responses from experienced traders please. I am not interested in uninformed speculation. |
|
| Author: | tomele [ Mon Nov 18, 2019 10:25 pm ] |
| Post subject: | Desky. TDesk's trading drone. |
Hi Steve. Definitely yes. Otherwise the brokers have us where they can play with us. Cheers |
|
| Author: | SteveHopwood [ Mon Nov 18, 2019 11:14 pm ] |
| Post subject: | Desky. TDesk's trading drone. |
No need for further response folks. What Thomas wants is what he gets. Besides, he provided the rollover code to start with. 'twill be done. |
|
| All times are UTC | Page 35 of 50 |
|
Powered by phpBB® Forum Software © phpBB Limited |
|