TL_getValue_BN  [SOLVED]

Questions about MultiCharts and user contributed studies.
Mydesign
Posts: 177
Joined: 15 Feb 2017
Has thanked: 32 times
Been thanked: 39 times

TL_getValue_BN

Postby Mydesign » 26 Feb 2021

Hello,

I print the following infos:

Code: Select all

Print (BarNumber, " |", TL_getValue(myTL, Date, Time), " |", TL_getValue_BN(myTL, CurrentBar) ) ;
and I get this:
...
7766.00 |13440.72 |13440.72
7767.00 |13436.06 |13436.06
7768.00 |13430.47 |13430.47
7769.00 |13428.01 |13428.01
7770.00 |13428.26 |13428.26
7771.00 |13420.53 | 0.00
7772.00 |13412.80 | 0.00
7773.00 |13405.07 | 0.00
7774.00 |13397.34 | 0.00
7775.00 |13389.61 | 0.00
7776.00 |13381.88 | 0.00
7777.00 |13374.15 | 0.00
7778.00 |13366.43 | 0.00
7779.00 |13358.70 | 0.00
7780.00 |13350.97 | 0.00
7781.00 |13343.24 | 0.00
7782.00 |13335.51 | 0.00
7783.00 |13327.78 | 0.00
7784.00 |13423.31 |13423.31
7785.00 |13407.60 |13407.60
7786.00 |13387.42 |13387.42
7787.00 |13366.63 |13366.63
7788.00 |13358.20 |13358.20
7789.00 |13343.93 |13343.93
...
Does anyone have a clue why is that ?

User avatar
Kate MultiCharts
Posts: 593
Joined: 21 Oct 2020
Has thanked: 9 times
Been thanked: 148 times

Re: TL_getValue_BN

Postby Kate MultiCharts » 26 Feb 2021

Hello Mydesign,

We are going to fix it in one of the future releases.

As for now, please try adding these lines before the print keyword in your script:

Code: Select all

tl_setextleft(myTL, true); tl_setextright(myTL, true);

Mydesign
Posts: 177
Joined: 15 Feb 2017
Has thanked: 32 times
Been thanked: 39 times

Re: TL_getValue_BN  [SOLVED]

Postby Mydesign » 01 Mar 2021

Thank you Kate.

Should I assume this is only a printing error or should I assume calculation is not made properly ?
Your solution works at fixing the output but messes my chart up with unnecessary extensions.

Anyway I will avoid using TL_getValue_BN for now.

User avatar
Kate MultiCharts
Posts: 593
Joined: 21 Oct 2020
Has thanked: 9 times
Been thanked: 148 times

Re: TL_getValue_BN

Postby Kate MultiCharts » 05 Mar 2021

Thank you Kate.

Should I assume this is only a printing error or should I assume calculation is not made properly ?
Your solution works at fixing the output but messes my chart up with unnecessary extensions.

Anyway I will avoid using TL_getValue_BN for now.
This is not a printing error. Print works correctly.

TL_getValue_BN does not work properly outside drawings, so the calculation may be incorrect. Our development team is already working on improving it.

You can try using TL_getValue instead, but it might require adjustments in the script.


Return to “MultiCharts”