| stevehopwoodforex.com https://www.stevehopwoodforex.com/phpBB3/ Print view |
|
| Once a Month EA https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?t=3649 |
Page 3 of 18 |
| Author: | excalibre30 [ Fri Jun 06, 2014 4:09 am ] |
| Post subject: | Once a Month EA |
Haha. Everyone's anticipating and really itching to get this started too.
|
|
| Author: | zader [ Fri Jun 06, 2014 10:07 am ] |
| Post subject: | Once a Month EA |
Spare a thought for me, I'm not starting mine till day 17 |
|
| Author: | excalibre30 [ Fri Jun 06, 2014 10:14 am ] |
| Post subject: | Once a Month EA |
Yeah. I did not notice that. There is a difference of 400 pips though but the DD looks good if that happens. |
|
| Author: | Elixe [ Tue Jun 10, 2014 7:23 pm ] |
| Post subject: | Once a Month EA |
Steve, I might have found a bloop in the EA : My parameters are : Code: Select all So, what I found out : In GetTodayTradingDayNumber, you are counting TradingDay based on TimeCurrent(), that is the server time, for GP it is GMT + 3. In onTick function, you are defining the hour : Code: Select all Lower in the onTick, we have this : Code: Select all Haven't tested yet a solution as I just found that out, but just switching to an exact hour check will probably solve this. There's probably the same issue in the closing code. |
|
| Author: | SteveHopwood [ Tue Jun 10, 2014 7:36 pm ] |
| Post subject: | Once a Month EA |
I know. Mixing TimeCurrent() and TimeLocal() doesn't work here - I found out the same way you did. I will add the fixes soon. |
|
| Author: | fxozgirl [ Tue Jun 10, 2014 8:58 pm ] |
| Post subject: | Once a Month EA |
My 3 demo's fired up yesterday: Demo 1 & 2, Day 7 - 8.00am start time, which is 1 hour into the new trading day here. Demo 3 - 7.00am start time (1 hour earlier at day open) Demo 1 & 3 results almost identical Demo 2 - OAM set all TP at the same price as the open price...just wondering if that would be caused by changing the TakeProfitMultiplierPercent to 0.0? I did have MPBM set up to manage the trades as a basket. I re-set the EA to open on Day 8 so will see if the same thing occurs again. |
|
| Author: | OldTrader [ Tue Jun 10, 2014 9:07 pm ] |
| Post subject: | Once a Month EA |
mine did the same thing, and i had my tp set to 50%. so dunno |
|
| Author: | Elixe [ Tue Jun 10, 2014 9:37 pm ] |
| Post subject: | Once a Month EA |
Glancing at the code, I would say yes, as the take profit is computed by adding the average TP multiplied by TakeProfitMultiplierPercent to the order open price. One fast fix would be to edit lines 916 & 922 this way but wait for Steve's opinion on this : Code: Select all |
|
| Author: | SteveHopwood [ Tue Jun 10, 2014 9:42 pm ] |
| Post subject: | Once a Month EA |
If you set a multiplier value to zero, then it multiplies the figure it is multiplying by zero, giving a result of zero. So, you add zero to the order open price and your tp is the same as the order open price. I am surprised your platform did not whinge at you and refuse to play ball. |
|
| Author: | OldTrader [ Tue Jun 10, 2014 9:44 pm ] |
| Post subject: | Once a Month EA |
thanks yeah, apparently i just didn't notice that it was 0. i just changed chart tf and back, and i get the av tp now. |
|
| All times are UTC | Page 3 of 18 |
|
Powered by phpBB® Forum Software © phpBB Limited |
|