Ami doesn't support default values for parameters of user-defined functions/procedures. That is to say the in-built MACD(fpd=12, spd=26) works, but an user-defined KMACD(fpd=12, spd=26) does not.
This may help!
function KMACD(IP1,IP2)
{
if(IP1=null and IP2=null)
{IP1=____;
IP2=____;// default value here;
}
.................................
return result;
}
Hope this could help!
This may help!
function KMACD(IP1,IP2)
{
if(IP1=null and IP2=null)
{IP1=____;
IP2=____;// default value here;
}
.................................
return result;
}
Hope this could help!
BTW, should use IP1 == null and IP2 == null or else Null will be assigned to args IP1 & IP2 irrespective of values passed.
Regards,
Kalyan.
Last edited: