How to limit the output which has results between some range values, for example: 240 < outputvalue < 250.
Anyone have an example please? I am trying with this code, but give no result:
The result so far can see on:
Can someone help me, would really appreciate it. Thank you in advanced.
Anyone have an example please? I am trying with this code, but give no result:
Inserted Code
int NumberOfHighs = 1; double outputvalue; for (int i=0; i<BarsLimit; i++) { int totals[]; ArrayInitialize(totals, 0); datetime StartTime=iTime(NULL, 0, i); int startShift = iBarShift(NULL, 0, StartTime, false); outputvalue = get_value(startShift, SOMEINPUT, SOMEINPUT); totals[outputvalue]++; if (outputvalue>=240.0 && outputvalue<250.0 && totals[outputvalue]<NumberOfHighs) { Print("StartTime; ", TimeToString(StartTime, TIME_DATE), " outputvalue: ", outputvalue); ........ } } }
Can someone help me, would really appreciate it. Thank you in advanced.