PFEtrend
Click the file above to Download.
NOTE: For easy import into your charts, save to some where that you will be able to remember, for example your computer's desktop. Be sure to save using .alt as the file extension.
Copy to Clipboard local pfe10=PFE[0](Close, 10, 5) local sma50=SMA[0](Close, 50) local sma50p=SMA[1](Close, 50) if isBuyPosition() and crossdown(pfe10,50) then addbuyexit endif if isSellPosition() and crossup(pfe10,-50) then addsellexit endif if sma50>sma50p and crossup(pfe10,0) then addbuyentry endif if sma50
Enlarge Chart