Forum

ignore negative values

How to ignore negative values in code? Print("TopTrend ",smax[shiftt], " curprice ", curprice," Calculation ",NormalizeDouble((smax[shiftt]-curprice),Digits)/_Point); 0 13:33:17.111 2024.03.14 17:36:40 AT_SR_EA_V68 (1) EURUSD ,M15: TopTrend 1.09485438682249 curprice 1.090525 Calculation

Set correct condition for iCustom

Hello everyone! I'm new to coding, I want to add an indicator to the Expert Advisor, I've read a lot of literature, but I can't seem to set the condition correctly. condition doesn't work. Can someone guide me? Thank you! if (UseBands) {