Menu
Brokers
MT4 Forex Brokers
MT5 Forex brokers
PayPal Brokers
Skrill Brokers
Oil Trading Brokers
Gold Trading Brokers
Web Browser Platform
Brokers with CFD Trading
ECN Brokers
Bitcoin FX Brokers
PAMM Forex Brokers
With Cent Accounts
With High Leverage
Cryptocurrency Brokers
Forums
All threads
New threads
New posts
Trending
Search forums
What's new
New threads
New posts
Latest activity
Log in
Register
Search
Search titles only
By:
Search titles only
By:
Menu
Install the app
Install
Reply to thread
Forums
Trading Platforms
MetaTrader Indicators
Market Profile
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Message
[QUOTE="Enivid, post: 123306, member: 1"] The upward shift should be there because MetaTrader does not support one-point height rectangles. So, two-point height has to be used, which results in that extra pip above the highest high. The lower shift is due to the pip rounding as your USD/JPY currency pair uses 3 decimal places instead of 2 in the quotes. The indicator uses pips instead of points to lessen the number of generated rectangles. You can change the indicator to work with points instead. Change the line 90 from this: [code=mql4]onetick = NormalizeDouble(1 / (MathPow(10, DigitsM)), DigitsM);[/code] to this: [code=mql4]onetick = Point;[/code] And then replace lines 86-88 from this: [code=mql4]if (Digits == 5) DigitsM = 4; else if (Digits == 3) DigitsM = 2; else DigitsM = Digits;[/code] to this: [code=mql4]DigitsM = Digits;[/code] However, the indicator will become very slow after that because it will have to work with ten times more graphical objects. [/QUOTE]
Insert quotes…
Verification
Post reply
Top
Bottom
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.
Accept
Learn more…