This indicator is from John Carters book “Mastering the trade” an plots the bars green or red.
It checks if the price is above or under the average price of the previous 5 bars.
The indicator should hep you stay in a trade until the colors chance.
Two bars of the opposite color is the signal to get in or out.
1 2 3 4 5 6 7 8 9 10 11 |
averageprice = (((high[5]+low[5])/2)+((high[4]+low[4])/2)+((high[3]+low[3])/2)+((high[2]+low[2])/2)+((high[1]+low[1])/2)+((high[6]+low[6])/2))/6 if close > averageprice then drawcandle(open,high,low,close) coloured(0,255,0) endif if close < averageprice then drawcandle(open,high,low,close) coloured(255,0,0) endif return |
Share this
No information on this site is investment advice or a solicitation to buy or sell any financial instrument. Past performance is not indicative of future results. Trading may expose you to risk of loss greater than your deposits and is only suitable for experienced investors who have sufficient financial means to bear such risk.
ProRealTime ITF files and other attachments :PRC is also on YouTube, subscribe to our channel for exclusive content and tutorials
tack ska du ha för dina delningar både här o twitter
Tack.