StochD intellisense incorrect?!
Author: thodder
Creation Date: 1/7/2010 4:45 PM
profile picture

thodder

#1
The intellisense for the StochD.Series method is showing as:
QUOTE:
StochD.Series(WealthLab.Bars bars, int smooth, int period)

The wiki documentation states it is the following (see http://www2.wealth-lab.com/WL5Wiki/StochD.ashx):
QUOTE:
StochD.Series(WealthLab.Bars bars, int period, int smooth)

I remember running into this before but I thought the intellisense was fixed. Is it broken again? I'm using WLP 5.6.20.0359653.

I did a comparison between StochK and StochD with a smoothing of 1, and the intellisense appears to be the one that is incorrect. The correct order of the parameters appears to be: int period, int smooth.
profile picture

Cone

#2
You're right. I thought it was still a problem, but we need to backtrack on this.

I think the problem is that we're used to the order period, smooth from Version 4. Anyway, we'll have to change the Wiki to reflect the current situation. Thanks for the heads up.
profile picture

thodder

#3
I thought it was fixed with WLP 5.5. I could be wrong.

The wiki is correct and it points out the wrong syntax with strikeouts. The order period, smooth is the correct way to call this method (which I confirmed with my test); however, the intellisense shows the order as smooth, period. The only thing that may need to change in the wiki is to include 5.6 (and possibly 5.5) as versions where the intellisense is incorrect.

I wish they'd fix the intellisense as I lose a lot of time in coding whenever I go back and use StochD.Series. I always have to double check my syntax.

If you want I can report this in support. As this is a known problem, there may be no point in the writeup.
profile picture

thodder

#4
Out of curiosity I decided to look at dropping the indicator on the chart. The descriptions are reversed there too. The following was generated when I pushed the indicator into the strategy code:
CODE:
Please log in to see this code.


This is worse as someone dropping an indicator on the chart would be less likely to refer to the wiki for details on the indicator.
profile picture

Cone

#5
- removed - (wrong info)
profile picture

thodder

#6
Am I correct that StochK and StochD with a smooth of 1 should get the same result? The code example below will only appear to display one Stoch indicator as they are on top of each other.
CODE:
Please log in to see this code.


Try reversing the period and smooth parameters to match the intellisense syntax for StochD (see example below) and you'll see two indicators plotted.

QUOTE:
StochD.Series(Bars, StochSmooth, StochPeriod)


That was the test I used to confirm the correct order. The wiki appears correct based on my test.
profile picture

Cone

#7
Well, you're right :)

After a closer look at the history of this and the method signature of the StochD.Series - public StochD(WealthLab.Bars bars, int period, int smooth, string description) - it's clear to me now that the intellisense is still incorrect and the Wiki is right. The bug is in fact still open since 5.3.
profile picture

thodder

#8
Thanks!

It's not just intellisense. The indicator window for dropping the indicator is wrong too. I just want to clarify that it is bigger than the intellisense documentation.
profile picture

Cone

#9
Yup, it all goes together.
This website uses cookies to improve your experience. We'll assume you're ok with that, but you can opt-out if you wish (Read more).