| stevehopwoodforex.com https://www.stevehopwoodforex.com/phpBB3/ Print view |
|
| Ghostrider https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?t=5942 |
Page 5 of 12 |
| Author: | Fourxxxx [ Wed Oct 28, 2020 11:47 am ] |
| Post subject: | Ghostrider |
Hope I am not out of line posting this here. I think that the trailing stop is not working as expected. These 2 lines adding or subtracting from the current StopLoss rather than the Bid. 3683 Code: Select all Code: Select all Code: Select all |
|
| Author: | SteveHopwood [ Wed Oct 28, 2020 11:58 am ] |
| Post subject: | Ghostrider |
Thanks. I could not see how the code would work properly and meant to sort it out, then became involved in another project and forgot. I will make the change and update later. DIYers, just copy the function over the top of the existing one. |
|
| Author: | SteveHopwood [ Wed Oct 28, 2020 3:17 pm ] |
| Post subject: | Ghostrider |
V 1g is in post 1, with FourXXXX's fix for the faulty trailing stop. I must have been on drugs when I coded my version. Easy DIY fix. Do a search for: NewStop = NormalizeDouble(sl + (TrailingStopPips / factor), Digits); Replace it with: //Thanks to FourXXXX for sorting out this next line of code NewStop = NormalizeDouble(Bid - (TrailingStopPips / factor), Digits); //FourXXX Then do a search for: NewStop = NormalizeDouble(sl - (TrailingStopPips / factor), Digits); Replace it with: //Thanks to FourXXXX for sorting out this next line of code NewStop = NormalizeDouble(Bid + (TrailingStopPips / factor), Digits); //FourXXXX |
|
| Author: | SteveHopwood [ Thu Oct 29, 2020 4:31 pm ] |
| Post subject: | Ghostrider |
V 1his in post 1. I am working with c1borg on a more accurate representation of Ghostrider's trading method. Referring back to this version I noticed that I had not included the StopLossDistancePips value into the stop loss calculation. Easy DIY for those of you who prefer this: Do a search for: stop = CalculateStopLoss(OP_BUY, rectangleLow[arrayIndex]); Replace it with: stop = CalculateStopLoss(OP_BUY, rectangleLow[arrayIndex] - (StopLossDistance / factor) ); Then do a search for: stop = CalculateStopLoss(OP_SELL, rectangleHigh[arrayIndex]); Replace it with: stop = CalculateStopLoss(OP_SELL, rectangleHigh[arrayIndex] + (StopLossDistance / factor) ); Brief update on progress. The H4 demo is a small loser. The H1 demo is in the green by $240 - 0.2 lots on a $20,000 deposit. There is an H1 demo with all the latest stuff thrown at it, balance in loss but equity in profit thanks to a massive AU sell that is currently at +125. Mind, I had forgotten to set the jumping stop so it probably would not have gotten so far. That last one should maybe give us pause for thought. Maybe we should be allowing the trades a longer run? There are not many of them, after all. |
|
| Author: | wallywonka [ Thu Oct 29, 2020 10:19 pm ] |
| Post subject: | Ghostrider |
Agree on this Steve, had a demo run last week and it had no stop loss settings and it did quite well.. it would have stopped out a few times. I do like the stop loss just outside the trading zone though as some trades do continue through the support/resistance zones so it is good to get out of those trades. |
|
| Author: | Pipstubborn [ Fri Oct 30, 2020 2:32 pm ] |
| Post subject: | Ghostrider |
Hi Wally, Not sure what I'm doing wrong Just got one trade in the whole week, AUDUSD (in profit). Would you mind to share your PRESET FILE with the new version V1 h? Thanks in advance, Pipstubborn |
|
| Author: | SteveHopwood [ Fri Oct 30, 2020 4:47 pm ] |
| Post subject: | Ghostrider |
This one is not a trading tart. If the ducks don't line up, they don't line up. |
|
| Author: | SteveHopwood [ Sun Nov 01, 2020 11:22 am ] |
| Post subject: | Ghostrider |
V 1i is in post 1, responding to a request from Wally that I include the option to send stop orders following a trade trigger. The inputs are immediately under the 'General Inputs' section and should be obvious but details in the user guide if not. A DIY job should not be too difficult. Go to the space in between the support/resistance variables and the trading time frame inputs and insert the inputs for the trade types: Code: Select all Add this to the list distanceFromMarket = DistanceFromMarketPips; Do a search for: type=OP_BUY; Replace the existing code block with: Code: Select all Replace that block of code with: Code: Select all |
|
| Author: | wallywonka [ Sun Nov 01, 2020 11:33 am ] |
| Post subject: | Ghostrider |
Cheers for adding this in Steve, it would have saved me from a couple of bad trades last week! |
|
| Author: | SteveHopwood [ Sun Nov 01, 2020 12:02 pm ] |
| Post subject: | Ghostrider |
You are most welcome Wally. You are becoming a most helpful member of SHF. |
|
| All times are UTC | Page 5 of 12 |
|
Powered by phpBB® Forum Software © phpBB Limited |
|