| stevehopwoodforex.com https://www.stevehopwoodforex.com/phpBB3/ Print view |
|
| Holy Graily Bob and his Ma, in a Hedge https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?t=4619 |
Page 2 of 4 |
| Author: | ForexFox [ Thu Mar 03, 2016 9:53 am ] |
| Post subject: | Holy Graily Bob and his Ma, in a Hedge |
Excuse me. I don't know it's normal or weird, just said something I have seen. When there's only one side like buy trades filled on chart. If high semafor happened, then EA will close all trades then replace new buy and sell grids. This situation is normal as EA should done. But if there are both buy and sell trades filled on chart. Then when high semafor happened, EA will closed all trades but exclude the opened sell trades. It will leave the sell trades still opened alone without replacing new buy and sell stop order grids. This situation is what I have seen in M15 chart on demo account. Could anyone tell me it's normal or not? Hope my question is not too dumb. Regards. |
|
| Author: | patmontes [ Fri Mar 04, 2016 1:31 am ] |
| Post subject: | Holy Graily Bob and his Ma, in a Hedge |
Hi Steve We need to put // as well on line 2110 here for this version? |
|
| Author: | SteveHopwood [ Fri Mar 04, 2016 11:10 am ] |
| Post subject: | Holy Graily Bob and his Ma, in a Hedge |
No, you don't. This is the code snippet: Code: Select all if (!BuyOpen) is saying, "Only execute the next line of code in this block if there are no market buys open. The "!" means "Is not true". A more easily understood code equivalent is: if (BuyOpen == false). If there are market buys, then the ea executes line 2 of this code, and aborts the snippet if there are market sells open. Line 3 is only reached if lines 1 & 2 both pass the test of there being no market trades. |
|
| Author: | patmontes [ Fri Mar 04, 2016 5:31 pm ] |
| Post subject: | Holy Graily Bob and his Ma, in a Hedge |
Ok thanks Steve! |
|
| Author: | SteveHopwood [ Sat Mar 05, 2016 1:00 pm ] |
| Post subject: | Holy Graily Bob and his Ma, in a Hedge |
Kevin wrote to me again last night with another bloop he found in the code. V 1d is in post 1. The change is tiny but ridiculously significant for those of us relying on semafor signal closures. To make the change yourselves, line 2117 - just one line different to its equivalent in HGB'nG. if (OldM1SemTime != iTime(Symbol(), TradingTimeFrame, 0)) becomes if (OldM1SemTime != iTime(Symbol(), PERIOD_M1, 0)) then replace TradingTimeFrame with PERIOD_M1 in line 2119 as well. PERIOD_M1 is a mql4 'constant' that holds the value 1. Try typing it out instead of copy/pasting and the editor will show you a list of PERIOD constants. |
|
| Author: | SteveHopwood [ Sat Mar 05, 2016 2:14 pm ] |
| Post subject: | Holy Graily Bob and his Ma, in a Hedge |
Very happy with the bot's progress this week. Floating is a UC hedged position. $5,000 starting balance, trading the biggies + GJ, 0.05 lot sizes. |
|
| Author: | patmontes [ Sun Mar 06, 2016 2:55 am ] |
| Post subject: | Holy Graily Bob and his Ma, in a Hedge |
thank you Steve!! |
|
| Author: | SteveHopwood [ Sun Mar 06, 2016 7:43 pm ] |
| Post subject: | Holy Graily Bob and his Ma, in a Hedge |
V 1e is in post 1, incorporating the relevant changes provided by Keving for HGB'nG. To make your own change, go to line 4550 and copy this over the top of the entire function: Code: Select all |
|
| Author: | patmontes [ Mon Mar 07, 2016 3:06 am ] |
| Post subject: | Holy Graily Bob and his Ma, in a Hedge |
I also applied this here Code: Select all |
|
| Author: | SteveHopwood [ Mon Mar 07, 2016 9:50 am ] |
| Post subject: | Holy Graily Bob and his Ma, in a Hedge |
Nice one Pat. Thanks. Fix applied to V 1f in post 1. To make your own fix, go to line 3198 and replace the two line snippet with: Code: Select all |
|
| All times are UTC | Page 2 of 4 |
|
Powered by phpBB® Forum Software © phpBB Limited |
|