<turbo-stream action="append" target="posts_list"><template>    <div class="postbit" id="193888" data-post-id="193888">
  <section>
    <div class="post-wrap">


					<div class="post-header">
		        <div class="user-avatar">
		          <img alt="GunnarPDX" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/GunnarPDX/120/18962_2.png" width="120" height="120" />
		        </div>
					
						<div class="user-details">
		          <div class="user-name">
		            <h3>
                  GunnarPDX
                  </h3>
		          </div>
						
						</div>
					
					</div>

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p>Sweet, I have been working on a Robinhood client and some nice financial charts.  Robinhood doesn’t offer stream data and their auth is a bit annoying but they are the only broker with a usable API that offers fractional-shares and zero-commission if you needed that.  I Might try and set up the stock data streaming with some of the charts I made in live view this weekend, still working on adding indicators to them.</p>
<p><a href="https://github.com/GunnarPDX/ex_robinhood" class="onebox" target="_blank" rel="noopener nofollow ugc">https://github.com/GunnarPDX/ex_robinhood</a></p>
<p><a href="https://github.com/GunnarPDX/Nice-Charts" class="onebox" target="_blank" rel="noopener nofollow ugc">https://github.com/GunnarPDX/Nice-Charts</a></p>
<p>          <a href="https://raw.githubusercontent.com/GunnarPDX/Nice-Charts/master/preview.png" target="_blank" rel="noopener nofollow ugc" class="onebox">
            <img src="https://raw.githubusercontent.com/GunnarPDX/Nice-Charts/master/preview.png" width="690" height="199">
          </a>
</p>
<p>Also made a correlation matrix library:</p>
<p><a href="https://github.com/GunnarPDX/Correlations" class="onebox" target="_blank" rel="noopener nofollow ugc">https://github.com/GunnarPDX/Correlations</a></p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="193888" data-batch-url="/posts/batch_likers">
                        2
                      </span>
                      <!-- <span class="thread-count js-solved-indicator" title="Marked as solution"></span> -->
	                </div>
	                <div class="go-to-post">
	                  <a title="Go to post" alt="Go to post" href="https://forum.elixirforum.com/t/stock-trading-in-elixir/34002/32">Post #31</a>
	                </div>
	            </div>
              <div id="likers-container-193888" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="193888"
                     data-batch-url="/posts/batch_likers">
                  <div class="post-likers"></div>
                </div>
              </div>
	        </div>
			

    </div>

    <div class="triangle-top-right type-standard-post cat-standard-post" title="Post #31"></div>
  </section>
</div>
    <div class="postbit" id="193889" data-post-id="193889">
  <section>
    <div class="post-wrap">


					<div class="post-header">
		        <div class="user-avatar">
		          <img alt="evadne" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/evadne/120/13949_2.png" width="120" height="120" />
		        </div>
					
						<div class="user-details">
		          <div class="user-name">
		            <h3>
                  evadne
                  </h3>
		          </div>
						
						</div>
					
					</div>

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p>FYI Interactive Brokers expose a local API via Trader Workstation which can be supervised via IBController. Worth a try.</p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="193889" data-batch-url="/posts/batch_likers">
                        1
                      </span>
                      <!-- <span class="thread-count js-solved-indicator" title="Marked as solution"></span> -->
	                </div>
	                <div class="go-to-post">
	                  <a title="Go to post" alt="Go to post" href="https://forum.elixirforum.com/t/stock-trading-in-elixir/34002/33">Post #32</a>
	                </div>
	            </div>
              <div id="likers-container-193889" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="193889"
                     data-batch-url="/posts/batch_likers">
                  <div class="post-likers"></div>
                </div>
              </div>
	        </div>
			

    </div>

    <div class="triangle-top-right type-standard-post cat-standard-post" title="Post #32"></div>
  </section>
