| stevehopwoodforex.com https://www.stevehopwoodforex.com/phpBB3/ Print view |
|
| GU H1 high/low entry system? https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?t=4702 |
Page 4 of 9 |
| Author: | themaxx [ Mon May 16, 2016 3:38 pm ] |
| Post subject: | GU H1 high/low entry system? |
Thanks Steve, much appreciated! |
|
| Author: | sudhindragk [ Mon May 16, 2016 6:03 pm ] |
| Post subject: | GU H1 high/low entry system? |
I will send my 25 to Steve as a token of appreciation for all his hard work. |
|
| Author: | SteveHopwood [ Mon May 16, 2016 6:10 pm ] |
| Post subject: | GU H1 high/low entry system? |
That is most generous of you. Thank you. |
|
| Author: | SteveHopwood [ Mon May 16, 2016 6:44 pm ] |
| Post subject: | GU H1 high/low entry system? |
Please read my "Edit 16th May 2016" section in post 1. |
|
| Author: | themaxx [ Tue May 17, 2016 7:22 am ] |
| Post subject: | GU H1 high/low entry system? |
Hi Steve Thanks for taking the time to code this, I really appreciate it. I threw the EA up on GBPUSD and USDCAD when I got home from work, and it took a few trades all according to plan. This morning however, it entered the standard 8am long/short on GBP, but on CAD it only entered the long, missing the short. I got a few pop up errors - my journal is attached in text format. My immediate thought was that the market had moved too much between 8:00:00 and 8:00:01, but looking at the chart that was not the case. Any idea why this happened? I was thinking, would you be able to change the EA so that if a pending is too close to trigger, it just enters a market order? Understand if it's too late to add this in as it was not part of the original spec. Thanks |
|
| Author: | SteveHopwood [ Tue May 17, 2016 11:31 am ] |
| Post subject: | GU H1 high/low entry system? |
The most likely cause is the market being too close to the pending price, so I have added code that tells the bot to send an immediate market trade if we get an error 130. Try this and see how it goes. Looking at the code threw up a few other thingies that needed refining if people are going to try hedging/offsetting. V 1b of both versions are in post 2. The easiest way to make your own changes is to copy the whole of LookForTradingOpportunities() over the top of the function, which starts at line 1606: Code: Select all |
|
| Author: | themaxx [ Tue May 17, 2016 11:35 am ] |
| Post subject: | GU H1 high/low entry system? |
You're a super star Steve! ![]() |
|
| Author: | themaxx [ Fri May 20, 2016 6:49 am ] |
| Post subject: | GU H1 high/low entry system? |
Can someone (not Steve as he's probably too busy) help me modify the code of this EA? I've given it a bash as I'm eager to learn, but it's not working... I've realised that contrary to my spec, 9/10 I'll close my pendings at the end of the day. And the 1/10 isn't that important to the system - it's more important not to have random pending orders at different levels on the chart. I would like to automate it so after trading finishes (10pm) all pendings are deleted, as I plan to run this EA on as many pairs as possible for diversification purposes. The first thing I did was modify the existing function "ShouldPendingTradesBeMoved()" to a new function that indiscriminately deletes all pendings: Code: Select all Code: Select all Code: Select all Thanks! |
|
| Author: | pips400 [ Fri May 20, 2016 7:19 am ] |
| Post subject: | GU H1 high/low entry system? |
Hi themaxx I haven't looked under the hood of Steve's code, but typically you want to set up a loop to go through all the trades something like this Code: Select all |
|
| Author: | themaxx [ Fri May 20, 2016 9:05 am ] |
| Post subject: | GU H1 high/low entry system? |
Thanks! Does the way I call the call the function work? |
|
| All times are UTC | Page 4 of 9 |
|
Powered by phpBB® Forum Software © phpBB Limited |
|