Hi,
I want to mark some selected bars and display the high price of that bar.
I use the following script:
A1 = STRDATE(DATE=2023-07-27) ; A2 = BARDATE() == A1; A3 = IF(A2 == 1, HIGH(), 0) ; A4 = A3 ; B1 = STRDATE(DATE=2022-08-16) ; B2 = BARDATE() == B1; B3 = IF(B2 == 1, HIGH(), 0) ; B4 = B3 ; NumD = B4 ; NumD
Here is the chart:
As you can see the script woks as it should.
BUT when I use TWO dates in the script only the values are “1.00” displayed.
Here is the script with two dates:
A1 = STRDATE(DATE=2023-07-27) ; A2 = BARDATE() == A1; A3 = IF(A2 == 1, HIGH(), 0) ; A4 = A3 ; B1 = STRDATE(DATE=2022-08-16) ; B2 = BARDATE() == B1; B3 = IF(B2 == 1, HIGH(), 0) ; B4 = B3 ; NumD = A4 or B4 ; NumD
Here is the chart with two dates in the script:
I use for the Show Bar tool the following settings:
Any suggestion why only the values “1.00” are displayed when two dates are used in the script?
Thanks,
Thomas