</div>
    <div class="postbit" id="193934" data-post-id="193934">
  <section>
    <div class="post-wrap">


					<div class="post-header">
		        <div class="user-avatar">
		          <img alt="rm-rf-etc" src="/assets/icons/user-9f439610.png" width="120" height="120" />
		        </div>
					
						<div class="user-details">
		          <div class="user-name">
		            <h3>
                  rm-rf-etc
                    <span class="op-star" title="Thread Starter">
                      <img alt="OP" class="op-star-icon" src="/assets/thread-icons/thread-icon-thread-starter-df91e872.png" />
                    </span>
                  </h3>
		          </div>
						
						</div>
					
					</div>

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p>Thanks <a class="mention" href="/u/evadne" rel="nofollow">@evadne</a>, I didn’t know about this. I will give it a test drive.</p>
<p><a class="mention" href="/u/gunnarpdx" rel="nofollow">@GunnarPDX</a> thanks, I was thinking about writing a charting client to help me verify my data is right, but I’ll try yours first. Does it currently support autoscaling and repaint on update? Will take a look.</p>
<p>I wrote a small module to encapsulate the functionality for forming candlesticks in whatever given timeframe. Will add tests. The idea is that you use this module to generate your chart data from either full tick data or from lower timeframes.<br>
<a href="https://github.com/rm-rf-etc/ohlcv_chart" class="onebox" target="_blank" rel="noopener nofollow ugc">https://github.com/rm-rf-etc/ohlcv_chart</a></p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="193934" data-batch-url="/posts/batch_likers">
                        0
                      </span>
                      <!-- <span class="thread-count js-solved-indicator" title="Marked as solution"></span> -->
	                </div>
	                <div class="go-to-post">
	                  <a title="Go to post" alt="Go to post" href="https://forum.elixirforum.com/t/stock-trading-in-elixir/34002/34">Post #33</a>
	                </div>
	            </div>
              <div id="likers-container-193934" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="193934"
                     data-batch-url="/posts/batch_likers">
                  <div class="post-likers"></div>
                </div>
              </div>
	        </div>
			

    </div>

    <div class="triangle-top-right type-standard-post cat-standard-post" title="Post #33"></div>
  </section>
</div>
    <div class="postbit" id="193937" data-post-id="193937">
  <section>
    <div class="post-wrap">


					<div class="post-header">
		        <div class="user-avatar">
		          <img alt="GunnarPDX" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/GunnarPDX/120/18962_2.png" width="120" height="120" />
		        </div>
					
						<div class="user-details">
		          <div class="user-name">
		            <h3>
                  GunnarPDX
                  </h3>
		          </div>
						
						</div>
					
					</div>

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p><a class="mention" href="/u/rm-rf-etc" rel="nofollow">@rm-rf-etc</a> They currently have autoscaling and should repaint on update with a few small changes.  Right now a lot of stuff is hardcoded so you will have to add some props for passing data in.  I’ll make an effort to go in and add that stuff since I’ll be using them as real components soon.</p>
<p>The data format I’m using is:</p>
<pre data-code-wrap="js"><code class="lang-js">[ {
    "date" : "2020-10-30 16:00:00",
    "open" : 388.625000000000,
    "low" : 388.290000000000,
    "high" : 389.190000000000,
    "close" : 388.790000000000,
    "volume" : 41147080
} ]
</code></pre>
<p>everything else like axis scaling and bar color gets handled by the component.</p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="193937" data-batch-url="/posts/batch_likers">
                        1
                      </span>
                      <!-- <span class="thread-count js-solved-indicator" title="Marked as solution"></span> -->
	                </div>
	                <div class="go-to-post">
	                  <a title="Go to post" alt="Go to post" href="https://forum.elixirforum.com/t/stock-trading-in-elixir/34002/35">Post #34</a>
	                </div>
	            </div>
              <div id="likers-container-193937" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="193937"
                     data-batch-url="/posts/batch_likers">
                  <div class="post-likers"></div>
                </div>
              </div>
	        </div>
			

    </div>

    <div class="triangle-top-right type-standard-post cat-standard-post" title="Post #34"></div>
  </section>
