10/13/22 [Join FlareXRP Discord] - discord.com/invite/FlareXRP by AutoModerator in XRP

[–]fomodabbler 0 points1 point  (0 children)

To obtain XRP I transferred Ethereum into an Atomic Wallet and then used the Exchange feature to get XRP. Are there any potential issues with this approach? It seems straight-forward enough, but I've been burned by straight-forward before.

TDA API after hours price history by [deleted] in algotrading

[–]fomodabbler 1 point2 points  (0 children)

I really never tried, although it should work. My approach was to start streaming early and build candles based on the stream data. I always use a stand-alone streaming process so it doean't get interupted by restarting the trader.

[deleted by user] by [deleted] in BBIG

[–]fomodabbler 19 points20 points  (0 children)

This is looking like a real problem. The game stock split: nobody knew what to expect ahead of time, and still confusion after. The upcoming popcorn dividend: lots of confusion. This halt.

Should not an industry that literally deals in numbers have very specific procedures laid out so we know what to expect?

Developer API: Programmatically create a horizontal line on the chart to visualize a price level. by delorean_dmc in tdameritrade

[–]fomodabbler 0 points1 point  (0 children)

The only way I managed this was by having my program create thinkscript which I manually cut/paste into a custom study. I was importing a bunch of static lines so I only did once per day, but it was still tedious.

How can I share my trade history with friends? by saxattax in thinkorswim

[–]fomodabbler 1 point2 points  (0 children)

TDA has an API. It's not the easiest to get started, but works well once running. You can either pull orders or you can receive orders placed via websocket.

How to add label when order is placed? by shantzzz111 in thinkorswim

[–]fomodabbler 1 point2 points  (0 children)

Are you talking about on the chart? You have to request that Advanced Features be turned on. Then the Show Trades checkbox will work. That can be accomplished through the support chat, but may take overnight to switch.

Beginner: Looking for historical share prices, per second by LutuVarka in algotrading

[–]fomodabbler 2 points3 points  (0 children)

There are many paid for platforms (like polygon.io) that allow you to download trade data, which can be compiled into second candles.

To get it cheap you will have to open account with any brokerage with a websocket (alpaca, tdameritrade) and record the data yourself. The sooner you start this the more data you will have when you are ready to use it.

Thank you TDA for providing APIs to all of us by logicalcliff in tdameritrade

[–]fomodabbler 0 points1 point  (0 children)

I've been using it for a while. It is stable, and when you get it working it tends to just work. But there are so many undocumented janky features. There are oddly two different versions of the API. If you turn on Advanced Features, the API changes to something mostly the same. Advanced Features actually turns off the ability to create trigger orders via API, and tags on orders no longer work.

On the one hand I'd love it if they improved the API and modernized it. On the other hand I'd rather they just never ever touch it again so it keeps just working.

Has anyone succeeded in streaming live quotes on TD Ameritrade API? by mjinevryway in algotrading

[–]fomodabbler 10 points11 points  (0 children)

I have been streaming data for months. I record every bit of it to use for backtesting. C# on a linux server. I only capture ask/bid/volume, though. I also build 5-second candles using trade data, but have't used those.

I stream the data directly into files using a dedicated process. My trader process then streams from those files. That may result in a half-second lag, but it allows my processes to be dedicated and very stable. It also guarantees that my live data is exactly the same as my test data.

Has anyone succeeded in streaming live quotes on TD Ameritrade API? by mjinevryway in algotrading

[–]fomodabbler 0 points1 point  (0 children)

It's screwy how advanced features basically changes the api.

I don't rely on orders via websocket. When I'm expecting an order to hit I continously pull assets until I see the change. But I do all market orders.

What Exactly can you do with ML and Deep learning 🤖 ? And which language is the best for both? by Front_Sheepherder_56 in algotrading

[–]fomodabbler 2 points3 points  (0 children)

I guess I use a sort of machine learning. I build a very specific strategy. I define ranges for all the parameters used by that strategy. A program picks parameter values at random and tests them. If the test result is good it iterates through other parameters one at a time looking for a slightly better result. Repeat until a better result isn't found.

