\begin{groupplot}[width=\linewidth, height=4cm, group style={
        group size=1 by 4,
        vertical sep=.2cm,
        group name=G
    },
    axis lines=center,
    no marks,
    xtick=\empty, clip=false
]
    \nextgroupplot
        \addplot +[thick] table [x=no, y=price, col sep=comma] {\file};

    \nextgroupplot[height=3cm]
        \addplot +[name path global=macd, red] table [x=no, y=macd, col sep=comma] {\file};
        \addplot +[name path global=signal, blue] table [x=no, y=signal, col sep=comma] {\file};

    \nextgroupplot[height=2cm, ytick=\empty, y axis line style={draw=none}]
        \addplot +[thick, black] table [x=no, y=delta, col sep=comma] {\file};

    \nextgroupplot[height=3cm]
        \addplot +[name path global=macd, red] table [x=no, y=macd, col sep=comma] {\file};
        \addplot +[name path global=signal, blue] table [x=no, y=signal, col sep=comma] {\file};
 
    \coordinate (safe) at (35,0);
\end{groupplot}