| stevehopwoodforex.com https://www.stevehopwoodforex.com/phpBB3/ Print view |
|
| 4 Ducks https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?t=3235 |
Page 5 of 7 |
| Author: | SteveHopwood [ Tue Nov 12, 2013 4:34 pm ] |
| Post subject: | Re: 4 Ducks |
I found a bloop - don't think it is causing the problems. Line 1337 should be: result = SendSingleTrade(Symbol(), type, StackTradeComment, SendLots, price, stop, take); not MainTradeComment as it does at the mo. |
|
| Author: | RxCape [ Tue Nov 12, 2013 4:37 pm ] |
| Post subject: | Re: 4 Ducks |
"Main trade" |
|
| Author: | SteveHopwood [ Tue Nov 12, 2013 4:45 pm ] |
| Post subject: | Re: 4 Ducks |
Thanks Rx. As we have just discovered, they will all be the main trade comment. Can you make the necessary edit in the code yourself? |
|
| Author: | RxCape [ Tue Nov 12, 2013 4:48 pm ] |
| Post subject: | Re: 4 Ducks |
Done. just got a few trades with "stack trade" in the comment field. I am closing all trades and restarting to have a clean sheet. |
|
| Author: | RxCape [ Tue Nov 12, 2013 5:01 pm ] |
| Post subject: | Re: 4 Ducks |
Version 1G with the StackTradeComment edit done has been running for about 15 minutes. Screen shot below..... Sorry, I wish that I could find the problem rather than just posting pictures. |
|
| Author: | SteveHopwood [ Tue Nov 12, 2013 5:09 pm ] |
| Post subject: | Re: 4 Ducks |
Hehe. At least we know where the problem is. |
|
| Author: | RxCape [ Tue Nov 12, 2013 5:11 pm ] |
| Post subject: | Re: 4 Ducks |
I am thankful you didn't type "WHO" the problem is.... |
|
| Author: | SteveHopwood [ Tue Nov 12, 2013 5:21 pm ] |
| Post subject: | Re: 4 Ducks |
Do me a favour please. I have to go out now and so cannot watch what is happening. Can you change line 4248 from: if (OpenTrades > 0) to if (OpenTrades > 1) because the code inside the snippet should not be called unless there is a basket open. |
|
| Author: | RxCape [ Tue Nov 12, 2013 5:32 pm ] |
| Post subject: | Re: 4 Ducks |
Done. |
|
| Author: | SteveHopwood [ Tue Nov 12, 2013 8:58 pm ] |
| Post subject: | Re: 4 Ducks |
V 1h is in post 1. I got the trade comments upside down earlier - confused 4 Ducks with BASA. I have replaced ReadIndicatorValues() after CountOpenTrades(). ReadIndicatorValues() places the Main Trade buy/sell lines on the chart and so needs to know if there are already open trades in place. I have deleted Dave's two candle close filter from CountOpenTrades)_ - left this in by mistake as it cannot apply to an M5 trade trigger. Look on the bright side guys. When 4 Ducks isn't throwing up unfindable bugs, it is superb. |
|
| All times are UTC | Page 5 of 7 |
|
Powered by phpBB® Forum Software © phpBB Limited |
|