Trix
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 global lastCrossDownPrice=-1 global lastCrossDown=-1 global lastCrossUpPrice=-1 global lastCrossUp=-1 if isBeginBar() then lastCrossDownPrice=-1 lastCrossDown=-1 lastCrossUpPrice=-1 lastCrossUp=-1 endif if BarClosed() then if crossup( Trix[0](Close, 15, 0), 0 ) then if Trix[0](Close, 15, 0) > lastCrossUp then addbuyentry endif lastCrossUpPrice=close lastCrossUp= Trix[0](Close, 15, 0) endif if crossdown( Trix[0](Close, 15, 0), 0 )then if lastCrossDownPrice > 0 and Trix[0](Close, 15, 0) < lastCrossDown then addsellentry endif lastCrossDownPrice=close lastCrossDown= Trix[0](Close, 15, 0) endif endif
Enlarge Chart