Timeframe (1 Day)
PPCurrentDay = (High[1] + Low[1] + Close[1])/3 //PP of the current Day
PPoneDaybefore = (High[2] + Low[2] + Close[2])/3 //PP Tradeday before
PPtwoDaybefore = (High[3] + Low[3] + Close[3])/3 //PP two Tradedays before
//checked if the PP one Tradeday ago was reached
If High[1] > PPoneDaybefore and low[1] < PPoneDaybefore then
PPoneDaybeforereached = 1
else
PPoneDaybeforereached = 0
endif
//checked if the PP two Tradedays ago was reached
If High[3] > PPtwoDaybefore and low[3] < PPtwoDaybefore then
PPtwoDaybeforereached = 1
else
PPtwoDaybeforereached = 0
endif
Timeframe (60 Minutes)
If High > PPCurrentDay and Low < PPCurrentDay then
PPreached = 1
else
PPreached = 0
endif
PRINT(PPoneDaybefore) as "PPoneDaybefore" COLOURED("Black") FILLCOLOR("Green")
PRINT(PPtwoDaybefore) as "PPtwoDaybefore" COLOURED("Black") FILLCOLOR("Green")
PRINT(PPCurrentDay) as "PPCurrentDay" COLOURED("Black") FILLCOLOR("Green")
//PRINT(PPoneDaybeforereached) as "PPoneDaybeforereached" COLOURED("Black") FILLCOLOR("Green")
//PRINT(PPtwoDaybeforereached) as "PPtwoDaybeforereached" COLOURED("Black") FILLCOLOR("Green")
Return PPCurrentDay