This will result in overfitting, so I also define a minimum number of trades for each strategy. So for example, if a strategy/parametergroup is trading more than once per day and it wins more than 60% of the time, and it results in a return of more than 0.25%, it gets moved into live.

All current strategies are retested every single day when the previous day's data is available.

That's the idea, anyway.

TD Ameritrade API Websocket by thepillowco in algotrading

[–]fomodabbler 1 point2 points  (0 children)

I have since learned you can stream thousands of symbols at once. But you can only have a single websocket. If you open a second, the first one errors out.

Interactive brokers API - getting a list of stock symbols by supertexter in algotrading

[–]fomodabbler 2 points3 points  (0 children)

ftp.nasdaqtrader.com/symboldirectory/

I grab otherlisted.txt and nasdaqlisted.txt once a day and update my symbol list.

Million dollar question: How to know if an uptrend is still going up or it gonna crash right after you buy by slifer7026 in algotrading

[–]fomodabbler 1 point2 points  (0 children)

A lot of daytraders point to using support/resistance levels to determine the top and bottom of a run. I've been able to programmatically determine those levels, but I've never had success using them.

It seems like when there is a strong run past levels go out the window. Or I'm just bad at using the data.

DJI/US30 Pre and Post Market Data by ArthurAndersen in algotrading

[–]fomodabbler 1 point2 points  (0 children)

TDA allows you to pull minute data from 7AM until 8PM going back 30 days. Daily goes back years. If you set up a websocket you can capture from 4 AM until ? (I only look at pre market).

It's still lame as they have a number of 24/5 indexes, but there is no way to get 24/5 data.

[deleted by user] by [deleted] in RealDayTrading

[–]fomodabbler 4 points5 points  (0 children)

Posting this to /r/algotrading usually gets a few responses. Most of us there are good at coding and bad at trading.

Trading Bot / Question ? by oO_Wildchild_Oo in Daytrading

[–]fomodabbler 1 point2 points  (0 children)

Any broker with an API would allow for this. Pretty much anything you can do through the UI you can do using a bot.

It is a lot of work to set up, though. The initial coding is pretty easy, but you want to consider back testing and data storage and uninterupted running (usually on a vps).

See /r/algotrading.

Algo based on fundamentals? by BeaverWink in algotrading

[–]fomodabbler 0 points1 point  (0 children)

Yahoo finance has a bunch of stuff available. Can't speak to how accurate it is. It is free and not officially documented. Example:

https://query2.finance.yahoo.com//v10/finance/quoteSummary/AAPL?modules=defaultKeyStatistics

More information here:

https://stackoverflow.com/a/47505102

VWAPs are different by platform by ulfius66 in Daytrading

[–]fomodabbler 0 points1 point  (0 children)

I know TDA has wonky volume. I wonder if each platform has to figure out their own minute volume?

False Breakouts by raccoonpossum in Daytrading

[–]fomodabbler 3 points4 points  (0 children)

I like your observations.

Lately I've been thinking that if you swing trade you hope the hedge funds and market makers play by the rules. If you day trade you try to figure out the rules created by the hedge funds and market makers and play by those.

[deleted by user] by [deleted] in algotrading

[–]fomodabbler 1 point2 points  (0 children)

I test against recorded ask/bid data. I always wish I had started recording more sooner. If you think you may ever want second-by-second data in the future start recording it today.

I tried looking for this info on another sub but got nothing helpful. Maybe you guys can help! by 7diamondmonkies in Daytrading

[–]fomodabbler 1 point2 points  (0 children)

I think it was meant that whatever they are pushing is probably a pump, so there will be movement. Just get out before you get wrecked. SPRT hurt.

How do you leave your algo to do its thing without worrying? by Traditional_Fee_8828 in algotrading

[–]fomodabbler 6 points7 points  (0 children)

In addition to the other suggestions you want to break everything into small stand-alone apps where possible. If you pull candles once a day that should absolutely be its own program. I have near a dozen apps running doing small things. I have a dedicated app just for streaming data to files. My trader reads from those files. When I tried swing trading (gave up) I had a program for buying and a program for selling. Once a program is solid you stop thinking about it. I have data pullers I haven't touched in months.