WoodiePivotPoints giving NaN value
Created at 31 Aug 2016, 21:18
CT
WoodiePivotPoints giving NaN value
31 Aug 2016, 21:18
Hello,
How can I access values from this indicator in my cbot? Reference is added but the issue are:
1. Can not add this indicator in Backtesting mode to chart (no indicator will be displayed)
2. When trying to access in my cbot logic indicator value code for variables pivot, R1, R2, ... returns value 0.
wpp = Indicators.GetIndicator<WoodiePivotPoints>(DrawingWidth, NoPiv); pivot = (double)wpp.Pivot.LastValue; R1 = (double)wpp.R1.LastValue; R2 = (double)wpp.R2.LastValue; R3 = (double)wpp.R3.LastValue; S1 = (double)wpp.S1.LastValue; S2 = (double)wpp.S2.LastValue; S3 = (double)wpp.S3.LastValue;
3. Code
wpp.R1.LastValue
returns NaN
Any hints or guidline? In similar cbot was able to acces referenced indicator BelkhayatePRC using same code as above
cog1 = Indicators.GetIndicator<BelkhayatePRC>(cogDegree, cog1Periods, Inner, Middle, Outer);
What I´m doing wrong? Why is indicator not visible in backtesting mode and it´s values returning NaN?
Any help appreciated.
croucrou
01 Sep 2016, 15:10
Hello, change every "private" to "public" within the indicator.
@croucrou