| stevehopwoodforex.com https://www.stevehopwoodforex.com/phpBB3/ Print view |
|
| Flying Slope auto-trading EA https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?t=680 |
Page 25 of 28 |
| Author: | SteveHopwood [ Sun Aug 12, 2012 3:39 pm ] |
| Post subject: | Re: Flying Slope auto-trading EA |
Nice one. Thanks. |
|
| Author: | SteveHopwood [ Sun Aug 12, 2012 3:55 pm ] |
| Post subject: | Re: Flying Slope auto-trading EA |
Another great spot, Paul. Thanks again. The conditional was completely wrong. I want to check that enough time has elapsed between the closing of one trade and the open of another, so the conditional should be: Code: Select all Rogue trade behaviour will only become apparent when a trade closes, so we are only concerned with the history of closed trades. The stacking function does not work, so there can only be one open trade at a time. We need to prevent it being sent at all if the previous one was a rogue. Thanks for your help, Paul. Much appreciated by us all, but especially me. Version 1k is in post 1 folks, with the appropriate fixes so far. Unless you want to play with strategy tester, you may as well hold on until later, in case anything else crops up. |
|
| Author: | pah [ Mon Aug 13, 2012 2:11 am ] |
| Post subject: | Re: Flying Slope auto-trading EA |
I'm still pretty sure you want to check OrderCloseTime() - OrderOpenTime(). The close will always occur later than the open and so, open - close will always return a negative value. Do you need a bath? I can't find the original but I think this should do what you want - note: I've not tested it in anger... Code: Select all |
|
| Author: | pah [ Mon Aug 13, 2012 4:10 am ] |
| Post subject: | Re: Flying Slope auto-trading EA |
I realize that but isn't that dealt with by the rogue trade routine? I was referring to the TooClose() function which I thought was trying to prevent opening another trade too soon after the last one (whether rogue or not), in which case, the last trade could still be open. However, if you can only have one open then this point is purely academic... Regards, Paul. |
|
| Author: | SteveHopwood [ Mon Aug 13, 2012 9:34 am ] |
| Post subject: | Re: Flying Slope auto-trading EA |
Nope. I need a firing brain-cell. Obviously you are correct - I was just being dim. In case any of you are wondering why Paul is right, the reason is that Crapql4 counts time forward from Jan 1st 1970, not backwards from now. If any of you have trades in your History tab, the latest version should have shut up shop immediately. Fix coming soon. Thanks Paul. |
|
| Author: | SteveHopwood [ Mon Aug 13, 2012 10:19 am ] |
| Post subject: | Re: Flying Slope auto-trading EA |
Version 1l is in post 1, incorporating Paul's improvements. Also, if suspended because of possible rogue trading, FS will continue to manage open trades. |
|
| Author: | jiaxingx [ Sat Aug 18, 2012 3:15 pm ] |
| Post subject: | Re: Flying Slope auto-trading EA |
I run version 1l on demo for one week, but no trade happen,anyone have trade? |
|
| Author: | fxshadow [ Sat Aug 18, 2012 3:23 pm ] |
| Post subject: | Re: Flying Slope auto-trading EA |
Check your screen info and you will probably see that trade conditions were not met. |
|
| Author: | gaheitman [ Mon Aug 27, 2012 4:25 pm ] |
| Post subject: | Re: Flying Slope auto-trading EA |
I haven't been involved in the conversation about Rogue trades, but that's apparently not going to stop me from chiming in... It seems to me an important distinction for a trade to be rogue is that our code closed the trade. If we enter a trade and it is stopped out in a fast moving market it may look like a rogue trade when it was simply an unfortunate one. I think to really catch the rogue behavior we need to have our code check at the time of closure to see if we just opened the trade we are closing. Or, we could do something to track the number of high-frequency trading decisions we have made. For example, if we add two global variables... Code: Select all George |
|
| Author: | SWG123 [ Mon Aug 27, 2012 9:05 pm ] |
| Post subject: | Re: Flying Slope auto-trading EA |
Welcome back George |
|
| All times are UTC | Page 25 of 28 |
|
Powered by phpBB® Forum Software © phpBB Limited |
|