how to use if condition or function in trade script for divergnece value as the divergence being shown in google charts…that means if div.ie…>0.22 value it should give alert?
The conditional “IF” function allows you to design complex Boolean logic filters. If you paste the following script into the Script area in your trading software
application, you will see a column of numbers that oscillate between 1 and -1,
depending on when the closing price is greater than the opening price:
SET A = IF(CLOSE > OPEN, 1, -1)
In the above requirement IF condition is not required, you can directly give the condition of div or MACD > OR < values