I am trying to create a if condition with an AND operator for an indicator but it seems that the indicator find a signal every time there is a bar. I am new to programming, so I think that my condition is not built correctly. Here is the code below.
Thanks in advance for your help,
Manuel
if (CurrentBar < 1)
return;
Minimum=MIN(Low,ChannelPeriod)[0];
Maximum=MAX(High,ChannelPeriod)[0];
if ((Low[0]>gapSize*High[1])&&(Maximum<ChannelSize*Minimum));
Comment