You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Yes, I looked through the examples, didn't help.
Example 1) Do as fractals does, no offset at all. How is that helpful? We would like an offset. Giving an example with no offset is useless.
Example 2) Use Period(). Defined as "Returns the amount of minutes determining the used period (chart timeframe)." How is that going to provide a vertical offset for an indicator?
Please try to understand the problem first.
You cannot. Arrows are placed by time and price not pixels, you can find the size of the window in pixels and the size of the window in price and scale the price to offset . . . but if the chart scale is adjusted manually or automatically as price changes you will have to re-adjust the offset to maintain the same pixel gap.
The built-in iFractals function does put the arrow at an offset from the high/low of a candle without manipulating the indicator price to create an offset. Is there no inherent method to replicate this in MQL4? Is the iFractals using a custom wingding perhaps? Like the typeset for the arrow is preadjusted? Supersript/subscript maybe?