Jim Dean![]() Sage ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3433 Joined: 3/13/2006 Location: L'ville, GA ![]() | Here you go. Limitations: OLang does not permit specification of the line style (dash dot). It does allow the color to be specified, and the line width. However, you can double click on the plotted line and set the color and style that way. Coding for alternative colors is sort of messy, so I'll leave it up to you to use the double click method (default will be random colors). Instructions: type in the price to be plotted. If you leave an input blank, it will be ignored. #Indicator #param "Price1", 0 #param "Price2", 0 #param "Price3", 0 #param "Price4", 0 #param "Price5", 0 #param "Price6", 0 #param "Price7", 0 #param "Price8", 0 if Price1 > 0 then PlotPrice("P1",Price1) if Price2 > 0 then PlotPrice("P2",Price2) if Price3 > 0 then PlotPrice("P3",Price3) if Price4 > 0 then PlotPrice("P4",Price4) if Price5 > 0 then PlotPrice("P5",Price5) if Price6 > 0 then PlotPrice("P6",Price6) if Price7 > 0 then PlotPrice("P7",Price7) if Price8 > 0 then PlotPrice("P8",Price8) return 0 |