For code/output blocks: Use ``` (aka backtick or grave accent) in a single line before and after the block. See: http://commonmark.org/help/
Plot not showing correctly when adding 2nd data feed
jkcaldwe last edited by
I am having an issue when plotting with multiple data feeds. When I add a second data feed to cerebro, the plot lines of the 'Trades' observer subplot change to triangles and no longer use Blue and Red to show winning and losing trades. I have tried to re-specify the plot lines using the code below but am not having success changing the appearance.
SPYData.plotinfo.plotlines = dict( Trades=dict( pnlplus=dict(_name='Positive', marker='o', color='blue', markersize=8.0, fillstyle='full'), pnlminus=dict(_name='Negative', marker='o', color='red', markersize=8.0, fillstyle='full')));
As an example, if I add only one data feed to cerebro I get the chart below, as expected, with Blue and Red dots in the 'Trades' observer subplot.
Now if I add a second data feed to cerebro I get the following chart. As can be seen, Red and Blue circles change to green triangles. Also, the 'Trades' subplot name turns to 'DataTrades (True)'.
Thanks in advance for the help.