Fourxxxx » Tue Nov 24, 2020 1:54 am wrote:I seem to be missing something trying to get MPTM to close trades using HGI Blue Wavy lines.
I have the latest HGI Indicators and library files (fresh download) installed and HGI is displaying on the charts. MPTM will close trades if I set take profit in Pips but I would like it to close trades when the Blue Wavy lines are displayed. I have tried everything but I am running out of hair to pull out very fast.
You will be
sort of glad to know that the fault was in the coding, not in your attempts to use mptm. Fixed in 1c in post 1.
Coders and most DIYers will understand the bloop immediately. Go to the bool UsingHgiToCloseTrade(int ticket) function and scroll down to:
//The HGI library functionality was added by tomele. Many thanks Thomas.
These two lines need editing:
signal = getHGISignal(
Symbol(), HgiTimeFrameC, shift);//This library function looks for arrows.
slope = getHGISlope (
Symbol(), HgiTimeFrameC, shift);//This library function looks for wavy lines.
Change the highlighted words to these:
signal = getHGISignal(
OrderSymbol(), HgiTimeFrameC, shift);//This library function looks for arrows.
slope = getHGISlope (
OrderSymbol(), HgiTimeFrameC, shift);//This library function looks for wavy lines.
FYI folks, in looking for the fault I noticed how similar the hgi closure input names were to the hgi hedging input names, so I changed them. It should not affect the running of mptm if you leave yours as they are.
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.
[email protected] 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.