I am trying to get my indicator to be read by the strategy builder. My understanding is that the strategy builder reads what the data box outputs. Below is a sample of the piece of code I am having trouble with.
Values[4][0] = MA5[0];
Values[5][0] = MA6[0];
Values[6][0] = Condition1 ? 1 : 0;
Values[7][0] = Condition2? 1 : 0;
In the snippet above, Values[4][0] and Values[5][0] plot correctly on the chart and plot correctly in the data box.
However...
Values[6][0] and Values[7][0] do not. These values output a 1 or a 0 to the data box AND plot a 1 or a 0 on the chart.
*Condition1 and Condition2 are booleans. Without the ? operator I do not know how to pass a value to the Data Box.*
My goal is to get the strategy builder to read Condition1 as True or False or 1 or 0 without plotting anything on the chart.
Any help is appreciated. Thanks in advance!

Comment