| stevehopwoodforex.com https://www.stevehopwoodforex.com/phpBB3/ Print view |
|
| Need help debugging an EA https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?t=3794 |
Page 1 of 1 |
| Author: | DoctorGremlin [ Thu Aug 14, 2014 4:16 pm ] |
| Post subject: | Need help debugging an EA |
Hi Guys, i need some help debugging an EA which doesn't do what it should do Don't hit me, i'm a noob creating EAs and tried creating this one on a Website (you will see this in the code). What it should do: if the last bar was bullish, open a sell on the open of the new candle, with an configurable TP and SL set to the high of the last bar. There should be only one trade per candle, exactly on the open of the new candle. For a bearish candle it should be the exact opposite. if the EA is started in the middle of a candle, it should open the first trade on the new candle. Problem: it opens more than one trade per candle, and if the EA is activated in the middle of a candle, it instantly opens a trade. I hope someone could help me with that. Thanks, Doc |
|
| Author: | Lowphat [ Thu Aug 14, 2014 8:07 pm ] |
| Post subject: | Need help debugging an EA |
untested |
|
| Author: | DoctorGremlin [ Fri Aug 15, 2014 6:09 am ] |
| Post subject: | Need help debugging an EA |
Looks very good, thank you |
|
| Author: | DoctorGremlin [ Fri Aug 22, 2014 9:36 am ] |
| Post subject: | Need help debugging an EA |
Lowphat, could you insert the code so that the opened trade is closed on candle close? |
|
| Author: | Lowphat [ Fri Aug 22, 2014 3:44 pm ] |
| Post subject: | Need help debugging an EA |
untested |
|
| All times are UTC | Page 1 of 1 |
|
Powered by phpBB® Forum Software © phpBB Limited |
|