one for secondary data and one for time.
For secondary data I wanted to do the following:
if BarsArray[2] > upBegin then...
// perform an action
Before I manually edited the script I used the wizard to create the upBegin valuable which is int a constant ...i.e.
privateint upBegin = 1000; // Default setting for UpBegin
and also has the wizard created properties in the property section of the code.
The BarsArray[2] data is meant to be market statistically data so seems to be integer values and I believe I have defined that correctly.
When ever I try to do this I get CS0019 error code - not sure what I need to do to do this type of logical comparison. Is there some sort of typing I need to do?
For a time comparison I ran into a similar error condition when doing the following:
if (Time[0].DayOfWeek == dayOfWeek)return;
where dayofWeek is
privateint dayOfWeek = 5; // Default setting for DayOfWeek
Any insight is appreciated....thanks so much
Comment