jptwardy wrote: Wed Aug 14, 2024 7:04 pm
OK - I'm almost ready to give up after a few days of knocking my head against the wall. I like to hgi indicator and would like to use it as an EA. So I download the EA, added the files to the include and library folders, changed options for autotrading, have all smiley faces but the EA will not place a trade. I am running it on a 1 min chart so I can see the results quickly. I get alerts that the program has given a buy/sell signal and the experts tab shows the buy/sell signals, but no trades are taken. Any help would be appreciated. Thanks
Screenshot (42).pngScreenshot (43).pngScreenshot (44).png
Good on you for trying.
In your third pic I see a green rad arrow on the chart yet the EA display says that there is no such arrow.
Bear in mind that HGI leaves an arrow on the chart even though the conditions that created it have disappeared. Change the time frame and then change back again and you will find that the arrow disappears.
Thingies happen ridiculously fast on the M1. I would cheerfully bet a tenner that this is what happens: HGB generates a signal; the EA calls up its HGI lib functions; the conditions that have generated the HGI signal have disappeared and so the EA cannot send a trade - no signal. I
guarantee that this is the case if EveryTickMode is false and the ea is only looking for a signal on the open of a new candle and is studying conditions at the close of the previous one.
Try losing your obsession with the M1 and try demoing umpteen charts on a higher time frame.
Also bear in mind that I do not allow members of SHF to post backtesting results because they are crap, I
do recommend CrapergyTester for testing code on individual pair ea's such as this one - I use it myself. There is nothing wrong in the code if CrapergyTester generates trades.
I do not promise that this will end your difficulties but another thingy to bear in mind is: the ea code you are using has worked for years. If the ea is showing generated signals yet not sending orders then something else is wrong. Time for some CrapergyTesting.
My question is not intended to be insulting or patronising, I promise. You haven't set the StopTrading input to 'false', have you?
One more thought, just in case. I have a section in my shell codes that prevents sending trades whilst I an developing a bot. Go to void LookForTradingOpportunities(), scroll down and see if you come across this snippet:
////////////////////////////////////////////////////////////////////////////////////////
//DELETE THIS
SendLong = false; SendShort = false;
////////////////////////////////////////////////////////////////////////////////////////
This prevents any trades being sent. It shouldn't be the case here but no harm in checking.
Good luck. I hope you solve your difficulties. Sing out with more detail if not.

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.