Lupo:
Hi to everybody,
I have written an indicator in MT5 which shows the last two highs/lows in comparing 3 bars to the left & one bar to the right. It works fine.
I want to do the same in MT4 fpr a friend, but I fail...and don'rt know why!?
It takes the wrong arrows, not the ones I choose - see screenshot.
There is no screenshot attached.
Hi to everybody,
I have written an indicator in MT5 which shows the last two highs/lows in comparing 3 bars to the left & one bar to the right. It works fine.
I want to do the same in MT4 fpr a friend, but I fail...and don'rt know why!?
It takes the wrong arrows, not the ones I choose - see screenshot.
Lupo:
Additionl question: can I do an offset like in MT5, so that the arrow is 20 pixel above/under the high/low? How?
No, but you can shift it by adding/subtracting from it's price coordinate.
Additionl question: can I do an offset like in MT5, so that the arrow is 20 pixel above/under the high/low? How?
Lupo:
Hi RaptorUK,
and thx for the quick reply...I've attached the missing screenshot...
You aren't setting the arrow style for buffer 1
SetIndexArrow( 0, 233 ); SetIndexArrow( 0, 234 ); // should this be for buffer 1 ?
I guess
SetIndexArrow(0,234);
should be
SetIndexArrow(1,234);
Regarding the shift, just do
ExtUpperBuffer[i]=High[i] + 20 * Point;or something like that.
Hi RaptorUK, hi enivid,
*hum*, what should I say?!?! Too many hours in front of the laptop!? Well, whatever - IT WORKS NOW!!! Thanks 2 U both! I guess I could have been searching for hours more before I would have seen that... :-(
Also with the shift it works!
THANKS a lot!
Lupo
if(counted_bars==0) { ExtUpperBuffer[Bars-i]=0.0; // What is the value of i here? ExtLowerBuffer[Bars-i]=0.0; hi = false; lo = false; high=0; low=0; } else // The else must initialize hi/lo/high/low for the i+1 bar. { // Then you want to do all the other bars AFTER the if/else. i=Bars-counted_bars-1; for(i=limit;i<=Bars;i++) // other bars for(i=Bars -2 - counted_bars; i>=0; i--)
WHRoeder:
Thanks!

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
I have written an indicator in MT5 which shows the last two highs/lows in comparing 3 bars to the left & one bar to the right. It works fine.
I want to do the same in MT4 fpr a friend, but I fail...and don'rt know why!?
It takes the wrong arrows, not the ones I choose - see screenshot.
Additionl question: can I do an offset like in MT5, so that the arrow is 20 pixel above/under the high/low? How?
Thanks in advanve!
Lupo