| stevehopwoodforex.com https://www.stevehopwoodforex.com/phpBB3/ Print view |
|
| Old and defunct Holy Graily Bob https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?t=3966 |
Page 26 of 129 |
| Author: | 4xtn [ Mon Dec 08, 2014 1:25 am ] |
| Post subject: | Holy Graily Bob |
How about pending orders, but with user defined distance from PA? |
|
| Author: | BobbyT [ Mon Dec 08, 2014 2:52 am ] |
| Post subject: | Holy Graily Bob |
I haven't looked at the code at all (so not sure if this is incorporated already) but maybe try using Code: Select all This way, broker specific stop levels can be autodetected and be dynamic within the code. It is also a one solution fits all brokers type situation once implemented. I have a snippet at home that I used some time ago to ensure trades were beyond the stop level, but I'm at work at the moment. If your interested I can find it later though I'm sure you've either already thought of this or could conjure your own snippet anyway. Cheers, BobbyT |
|
| Author: | oliverjp [ Mon Dec 08, 2014 7:56 am ] |
| Post subject: | Holy Graily Bob |
Hi I've had problems like this in the past when coding a news trader that tried to slip in orders just before news time when the prices and spreads went crazy and pending trades wouldn't take. I made my order placement code cycle through increasing stop loss values until it managed to place the order or it reached my maximum. I found half a pip extra each time and a maximum of 5 extra pips (so max 10 iterations) worked OK for that application. Best regards Jeff
|
|
| Author: | oliverjp [ Mon Dec 08, 2014 8:10 am ] |
| Post subject: | Holy Graily Bob |
Here you go, found an early variant of the code I wrote that did it. Sorry, can't find the later more polished version: Code: Select all
|
|
| Author: | BritShrtHair [ Mon Dec 08, 2014 8:34 am ] |
| Post subject: | Holy Graily Bob |
in HGB, when replacing line 1878 (void LookForTradingOpportunities()) Code: Select all Code: Select all Thats seems to be (one of the?) culprits. |
|
| Author: | SteveHopwood [ Mon Dec 08, 2014 9:37 am ] |
| Post subject: | Holy Graily Bob |
V 1l is in post 1. Thanks guys. You put me on the right track. You know how these problems are usually copy/paste/fail-to-edit bloops? This time they were copy-but-didn't-quite-copy-enough/paste/edit bloops. HGB is taking the pending trades now. |
|
| Author: | SteveHopwood [ Mon Dec 08, 2014 9:55 am ] |
| Post subject: | Holy Graily Bob |
Don't bother downloading 1L folks. Still isn't right. |
|
| Author: | BobbyT [ Mon Dec 08, 2014 10:07 am ] |
| Post subject: | Holy Graily Bob |
Lucky I decided to have dinner before upating |
|
| Author: | SteveHopwood [ Mon Dec 08, 2014 10:33 am ] |
| Post subject: | Holy Graily Bob |
V 1m is in post 1. We appear to be fully functional now, but take nothing for granted. |
|
| Author: | Lee [ Mon Dec 08, 2014 11:03 am ] |
| Post subject: | Holy Graily Bob |
Steve, Thanks for your brilliant work. The highlighted line I believe should read 'RAD trade multiple positions' instead of 'Trend'? Just to avoid confusion. Lee |
|
| All times are UTC | Page 26 of 129 |
|
Powered by phpBB® Forum Software © phpBB Limited |
|