Page 1 of 1

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

Posted: Fri May 09, 2025 5:01 am
by 太虚一毫
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?

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

Posted: Fri May 09, 2025 6:14 am
by kvak
太虚一毫 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...

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

Posted: Fri May 09, 2025 8:41 am
by mrtools
太虚一毫 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.

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

Posted: Sat May 10, 2025 1:42 am
by ionone
太虚一毫 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