Rank: Newbie
Groups: Registered, Registered Users, Subscribers Joined: 2/17/2019(UTC) Posts: 2 Location: Vienna
Was thanked: 1 time(s) in 1 post(s)

Good Day,
I am trying to build a custom indicator using the Adaptive Cycle Toolkit.
I would like to derive the Cybernetic Cycle Period of an instrument and then use that to calculate the Upper and Lower Bollinger Band using the available "ASIBBandBot" and "ASIBBandTop" functions, and then use that to calculate the Adaptive PercentB Indicator:
Code:pr:=C;
periods:=ExtFml("ADSI.CyclePeriod", pr, 0.28, 0.10, 1.05);
lower:=ExtFml("ASI.BBandBot",pr,periods/2, 1);
upper:=ExtFml("ASI.BBandTop",pr,periods/2, 1);
percb:=( Clower)/( upperlower)*100;
percb;
When I insert this indicator into a chart, I am getting the following error message:
"The following math errors occured during the calculation of _DML_ADSI_BPercent
Division by zero: 46"
'_DML_ADSI_BPercent' is the name I chose for this custom indicator.
The strange thing is, that the indicator is still drawn. However I am not able to use this formula for example to build a System Test, as it gives me the same error:
"The following runtime errors were encountered while executing the Buy Signal formula: 46 Divide By Zero Errors"
Furthermore, the same formula works, if I instead derive the Homodyne Cycle period and use it to calculate the Upper and Lower Bollinger Band and then the PercentB Indicator:
Code:pr:=C;
periods:=ExtFml("ADSI.HomodyneCyclePeriod", pr);
lower:=ExtFml("ASI.BBandBot",pr,periods/2, 1);
upper:=ExtFml("ASI.BBandTop",pr,periods/2, 1);
percb:=( Clower)/( upperlower)*100;
percb;
This creates no 'Divide by Zero' errors.
Any help would be much appreciated.
Has anybody else tried to build custom indicators using the Adaptive Cycle Toolkit so far?
I would also be interested in a more extensive Fomular Guide with explanations of the various functions and custom indicators available in the Adaptive Cycle Toolkit. I have downloaded the "ACT Summary Manual" and the "ACT Formula Primer", however that is only a very short Guide of just 8 pages with some minimal examples, and "ACT Summary Manual" mentions a more extensive "ASI and ADSI Manual" which should be available?
Kind regards,
Michael
Edited by user Wednesday, February 20, 2019 10:54:36 PM(UTC)
 Reason: Not specified
