• Home
  • Forums
  • Trades
  • News
  • Calendar
  • Market
  • Brokers
  • Login
  • Join
  • User/Email: Password:
  • 7:30am
Menu
  • Forums
  • Trades
  • News
  • Calendar
  • Market
  • Brokers
  • Login
  • Join
  • 7:30am
Sister Sites
  • Metals Mine
  • Energy EXCH
  • Crypto Craft

Options

Bookmark Thread

First Page First Unread Last Page Last Post

Print Thread

Similar Threads

What are Higher High, Higher Low, Lower High and Lower Low? 10 replies

Help, MT5 Bands Indicator Conversion 0 replies

can someone please modify this indicator for 5 decimals 0 replies

can someone please modify this indicator for 5 decimals 0 replies

Meta Trader And EUR/USD Decimals??? 6 replies

  • Platform Tech
  • /
  • Reply to Thread
  • Subscribe
  • 2
Attachments: Higher High/Higher Low indicator conversion from 4 to 5 decimals. Help anyone?
Exit Attachments

Higher High/Higher Low indicator conversion from 4 to 5 decimals. Help anyone?

  • Post #1
  • Quote
  • First Post: Mar 3, 2011 11:09pm Mar 3, 2011 11:09pm
  •  adsanders
  • | Joined May 2007 | Status: Member | 137 Posts
I found this Higher High Higher Low indicator that needs to be converted from the older 4 decimal to be able to be used on 5 decimal charts. Can anyone fix this for me and repost? I don't think it would take much but I am no programmer. I thank you in advance.
Attached File
File Type: mq4 ForexProfits.mq4   13 KB | 681 downloads
  • Post #2
  • Quote
  • Mar 7, 2011 2:23am Mar 7, 2011 2:23am
  •  hanover
  • Joined Sep 2006 | Status: ... | 8,081 Posts
Quoting adsanders
Disliked
I found this Higher High Higher Low indicator that needs to be converted from the older 4 decimal to be able to be used on 5 decimal charts. Can anyone fix this for me and repost? I don't think it would take much but I am no programmer. I thank you in advance.
Ignored
It doesn't surprise me that nobody's been able to solve this one for you. I looked at the code for about 30 mins, and couldn't figure out what the indicator was attempting to do, let alone how it does it.

Please try the attached. I've added the following code, which I think should do the trick. I attached my changed version to a NZDUSD,D1 chart, and values in the ensuing alert seemed sensible enough. But without knowing what the indicator is trying to achieve, I can't say whether or not the plotted symbols and the alerts are now working exactly as they should.
Inserted Code
// -------- added this code to hopefully also accommodate 5/3 decimal pricing --------
   if (symbolDigits == 3 || symbolDigits == 5)   {
     pips2         *= 10;
     pips50        *= 10;
     stopLossPips  *= 10;
     minProfitPips *= 10;
   }  
// -----------------------------------------------------------------------------------

The following line of code occurs twice:
Inserted Code
         profitTarget = NormalizeDouble(entryPoint,symbolDigits - 2);   //   ????? ---- this statement uses symbolDigits and might need modification

It looks like he's trying to reduce the profit target by chopping off the rightmost 2 decimals, and rounding the result. What this achieves, or why it needs doing, I have no idea. The existing code should achieve the same goal no matter how many decimals are in the price, but I've no way of knowing whether it remains appropriate for 5/3 digit pricing.

If I've failed, and nobody else here wishes to take up the challenge, perhaps you could try contacting the original programmer, Greg Spinner at [email protected]

Fingers crossed for you,
David
Attached File
File Type: mq4 ForexProfits.mq4   13 KB | 828 downloads
 
 
  • Post #3
  • Quote
  • Last Post: Mar 7, 2011 5:14pm Mar 7, 2011 5:14pm
  •  adsanders
  • | Joined May 2007 | Status: Member | 137 Posts
Thanks a bunch! I will try it out. I think what the indicator was suppose to achieve was show the TP and SL on the chart along with an indicator arrow pointing out the HH or HL. I believe the TP had an option to round up to the next big number (ending in either 00 or 50) instead of a set number. I have an older Forex.com chart that this indicator still worked on because it was still 4 decimals and it looks like that was what it was doing.
 
 
  • Platform Tech
  • /
  • Higher High/Higher Low indicator conversion from 4 to 5 decimals. Help anyone?
  • Reply to Thread
0 traders viewing now
Top of Page
Forex Factory Blog Updated: Alerting All Members
  • Facebook
  • Twitter
About FF
  • Mission
  • Products
  • User Guide
  • Media Kit
  • Blog
  • Contact
FF Products
  • Forums
  • Trades
  • Calendar
  • News
  • Market
  • Brokers
  • Trade Explorer
FF Website
  • Homepage
  • Search
  • Members
  • Report a Bug
Follow FF
  • Facebook
  • Twitter

FF Sister Sites:

  • Metals Mine
  • Energy EXCH
  • Crypto Craft

Forex Factory® is a brand of Fair Economy, Inc.

Terms of Service / ©2022