AVTParticipant
Senior
I get a wrong result with OpenDate which should return YYYYMMDD format. Any ideas? Thanks.
defparam drawonlastbaronly=true
ODay=OpenDay
OMon=OpenMonth
OYear=OpenYear
ODate=OpenDate
Drawtext ("OpenDay value: #ODay#",barindex,0.4,Monospaced) coloured(0,0,0)
Drawtext ("OpenMonth value: #OMon#",barindex,0.2,Monospaced) coloured(0,0,0)
Drawtext ("OpenYear value: #OYear#",barindex,0,Monospaced) coloured(0,0,0)
Drawtext ("OpenDate value: #ODate#",barindex,-0.2,Monospaced) coloured(0,0,0)
Return
Separate values are correct. OpenDate returns 20,2M, picture attached.
The result of #ODate# is good, in fact it has been plotted in a simplified rounded number format. I don’t think there is other possibility to draw it in its real format. But you could try this instead:
Drawtext ("OpenDate value: #OYear# #OMon# #ODay#",barindex,-0.2,Monospaced) coloured(0,0,0)
I don’t know if this solution is working, could you confirm?
AVTParticipant
Senior
Confirmed.
That’s what my alternate was: Use the separate ones and forget about using OpenDate because it is simply not returning the value as documented (which makes it impossible to work/calculate with it).
Thanks Nicolas!