Where is the error in the Step VHF adaptive VMA HL code?

1
It is planned to create a channel based on the Step VHF adaptive VMA indicator, using the highest price, lowest price, and even ATR. There has been a problem. The upper channel for the highest price displays normally; the lowest price channel (lower bound line) does not change colour, and the modified colour clrDarkSlateGray has also turned into a single line. Where exactly is the error in the code?
These users thanked the author 太虚一毫 for the post:
mrtools


Re: Where is the error in the Step VHF adaptive VMA HL code?

2
太虚一毫 wrote: Fri May 09, 2025 5:01 am It is planned to create a channel based on the Step VHF adaptive VMA indicator, using the highest price, lowest price, and even ATR. There has been a problem. The upper channel for the highest price displays normally; the lowest price channel (lower bound line) does not change colour, and the modified colour clrDarkSlateGray has also turned into a single line. Where exactly is the error in the code?
Hello, maybe this...
These users thanked the author kvak for the post (total 3):
太虚一毫, mrtools, Jimmy

Re: Where is the error in the Step VHF adaptive VMA HL code?

3
太虚一毫 wrote: Fri May 09, 2025 5:01 am It is planned to create a channel based on the Step VHF adaptive VMA indicator, using the highest price, lowest price, and even ATR. There has been a problem. The upper channel for the highest price displays normally; the lowest price channel (lower bound line) does not change colour, and the modified colour clrDarkSlateGray has also turned into a single line. Where exactly is the error in the code?
Try now.
These users thanked the author mrtools for the post (total 3):
kvak, 太虚一毫, Jimmy

Re: Where is the error in the Step VHF adaptive VMA HL code?

4
太虚一毫 wrote: Fri May 09, 2025 5:01 am It is planned to create a channel based on the Step VHF adaptive VMA indicator, using the highest price, lowest price, and even ATR. There has been a problem. The upper channel for the highest price displays normally; the lowest price channel (lower bound line) does not change colour, and the modified colour clrDarkSlateGray has also turned into a single line. Where exactly is the error in the code?
I made a channel from that indicator

maybe you can learn from it (i'm not very good but it works)

it has the advantage to be very reactive, at the price of smoothness
Jeff
These users thanked the author ionone for the post:
太虚一毫
Scalping the Century TimeFrame since 1999