CaseyPlays_
New member
I have a strategy that I made to easily put in levels I'm watching currently I have them separated into Sup/Res and have to manually change them each day. Is there a way I can change this to just a list of levels and the color will change depending on if close over/under level?
Code:
input resistance1 = 0;
input resistance2 = 0;
input resistance3 = 0;
input resistance4 = 0;
input resistance5 = 0;
input resistance6 = 0;
input resistance7 = 0;
input resistance8 = 0;
input resistance9 = 0;
input resistance10 = 0;
input support1 = 0;
input support2 = 0;
input support3 = 0;
input support4 = 0;
input support5 = 0;
input support6 = 0;
input support7 = 0;
input support8 = 0;
input support9 = 0;
input support10 = 0;
plot line_1 = resistance1; line_1.SetDefaultColor(Color.red);
plot line_2 = resistance2; line_2.SetDefaultColor(Color.red);
plot line_3 = resistance3; line_3.SetDefaultColor(Color.red);
plot line_4 = resistance4; line_4.SetDefaultColor(Color.red);
plot line_5 = resistance5; line_5.SetDefaultColor(Color.red);
plot line_6 = resistance6; line_6.SetDefaultColor(Color.red);
plot line_7 = resistance7; line_7.SetDefaultColor(Color.red);
plot line_8 = resistance8; line_8.SetDefaultColor(Color.red);
plot line_9 = resistance9; line_9.SetDefaultColor(Color.red);
plot line_10 = resistance10; line_10.SetDefaultColor(Color.red);
plot line_11 = support1; line_11.SetDefaultColor(Color.blue);
plot line_12 = support2; line_12.SetDefaultColor(Color.blue);
plot line_13 = support3; line_13.SetDefaultColor(Color.blue);
plot line_14 = support4; line_14.SetDefaultColor(Color.blue);
plot line_15 = support5; line_15.SetDefaultColor(Color.blue);
plot line_16 = support6; line_16.SetDefaultColor(Color.blue);
plot line_17 = support7; line_17.SetDefaultColor(Color.blue);
plot line_18 = support8; line_18.SetDefaultColor(Color.blue);
plot line_19 = support9; line_19.SetDefaultColor(Color.blue);
plot line_20 = support10; line_20.SetDefaultColor(Color.blue);