I am trying to modify the standard Darvas box indicator to provide buy and sell signals. I have added buy and sell (up & down) arrows to the indicator, but want to add one additional condition to the sell signal requirement.
I am simply having trouble with an "if" statement in which I want two conditions to be satisfied before printing the arrow. I'm just having trouble getting a current and last value for the "boxTop" variable. I'm trying to do this as simply as possible. I've attached the program for review. Line 81 is the trouble spot where I'm stuck. Since I am pretty poor with ninjascript, I'm hoping I can get a little help as this is the only remaining part I'm trying to solve.
Thank you,
Lee
Comment