PDA

View Full Version : Darvas


goldfly
08-01-2007, 01:50 PM
The Darvas upper plot seems to not be returning. I couldn't get it to buy crossing above.

Also, I'm not sure if the lower plot is returning correctly, the sells seemed to be in strange places.

Also........ Are the lines supposed to float like that before starting a new box? I've seen it go up and down before settling in. Even after it seemed to achieve a high and low. It doesnt seem right to me. But I don't know.

But what's the point then? How do you know when the plot line has "solidified"? Do I have to read the book? Would it help?

Of course, I guess my second issue could be a matter of the floating plot.

NinjaTrader_Ray
08-01-2007, 01:54 PM
I am not intimately familiar with this indicator and how it generates its trading signals but here are a few points -

- You will notice that the current bar will never cross above the value of the upper plot. You may need to check if the current close is greater than the darvas upper channel value of 1 bar ago.

- Plot lines are "solidified" on the close of a bar

goldfly
08-01-2007, 05:12 PM
Ok, I see what you're saying with the lookback.

You know, you guys have zero documentation for this one. What all can I call out of there and how can I call it? How about the state? That could be useful.

NinjaTrader_Ray
08-01-2007, 05:16 PM
You can only access the plot information. I will add to my list to document it.

goldfly
08-11-2007, 03:31 PM
OK, more trouble for me.....

When I use this code:

Print ("Lower "+ Darvas().Lower);
Print ("Upper "+ Darvas().Upper);
Print (" ");
Print ("Test 0 " + Darvas().Lower[0] );
Print ("Test 1 " + Darvas().Lower[1] );
Print (" ");


I get this result (The numbers are OK, the problem is that it dies before the fifth line):


Lower 788.8
Upper 788.8


Test 0 788.8

And this log message:

8/11/2007 5:25:11 PM,Default,Error on calling the 'OnBarUpdate' method for indicator 'DarvasPrint' on bar 0: Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index,

What am I doing wrong?

NinjaTrader_Ray
08-11-2007, 03:43 PM
Add

if (CurrentBar < 1)
return;

goldfly
08-11-2007, 07:13 PM
Ouch! Yes.

What a boze I am.

Thanks

You have a neural shunt into this board, huh?

buderim
09-21-2007, 12:07 AM
Ouch! Yes.

What a boze I am.

Thanks

You have a neural shunt into this board, huh?

Hi ,

Sorry to be a plank, could somebody turn this into a indicator zip file I import into NT6 ?

Thanks
Ian