The ReadIndicatorValues() procedure still has the code to look at the lines drawn by the original indicator, and unfortunately that code is overriding the internal code to get the box high/low. Go ahead and delete the following lines from ReadIndicatorValues() (or, put the indicator on your chartforexpippy wrote:hmmm, a good example of where a trade ought to have been taken (nothing happened).
Box is drawn correctly, lovely breakout, just missing one minor element
I'm using the current version.
I'll do my best to have a look at the code tonight, although I'm still in the early stages of learning coding
Code: Select all
BoxHigh = ObjectGetValueByShift("DLB#1-0-hi", 0);
BoxLow = ObjectGetValueByShift("DLB#1-0-lo", 0);
George