</div>
    <div class="postbit" id="206811" data-post-id="206811">
  <section>
    <div class="post-wrap">


					<div class="post-header">
		        <div class="user-avatar">
		          <img alt="rm-rf-etc" src="/assets/icons/user-9f439610.png" width="120" height="120" />
		        </div>
					
						<div class="user-details">
		          <div class="user-name">
		            <h3>
                  rm-rf-etc
                    <span class="op-star" title="Thread Starter">
                      <img alt="OP" class="op-star-icon" src="/assets/thread-icons/thread-icon-thread-starter-df91e872.png" />
                    </span>
                  </h3>
		          </div>
						
						</div>
					
					</div>

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p>I’m working on something pretty fun right now, it’s a rust NIF for performant chart analysis. PineScript is a really efficient language for testing ideas, but its usefulness falls off as soon as you get past the basics, so I think there’s a neat opportunity to build an equivalent in elixir and rust.</p>
<p>The way that PineScript works under the hood is that it generates a table, where every candlestick in the chart is a new row in the table, and each variable in your script generates a column in the table. So I prototyped a fixed-length rolling table in elixir, but I think the performance boost from using rust and a NIF would be worthwhile. I’ve also wanted the opportunity to write a NIF, and just needed a use case I’m invested in.</p>
<p>Some additional motivation: PineScript also has zero support for strategies that involve more than one asset, so strategies like stat-arb are out of the question. I’m planning on solving that, as well as portfolio-wide testing.</p>
<p>I’ve spent a lot of time with QuantConnect lately but I keep coming back to elixir because python and C# both irritate me.</p>
<p>I will probably reimplement the trade indicators in rust and provide a NIF for elixir. I’m also thinking about the potential to write elixir macros to make indicators and trading rules really concise, but I don’t know if that will be warranted, I’ll see when I get there.</p>
<p>Just wanted to share this in case anybody is interested.</p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="206811" data-batch-url="/posts/batch_likers">
                        6
                      </span>
                      <!-- <span class="thread-count js-solved-indicator" title="Marked as solution"></span> -->
	                </div>
	                <div class="go-to-post">
	                  <a title="Go to post" alt="Go to post" href="https://forum.elixirforum.com/t/stock-trading-in-elixir/34002/36">Post #35</a>
	                </div>
	            </div>
              <div id="likers-container-206811" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="206811"
                     data-batch-url="/posts/batch_likers">
                  <div class="post-likers"></div>
                </div>
              </div>
	        </div>
			

    </div>

    <div class="triangle-top-right type-standard-post cat-standard-post" title="Post #35"></div>
  </section>
</div>
    <div class="postbit" id="349835" data-post-id="349835">
  <section>
    <div class="post-wrap">


					<div class="post-header">
		        <div class="user-avatar">
		          <img alt="maz" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/maz/120/6075_2.png" width="120" height="120" />
		        </div>
					
						<div class="user-details">
		          <div class="user-name">
		            <h3>
                  maz
                  </h3>
		          </div>
						
						</div>
					
					</div>

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p>Did you get anywhere with your NIF?</p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="349835" data-batch-url="/posts/batch_likers">
                        0
                      </span>
                      <!-- <span class="thread-count js-solved-indicator" title="Marked as solution"></span> -->
	                </div>
	                <div class="go-to-post">
	                  <a title="Go to post" alt="Go to post" href="https://forum.elixirforum.com/t/stock-trading-in-elixir/34002/37">Post #36</a>
	                </div>
	            </div>
              <div id="likers-container-349835" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="349835"
                     data-batch-url="/posts/batch_likers">
                  <div class="post-likers"></div>
                </div>
              </div>
	        </div>
			

    </div>

    <div class="triangle-top-right type-standard-post cat-standard-post" title="Post #36"></div>
  </section>
</div>
    <div class="postbit" id="349841" data-post-id="349841">
  <section>
    <div class="post-wrap">


					<div class="post-header">
		        <div class="user-avatar">
		          <img alt="krishna_vaguelyright" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/krishna_vaguelyright/120/36830_2.png" width="120" height="120" />
		        </div>
					
						<div class="user-details">
		          <div class="user-name">
		            <h3>
                  krishna_vaguelyright
                  </h3>
		          </div>
						
						</div>
					
					</div>

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p>This is super interesting. I have a lot of experience with understanding markets, the technicals &amp; various back-testing strategies &amp; the right way to do them. For example any strategy that doesnt account for slippage &amp; charges is bound for failure.</p>
<p>I understand this is really old from a time when Elixir received a lot of interest from the Crypto world. With crypto no longer in trend, it doesnt make sense. But would love to get to understand this in depth once I have learnt enough Elixir.</p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="349841" data-batch-url="/posts/batch_likers">
                        0
                      </span>
                      <!-- <span class="thread-count js-solved-indicator" title="Marked as solution"></span> -->
	                </div>
	                <div class="go-to-post">
	                  <a title="Go to post" alt="Go to post" href="https://forum.elixirforum.com/t/stock-trading-in-elixir/34002/38">Post #37</a>
	                </div>
	            </div>
              <div id="likers-container-349841" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="349841"
                     data-batch-url="/posts/batch_likers">
                  <div class="post-likers"></div>
                </div>
              </div>
	        </div>
			

    </div>

    <div class="triangle-top-right type-last-post cat-last-post" title="Last post!"></div>
  </section>
</div>
</template></turbo-stream><turbo-stream action="replace" target="load-more-container"><template><div id="load-more-container" class="load-more-container">
    <span class="all-loaded">— All posts loaded —</span>
</div></template></turbo-stream>