I have over 2500 of the following test conditions in my code in C# :
if (//upDown_129
whiteLineDown
&& orangeLineUp
&& yellowLineDown
&& cyanLineDown
&& blackLineDown
&& dodBlueLineDown
&& blueLineDown
&& greenLineDown
&& redLineDown
)
{
upDown_129 = true ;
DrawText("upDown_129" + DateTime.Now.Millisecond.ToString() + CurrentBar + DateTime.Now.Millisecond.ToString()
+ CurrentBar + CurrentBar + DateTime.Now.Millisecond.ToString(), "^129", 0, Low[0]-(TickSize*12), Color.Black);
Print("//upDown_129");
}
I would like the code to look like the following when changed:
if (//upDown_129
whiteLineDown
&& orangeLineUp
&& yellowLineDown
&& cyanLineDown
&& blackLineDown
&& dodBlueLineDown
&& blueLineDown
&& greenLineDown
&& redLineDown
)
{
upDown_129 = true ;
DrawText("upDown_129" + DateTime.Now.Millisecond.ToString() + CurrentBar + DateTime.Now.Millisecond.ToString()
+ CurrentBar + CurrentBar + DateTime.Now.Millisecond.ToString(), "^129", 0, Low[0]-(TickSize*12), Color.Black);
Print("//upDown_129");
Print("&& whiteLineDown");
Print("&& orangeLineUp");
Print("&& yellowLineDown");
Print("&& cyanLineDown");
Print("&& blackLineDown");
Print("&& dodBlueLineDown");
Print("&& blueLineDown");
Print("&& greenLineDown");
Print("&& redLineDown");
}
It's basically the same thing, just want to convert the "conditions" in the "if" part of the statement to a Print statement in the "then" part of the "if" statement.
I'm assuming that I would probably have to Convert and Transpose these test conditions one at a time (which is OK).
Thank You Very Much For Your Support in Advance.