We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
For using markers, these references may help:
https://matplotlib.org/3.1.0/gallery/lines_bars_and_markers/marker_reference.html
https://matplotlib.org/3.2.1/tutorials/text/mathtext.html (note sections on numbers and arrows)
https://stackoverflow.com/questions/44726675/custom-markers-using-python-matplotlib
https://stackoverflow.com/questions/14324270/matplotlib-custom-marker-symbol
Originally posted by @DanielGoldfarb in #97 (comment)
Somehow this does not seems to work in mpf ?
def sell_signal_plot(df): ap0 = [ mpf.make_addplot(df['BB_up'], color='b'), mpf.make_addplot(df['BB_low'], color='b'), mpf.make_addplot(df['Kelt_low'], color='r'), mpf.make_addplot(df['Kelt_up'], color='r'), mpf.make_addplot(df['BB_mid'], color='grey'), mpf.make_addplot(df['sell_s'], color='r', marker= '$6$')
] mpf.plot(df, type='candle', addplot=ap0, style='yahoo')
In the above function, there are lines being drawn? Here is a snapshot for your reference. df['sell_s'] has values 0 and 1.
The text was updated successfully, but these errors were encountered:
Sorry, something went wrong.
Hello, i solved the problem. Here is an interesting fix.
df['sell_s'] = df.apply(sell_signal, axis=1) df['sell_s'] = df['sell_s'] * df['High'] df['sell_s'] = df['sell_s'].apply(lambda x: np.nan if x==0 else x)
This answer of yours on Stack-overflow helped.
No branches or pull requests
https://matplotlib.org/3.1.0/gallery/lines_bars_and_markers/marker_reference.html
https://matplotlib.org/3.2.1/tutorials/text/mathtext.html (note sections on numbers and arrows)
https://stackoverflow.com/questions/44726675/custom-markers-using-python-matplotlib
https://stackoverflow.com/questions/14324270/matplotlib-custom-marker-symbol
Originally posted by @DanielGoldfarb in #97 (comment)
Somehow this does not seems to work in mpf ?
def sell_signal_plot(df):
ap0 = [
mpf.make_addplot(df['BB_up'], color='b'),
mpf.make_addplot(df['BB_low'], color='b'),
mpf.make_addplot(df['Kelt_low'], color='r'),
mpf.make_addplot(df['Kelt_up'], color='r'),
mpf.make_addplot(df['BB_mid'], color='grey'),
mpf.make_addplot(df['sell_s'], color='r', marker= '$6$')
In the above function, there are lines being drawn? Here is a snapshot for your reference. df['sell_s'] has values 0 and 1.
The text was updated successfully, but these errors were encountered: