Tag Archives: plot

Easy way to plot 2 stocks from IQFeed Yahoo Histocial no more

Easy way to plot 2 stocks from IQFeed Yahoo Histocial no more

Demo of 2 stoch chart

Big news:

Update on 20th May 2017: Yahoo Finance have discontinued their free historical data API. As a workaround, I’ve posted a new version of the spreadsheet that uses Google Finance.

Multiple Stock Quote Downloader for Excel

Here is the Python simple scripting for 2 charts:


#https://chrisalbon.com/python/pandas_dataframe_importing_csv.html

#https://plot.ly/python/ohlc-charts/


import pandas as pd


import numpy as np


import matplotlib.pyplot as plt

#https://stackoverflow.com/questions/9627686/plotting-dates-on-the-x-axis-with-pythons-matplotlib
import datetime

df1=pd.read_csv(‘AAPL_5.txt’)
df2=pd.read_csv(‘AMZN_5.txt’)

df1=df1.tail(18000*3)
df2=df2.tail(18000*3)

#print(df1)
x = [datetime.datetime.strptime(d,’%m-%d-%Y’).date() for d in df1.Date]
#https://pythonprogramming.net/loading-file-data-matplotlib-tutorial/
plt.plot(x, df1.Close, label=’AAPL’)
plt.plot(x, df2.Close, label=’AMZN’)
plt.xlabel(‘x’)
plt.ylabel(‘y’)
plt.title(‘AAPL vs AMZN’)
plt.legend(loc=2)
plt.show()

 

 

HOW DO YOU START A PROFITABLE TRADING BUSINESS? Read more NOW >>>

NOTE I now post my TRADING ALERTS into my personal FACEBOOK ACCOUNT and TWITTER. Don't worry as I don't post stupid cat videos or what I eat!

#fed dot #Plot for March 2016

dot for March 2016

