Currently, I'm representing second and fourth order tensor with this (taken from someone, and i don't really get how it works):
% tensor 2:
\newcommand{\tend}[1]{\oalign{\mbox{\boldmath$#1$}\crcr\hidewidth$\scriptscriptstyle\sim$\hidewidth}}
%tensor 4:
\newcommand{\tenq}[1]{\tend{\tend #1}\vphantom{#1}}
Which looks like this:

I very much don't like the result: boldface is strange, with scales badly, there is too much spacing for the fourth order tensor... I found the untertilde package, with looks more robust for second order, but i cannot see how to make 4th order from it. I also found this topic, bold widetilde, which doe not adress symbol stacking for 4th order.
Is there a simple elegant way to do? My main concern here is consistant boldface for the tilde and the letter, and proper vertical spacing of the 4th order.
Thanks



\oalignis a plain TeX command for building minature tables, used for stacking symbols.\crcrindicates a newline.\hidewdith...\hidewidthdisguises the width of the intervening material. – Andrew Swann Feb 22 '15 at 15:48