<p><div><div><div><div data-show-faces="false" data-height="21" data-width="100" data-layout="button_count" data-send="true" data-href="https://www.r-bloggers.com/pivot-billions-and-deep-learning-enhanced-trading-models-achieve-100-net-profit/"></div></div><div></div></div><div></div></div>
<div>
(This article was first published on <strong><a href="https://www.pivotbillions.com/pivot-billions-and-deep-learning-enhanced-trading-models-achieve-100-net-profit/"> R – Pivot Billions</a></strong>, and kindly contributed to <a rel="nofollow" href="https://www.r-bloggers.com/">R-bloggers)</a> </div>
<div>
<div>
<div>
<div data-index="0">
<div>
<div>
<p>Deep Learning has revolutionized the fields of image classification, personal assistance, competitive board game play, and many more. However, the financial currency markets have been surprisingly stagnant. In our efforts to create a profitable and accurate trading model, we came upon the question: what if financial currency data could be represented as an image? The answer: it can!</p>
<p>There are many ways to reshape currency data into an image. However, each requires a great deal of processing power and research. We powered our analysis with Pivot Billions, which allowed us to load and analyze our data quickly and to reshape it into an image using their custom module. While we could have reshaped the data to have the last X ticks for each tick data point or last Y minutes for each minute of the data, we already had working models from our initial research without deep learning.</p>
<blockquote>
<p>See prior posts:</p>
<ul>
<li><a rel="nofollow" href="https://www.pivotbillions.com/streamlining-eda-exploratory-data-analysis-with-pivot-billions-enhances-workflows-in-r/" target="_blank">Pivot Billions and R by going through Streamlining EDA with Pivot Billions enhances workflows in R</a></li>
<li><a rel="nofollow" href="https://www.pivotbillions.com/blazing-fast-financial-backtesting-from-r/" target="_blank">Blazing Fast Financial Backtesting from R</a></li>
<li><a rel="nofollow" href="https://www.pivotbillions.com/powering-insight-through-massive-optimization/" target="_blank">Powering Insight through Massive Optimization</a>.</li>
</ul>
</blockquote>
<p>Therefore we decided to take the signals from one of our models and enhance them with the power of deep learning and AI.</p>
<p>By incorporating Pivot Billions into our Keras workflow, we were immediately able to prepare the data to have the last 100 minutes prior to each of our model’s signals in the row for that respective signal and to setup our training and testing datasets. We then easily loaded this data into keras and worked on developing our deep learning model. Many times we needed to modify which features’ 100 minute histories were being stored and incorporated into our deep learning so we made full use of Pivot Billions’ speed to decrease our iteration turnaround time. After many iterations, we were able to determine a deep learning model that learned our model’s weaknesses and strengths and accurately predicted the profitable signals.</p>
<p>Using this enhanced model we could achieve amazing and much more stable profit throughout our data. We took raw signals that looked like this:</p>
<p><img sizes="(max-width: 854px) 100vw, 854px" src="https://i0.wp.com/www.pivotbillions.com/wp-content/uploads/2018/12/keras_blog03.png?w=450&ssl=1" alt="" class="wp-image-1721" data-recalc-dims="1"></p>
<p>which were profitable but highly volatile due to periods of noisy and underperforming trades, and turned them into this:</p>
<p><img sizes="(max-width: 861px) 100vw, 861px" src="https://i1.wp.com/www.pivotbillions.com/wp-content/uploads/2018/12/keras_blog02.png?w=450&ssl=1" alt="" class="wp-image-1722" data-recalc-dims="1"></p>
<p>The periods of drawdown are greatly reduced and our profitability is much more stable, allowing us to achieve nearly 100% profit in less than 7 months. We’ll continue our research so look forward to another blog post featuring even better AI-enhanced models!</p>
<p> </p>
</div>
</div>
</div>
</div>
</div>
</div>
	<p>
<div>
<div>To <strong>leave a comment</strong> for the author, please follow the link and comment on their blog: <strong><a href="https://www.pivotbillions.com/pivot-billions-and-deep-learning-enhanced-trading-models-achieve-100-net-profit/"> R – Pivot Billions</a></strong>.</div>
<hr>
<a rel="nofollow" href="https://www.r-bloggers.com/">R-bloggers.com</a> offers <strong><a rel="nofollow" href="https://feedburner.google.com/fb/a/mailverify?uri=RBloggers">daily e-mail updates</a></strong> about <a rel="nofollow" href="https://www.r-project.org/" title="The R Project for Statistical Computing">R</a> news and <a rel="nofollow" href="https://www.r-bloggers.com/search/tutorial" title="R tutorials">tutorials</a> on topics such as: <a rel="nofollow" href="https://www.r-bloggers.com/search/data%20science" title="Data science">Data science</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/Big%20Data" title="Big Data">Big Data, <a rel="nofollow" href="https://www.r-users.com/" title="R jobs">R jobs</a>, visualization (<a rel="nofollow" href="https://www.r-bloggers.com/search/ggplot2" title="ggplot and ggplot2 tutorials">ggplot2</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/boxplot" title="Boxplots using lattice and ggplot2 tutorials">Boxplots</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/map" title="Maps and gis">maps</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/animation" title="Animation in R">animation</a>), programming (<a rel="nofollow" href="https://www.r-bloggers.com/search/RStudio" title="RStudio IDE for R">RStudio</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/sweave" title="Sweave and literate programming">Sweave</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/LaTeX" title="LaTeX in R">LaTeX</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/SQL" title="SQL and databases">SQL</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/eclipse" title="Eclipse IDE for R">Eclipse</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/git" title="git and github, Version Control System">git</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/hadoop" title="Large data in R using Hadoop">hadoop</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/Web+Scraping" title="Web Scraping of google, facebook, yahoo, twitter and more using R">Web Scraping</a>) statistics (<a rel="nofollow" href="https://www.r-bloggers.com/search/regression" title="Regressions and ANOVA analysis tutorials">regression</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/PCA" title="principal component analysis tutorial">PCA</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/time+series" title="Time series">time series</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/trading" title="finance trading">trading</a>) and more...
<img width="1" alt="" src="http://feeds.feedburner.com/~r/RBloggers/~4/w7OJDD_Xfs4" height="1"></a></div>