The arrow direction, as well as the fluid flow or gas flow direction, is controlled by the 3D design system. When you set OS 17 = 0, most normal in-line components will have the flow arrow plotted alongside.
An alternative type of flow arrow that is plotted directly on the pipe is available. For more information, see Option Switch 112: Flow Arrows (Pipeline).