Green’s Dictionary of Slang

both ways adj.

bisexual.

[UK]G. Burn Happy Like Murderers 54: You want to watch her. Don’t you know she’s both ways?

In phrases

go both ways (v.) (also swing both ways)

1. to be a bisexual.

[[UK]Mercurius Fumigosus 24 8–15 Nov. 206: Yet she seems oth’ doubtfull Gender to me. / Though her Habit and Actions either way leane].
[US]B. Jackson Thief’s Primer 173: She’s [i.e. a male homosexual] got a bunch of them in the tank with her that are going both ways.
[US]C. Bukowski Erections, Ejaculations etc. 140: The guy went both ways – I mean he fucked men and women and was fucked by men and women.
[US]Dr Dre ‘XXplosive’ 🎵 Bet you didn’t know she goes both ways.
[US]C. Cook Robbers (2001) 315: Maybe you flip both ways. Maybe you get off on rough trade, too.
[UK]R. Milward Man-Eating Typewriter 4: Espresso-schlumphing, pâté-nibbling, jibbering, both-way-swinging [etc].

2. to take either role in sado-masochistic sex.

[US]L. Sanders Anderson Tapes 97: D’MEDICO: [I] found out he was bent, sex-wise [...] Whips. ANGELO: Which way is he? This is important. D’MEDICO: Both ways, from what I hear.
[US]J. Rechy Rushes (1981) 99: ‘You see the earring? Left side! And the handkerchief? All on the left side, man! That means top-man, man. Top!’ ‘Some guys go both ways, stud. No offense.’.