// The Swing Traders Up Trend List
input="swingpre.lst";
output="swingups.lst";
if MovAvg(0,17,cl) > MovAvg(0,50,cl) and // The17 DMA is above the 50 DMA today
MovAvg(0,50,cl) > MovAvg(0,200,cl) // The 50 DMA is above the 200 DMA
then
println symbol,",",description;
endif;