Understanding the interplay between magnetism and superconductivity in nickelate systems is a key objective in condensed matter physics. Here, we present a systematic muon-spin rotation/relaxation (I^¼SR) and resistivity study of the trilayer Ruddlesden-Popper nickelate La4Ni3O10 under ambient and applied pressure, combined with oxygen-isotope substitution. At ambient pressure, two incommensurate spin-density-wave (SDW) transitions are identified at TSDWimeq132 K and T∗imeq80−90 K. Comparison of the internal magnetic fields with dipole-field calculations reveals a magnetic structure consistent with antiferromagnetically coupled SDW order on the outer two Ni layers, with smaller moments on the inner layer. Above T∗, the moments lie mainly in the ab plane, whereas below this temperature they develop a c-axis component. The internal fields at the muon stopping sites appear abruptly at TSDW, suggesting a first-order-like SDW transition closely linked to the charge-density-wave (CDW) order occurring at the same temperature (TSDW=TCDW). Under pressure, all transition temperatures -- TSDW, T∗, and TCDW -- are suppressed at a nearly uniform rate of imeq−13 K/GPa. This contrasts with bilayer La3Ni2O7, where pressure enhances the separation between the SDW and CDW transitions. Oxygen-isotope substitution (16O →18O) shifts TCDW to higher values. The isotope effect on TSDW and T∗ differs markedly: when CDW and SDW are intertwined, a notable isotope effect is observed on TSDW, yielding nearly identical isotope shifts for TCDW and TSDW, whereas no isotope effect is detected at T∗, where the SDW transition occurs independently of the CDW.