Hello!
Can anyone help me with an indicator of a rotation candle.
I want a green upp arrow at the bottom of a candlestick when
Price opens above the previus midpoint
price is above the previus midpoint and
Price is above the current midpoint.
And a red arrow down at the top of a candlestick when
Price opens belov the previus midpoint
price is promov the previus midpoint and
price is belov the current midpoint.
And a dot on the center of each candlestick, too
Looks interesting and along the lines of an idea I had this morning, so I await developments with enthusiasm! 🙂
Have I missed something? What is the condition for the red dot??
I can see it is at same level as the green dot in the previous candle … is that correct?
Just trying to help whoever may be kind enough to code it for you! 🙂
The red dot outside is not needed. It has no function.
I do not have a working strategy for this indicator yet.
If it goes, it would be useful if it says how many pips it was between the arrows. But only when they go from red to green and vice versa. When it flips.
Hear is a link from which I got it. But probably will not use it like that.
This simple code should do what needed:
med = medianprice
up = open>med[1] and close>med[1] and close>med
dn = open<med[1] and close<med[1] and close<med
atr = averagetruerange[10]
if up then
drawarrowup(barindex,low-atr) coloured(0,255,0)
endif
if dn then
drawarrowdown(barindex,high+atr) coloured(255,0,0)
endif
return