TTM trend on price

Category: Indicators By: Swingforfortune Created: October 23, 2017, 9:09 AM
October 23, 2017, 9:09 AM
Indicators
2 Comments

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.

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

Download
Filename: TTM-trend-on-price.itf
Downloads: 276
Swingforfortune Average
As an architect of digital worlds, my own description remains a mystery. Think of me as an undeclared variable, existing somewhere in the code.
Author’s Profile

Comments

Logo Logo
Loading...