| stevehopwoodforex.com https://www.stevehopwoodforex.com/phpBB3/ Print view |
|
| 10.7 trading helpers by Steve and others https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?t=3561 |
Page 9 of 9 |
| Author: | kwchau [ Tue Aug 26, 2014 12:09 pm ] |
| Post subject: | 10.7 trading helpers by Steve and others |
Hi Steve, It seems that the ExpertRemove() does not solve this rapid opening-closing of trades. I have had these rapid opening and closing of trades with CADJPY today. It fired about 80 trades before I manually removed the EA. In normal circumstances, the EA should remove itself after an open position is closed. Something must be holding it back from removing itself. Here below is the codes of the EA remove section: //Find open trades. CountOpenTrades(); //Safety feature. Sometimes an unexpected concatenation of inputs choice and logic error can cause rapid opening-closing of trades. Detect a closed trade and check that is was not a rogue. if (OldOpenTrades != OpenTrades && OpenTrades == 0) { //EA auto-removal code ExpertRemove(); }//if (OldOpenTrades != OpenTrades) OldOpenTrades = OpenTrades; //Reset various bools if (OpenTrades == 0) { }//if (OpenTrades > 0) These helper EA's are extremely useful to trade Bob's method. Could you kindly look into this to see whether this problem can be fixed ? |
|
| Author: | kwchau [ Tue Sep 09, 2014 2:15 am ] |
| Post subject: | 10.7 trading helpers by Steve and others |
Hi Steve, first of all I would like to thank you for sending me the codes to achieve the above Stoch reversal exit strategy. I have tested them and it works fine. The only problem is that I could not turn it off after I set the user input of UseStoch7ReverseForExit to "false". The only thing I have changed is to use Stoch7ExitTF instead of TradingTimeFrame. I did so because I use a different time frame for exit. Could you help to spot where is the problem ? Code: Select all |
|
| Author: | SteveHopwood [ Tue Sep 09, 2014 11:04 am ] |
| Post subject: | 10.7 trading helpers by Steve and others |
Can't see anything in the code. We are discovering that there is some strange platform behaviour over in the FB thread. I suggest that rather than change inputs via F7, make these changes instead by dragging a fresh instance onto the chart. |
|
| Author: | kwchau [ Sun Sep 14, 2014 2:38 pm ] |
| Post subject: | 10.7 trading helpers by Steve and others |
Hi Guys, I need some directions as to where to find some EA's or script (not sure they are EA or script) to trade based on price crossing one or multiple moving averages. I remembered that I have used this kind of EAs or scripts in the early 10.xx trading. Unfortunately I no longer have copies after my old PC has retired. I have tried to search the forum but to no avail after lengthy search. Appreciate any one can help me ! cheers, kwchau |
|
| Author: | KapguHaJI [ Sat Nov 15, 2014 7:22 am ] |
| Post subject: | 10.7 trading helpers by Steve and others |
Hello Steve and everyone. I looked into this and have to say, that though the moon was the wrong one, the problem still exists. It is not in the loop that examines the Sto7, but in the way stochastic itself behaves. When a new bar starts, the 7-bar range on which it is calculated shifts one bar to the right. This sometimes causes the line to jump over the threshold immediately. Then the ReadIndicatorValues() function detects a new M5 bar and decides to renew the "previous" value of Sto7. Both previous and current values appear to be the same, so no cross is detected. I think that changing this line Code: Select all Code: Select all Logically I'm not sure if the cross as a result of a change in parameters rather than price movement should really count. In extreme cases the line can jump from 10 straight to 90, which would cause a fast open/close and self-destruction. Some additional check may be required just in case. But it is a cross nevertheless. 1 or 2 profitable trades were not taken yesterday on my demo because of this. Cheers! |
|
| All times are UTC | Page 9 of 9 |
|
Powered by phpBB® Forum Software © phpBB Limited |
|