spotdespot wrote:Steve - found a slight hiccup (undocumented feature

) today I think. I had to restart my Empty4 terminal I was testing on and one pair immediately opened another grid even though there were open trades from the previous grid (the previous grid lines were deleted). So somewhere it failed to identify the open trades.
It is impossible for G to send the initial trades when there are trades open already - you have seen the code; there is no way around it.
What if there is a delay in retrieving open trades on platform startup? We know that an EA will send multiple trades when there is a delay in a newly-opened trade being returned to our Empty4 history - hence our use of the industrial-strength code supplied by Matt to overcome this problem.
If there is a a delay in retrieving open trades on platform startup, then an EA cannot know that there are open trades on the account, and so will trade. Ok, so any half-way intelligent programmer would have programmed TradingDisabled until the current position is returned by the crim's server, the the programmers of Empty4 are idiots.
Anybody here know any more about all this?
I
never close down my real money platform without disabling Experts first. The platform has not crashed on me for a long time, but were it to do so I would prevent it from loading EA's at restart by renaming them temporarily so the platform could not find the EA it is looking for. A faff, but I trust Empty4 as much as I would trust a croc with lunch on its mind.
Latest update in post 1 in light of this. I am trading G on my real money account, on EU for the small spread and at minimum lot size. For those of us similarly testing G, I have added this code snippet to int init():
Code: Select all
if (!IsDemo() )
{
int delay = 10;
while (delay > 0)
{
Sleep(1000);
delay--;
Comment(" " + "Starting in " + delay + " seconds");
}//while (delay > 0)
}//if (!IsDemo() )
Add this anywhere to int init(). As you can see, it has no effect on demo accounts, but will stop a real money account from starting up the robot for 10 seconds to give the open position time to show up.

Read the effing manual, ok?
Afterprime is the official SHF broker. Read about them at https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?p=175790#p175790.
I still suffer from OCCD. Good thing, really.
Anyone here feeling generous? My paypal account is always in the market for a tiny donation. pianodoodler@hotmail.com is the account.
To see The Weekly Roundup of stuff you guys might have missed
Click here
My special thanks to Thomas (tomele) for all the incredible work he does here.