[igp-video src=”https://quantlabs.net/blog/wp-content/uploads/2016/03/fed-dot-Plot-for-March-2016.mp4″ poster=”https://quantlabs.net/blog/wp-content/uploads/2016/03/fed-dot-Plot-for-March-2016.jpg” size=”large”]
#fed dot #Plot for March 2016

HOW DO YOU START A PROFITABLE TRADING BUSINESS? Read more NOW >>>

NOTE I now post my TRADING ALERTS into my personal FACEBOOK ACCOUNT and TWITTER. Don't worry as I don't post stupid cat videos or what I eat!

How C++ call Matlab in Linux with plot

How C++ call Matlab in Linux with plot

You can use Matlab as an algo engine with its visualization. I need a unique one option trading payoff chart. You see this coding example with tutorial for Linux:

http://www.mathworks.com/help/matlab/matlab_external/calling-matlab-software-from-a-c-application.html

http://linux4research.blogspot.kr/2007/10/calling-matlab-functions-from-c.html

Strange how Linux discoveries take you places. I am finding something more my liking in R.

https://code.google.com/p/rgreeks/source/browse/trunk/pkg/R/payoff.R?r=4

Join my FREE newsletter to learn more using C++ with Matlab 

HOW DO YOU START A PROFITABLE TRADING BUSINESS? Read more NOW >>>

NOTE I now post my TRADING ALERTS into my personal FACEBOOK ACCOUNT and TWITTER. Don't worry as I don't post stupid cat videos or what I eat!

How to feed random numbers into Simulink model with plot

How to feed random numbers into Simulink model with plot

We can now generate random arrays into a Simulink for inflow. I also include a plot in the outflow as well. You can get the source code by being Quant Elite member

Join my FREE newsletter to see how this build out an auto trading system 

 

HOW DO YOU START A PROFITABLE TRADING BUSINESS? Read more NOW >>>

NOTE I now post my TRADING ALERTS into my personal FACEBOOK ACCOUNT and TWITTER. Don't worry as I don't post stupid cat videos or what I eat!

Open source Linux gnuplot for a plot in C++

Open source Linux gnuplot for  a plot in C++

A quick demo of charting within open source C++ on Linux Ubuntu. Run to install gnuplot with x11

sudo apt-get install gnuplot-x11

 

 

Join my FREE newsletter if you want to learn other tricks regarding C++

HOW DO YOU START A PROFITABLE TRADING BUSINESS? Read more NOW >>>

NOTE I now post my TRADING ALERTS into my personal FACEBOOK ACCOUNT and TWITTER. Don't worry as I don't post stupid cat videos or what I eat!

Will OpenGL and Qt with C++ lead the way for next generation 3D surface plot charting in heavy quant trading platform or HFT environment ?

Will OpenGL and Qt with C++ and Python lead the way for next generation 3D surface plot charting in heavy quant trading platform or HFT environment ?

I dare you do any search on yYoutube to tsee the ese libraries techniques. I aare you do any search to see how flawless the redering capabilities are as well as the the ingegious touch capaibilities. Who knew these were so entrenched in gaming and mobile platforms especially Android and now Tizen (Samsung OS choice). It is quite incredible but it really has advanced in the last year of 2013. These advanced videos dates posted reflect this. So…it brings me to the conclusion that this could be the choice of future devrelopment for highly advanced trading systems with a 3d effect. I think  this will be the resting spot with the exception of how Microsoft progresses in the future. Knowing Satya Nadella will most likely integrate these libraries into future core eidtions of .NET and Windows. Hey, Apple for IOS and OSX supports it. Check out the videos but most of all it is somewhat tue open source but I hope I don’t come across these about in my currrent view of my recent experience  with open source..

My experience with Python is a complete mess with all these IDEs and how to confusion with no set standard. I really hope it matures. There is also

This is why R blows donkey balls with integration between 3.1.1 and MYSQL packages. Good one! Hello Python???

Linux with all these languages and C++ could have a a real future with advancement of  these hot libraries. It will greatly impact your future development in trading. Let me know what you think.

Join my FREE newsletter to see how I progrees with this

HOW DO YOU START A PROFITABLE TRADING BUSINESS? Read more NOW >>>

NOTE I now post my TRADING ALERTS into my personal FACEBOOK ACCOUNT and TWITTER. Don't worry as I don't post stupid cat videos or what I eat!

Awesome video presentation on how DOTNET F SHARP handles 3d surface plot with multi threading and parallel asynchronous programming

Awesome video presentation on how DOTNET  F SHARP handles 3d surface plot with multi threading and parallel asynchronous programming

Join my FREE newsletter to see if we implement it  

 

 

HOW DO YOU START A PROFITABLE TRADING BUSINESS? Read more NOW >>>

NOTE I now post my TRADING ALERTS into my personal FACEBOOK ACCOUNT and TWITTER. Don't worry as I don't post stupid cat videos or what I eat!

Youtube Video Demo of DotNet Csharp calling a Matlab plot with no refresh needed

Youtube Video Demo of DotNet Csharp calling a Matlab plot with no refresh needed

Here are the links and downloads:

For c#: stackoverflow.com/questions/8870193/making-an-array-of-random-ints

Dwonload C# Visual Studio 2012 Project solution: RandomArrayMLPlot

For Matlab: http://stackoverflow.com/questions/16832286/matlab-compiler-update-data-into-a-figure-window

Download Matlab project: PlotArray

Update from visitor:

Not sure why you are having issues. You just need to reference the mat locations. The only issues that you should have is that Matlab is slow as shit through the .NET interface. —

We have test this with tick processing which seems that it is able to keep up no problem. We cannot guarantee which depends on the complexity of your algorithm in Matlab. Using Matlab Coder could help or GSL if needed.

Like this? Join our FREE newsletter for other topics like this

 

 

HOW DO YOU START A PROFITABLE TRADING BUSINESS? Read more NOW >>>

NOTE I now post my TRADING ALERTS into my personal FACEBOOK ACCOUNT and TWITTER. Don't worry as I don't post stupid cat videos or what I eat!

Important Videos Coming: R source code for SMA system, Manage position size, Optimize parameters, plot performance metric

Hi there,

Due to popular demand, I’m doing a second quant trading video posting featuring crucial R scripts you need in your HFT (and other quant) trading arsenal. Altogether, it’s composed of R sample scripts and the source PDF with a 25 minute video presentation too.

The most recent posting covers portfolios, statistics and strategy creation and execution. This one gets into finer details including how to:

1. Apply a strategy
2. Update a current portfolio
3. Plot moving average crossover performance
4. Manage position size
5. Plot fixed dollar moving average crossover performance
6. Show strategy transactions
7. Plot average crossover with percent equity entries
8. Pass parameters at the time of application
9. Plot an X month simple moving average system
10. Optimize parameters and plot performance metric

It’s all covered in this free video posting. And as before, this is available to the public only once.

Good trading,
Bryan

P.S. The videos recording will be permanently available to Premium Members
only. Ensure your long-term access to all Premium materials now:

==> http://quantlabs.net/dlg/sell.php?prodData=m%2C3 <==

View more Membership benefits here:

==> http://quantlabs.net/quant-member-benefits/ <==

HOW DO YOU START A PROFITABLE TRADING BUSINESS? Read more NOW >>>

NOTE I now post my TRADING ALERTS into my personal FACEBOOK ACCOUNT and TWITTER. Don't worry as I don't post stupid cat videos or what I eat!

R trading workflow to build strategy, plot, P&L, rules, indicator, signal, portfolio summary ,compute trade/signal statistics Pt 1

R  trading workflow to build strategy, plot, P&L, rules, indicator, signal, portfolio summary ,compute trade/signal statistics Pt 1

R  trading including complete workflow to build strategy, plot, P&L, rules, indicator, signal, portfolio summary ,compute trade/signal statistics Pt 1

This contains the following steps:

create the porfolio and account
Plot something like simple moving average
Create your Buy-Sell rules from creating potential short/long positions to exit position
Calculate P&L and resulting equity
Plot the performance
Initialize your set of orders
Crate a new strategy
Add a potential indicator to the strategy
Add a rule to the strategy
Add a signal to the strategy
Execute the strategy
Update the P&L
Plot the portfolio summary time series
Compute return and trade statistics

Get access to this R source code by being a member

HOW DO YOU START A PROFITABLE TRADING BUSINESS? Read more NOW >>>

NOTE I now post my TRADING ALERTS into my personal FACEBOOK ACCOUNT and TWITTER. Don't worry as I don't post stupid cat videos or what I eat!