Trading, Python, Quantitative Finance, Finance, Investing.
Plotting sell signals ax.plot(signals.loc[signals.positions == -1.0].index, signals.short_mavg[signals.positions == -1.0], 'v', markersize=10, color='r', label='Sell Signal') plt.title('Moving Average Crossover Strategy') plt.xlabel('Date') plt.ylabel('Price') plt.legend() plt.show()