Details
-
AboutFull stack Angular / Node / C#
-
SkillsAngular / Node / C# Dev, and many more
-
LocationBrooklyn, New York
-
Github
Joined devRant on 8/1/2020
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
-
@DamienHarris
I've attempted to use MQL4/5 for development of trading strategies but I personally feel these technologies are not suitable for what I'm trying to do. I'll encounter many limitations later on in the implementation of my full vision. For this reason I've ultimately decided to build custom tools. Reach out if you'd like to chat more.
Telegram: @parliament718 -
@bosi
For "walk-forward optimization" I was referring to this https://en.wikipedia.org/wiki/...
It's an optimization strategy, which breaks up your test data into segments to avoid curve fitting. So if you train your model on a specific period of time, and determine some optimal inputs, you cannot just go back and trade/backtest on that same segment of data using those inputs (that's curve fitting). So if you have 1 year of data, you cannot train and trade your model on that whole year. You can train-only in the first 6 months and then trade for the next 6 months (with more data it becomes a rolling window of re-training the model every X months, but not using that information to trade until the next period).
I do hope you get rich, both in your bank and in your mind! : ) -
@bosi
That breakout moment can happen and be over with in just 15 minutes, which is why ANY delay in information is unacceptable to me.
My strategy uses zero indicators, just naked candlestick charts.
Btw sorry if this sounded like an attack on your model, not my intent.
I just want you to be aware of this, as I consider it a mistake I made a long time ago (relying on any indicators and their potential inputs as having some kind of secret sauce combination that is profitable)
I may be wrong : )
All the best -
@bosi
They also tell nothing about the market structure, current dynamic, or market participant psychology.
If your assumptions about moving average crosses stopped playing out for your next 30 trades, could you say why?
Maybe you could point to a ranging market as the culprit (and you would probably be correct), but then you’d be using information you received via your eyes by looking at the chart. But how can your algo tell if it's ranging?
No price-derived calculation could tell you that the market is ranging without a delay (the “lookback period”).
And that same delay would have you miss the moment it breaks out. However, it’s easy to spot a ranging market with our eyes and to pinpoint the price levels at which we could consider the market “breaking out” of the range. All you have to do is look at the price action and draw a box containing the range. -
@bosi
Watch out for curve fitting. If you’ve run 1000s of simulations to find good values for your algo inputs, then you may be curve fitting.
To avoid this you’ll want to make sure you’re doing “walk-forward simulations” instead, using in-sample data to train your models, and new, out of sample data to verify them.
You probably already knew this :)
However, despite all your efforts to optimize parameters, and even if you get your model profitable, I agree that it may eventually simply stop working.
That alone wouldn’t be your main problem; the main problem would be that you won’t know WHY it stopped working. Would you just re-optimize parameters?
It’s my personal belief that there is no “edge” to be gained from ANY price-derived indicator.
That includes MA, stochastics, RSI, bollingers, etc, just about any indicator that’s derived from the price is not giving any new information that is not already reflected in the price alone. -
@bosi
I did get the feeling that your bot is not very complex. This is why you're able to get by with minimal user interface. As complexity increases, it becomes harder and harder to ascertain whether or not your bot is doing what you think it is doing in its little blackbox without being able to see it visually. -
@Root
Fortunately, I only trade with brokers in regulated territories. “Stop hunting” is generally a myth created by traders who consistently lose money and look for an excuse. Due to fierce competition in the broker space, smart brokers know not to do this because customers can and do catch on pretty quickly and they’ll start losing customers and/or lose their license once it's reported to regulators. It’s not hard for customers to catch on to artificial pricing pushed to specific clients, all you have to do is open multiple accounts and find evidence of such price discrepancies to land your broker in hot water (if they're regulated).
In any case, an automated bot technically does not need to use stop loss orders at all, since it can always react with a market order in milliseconds. -
@Root
Tell me more : ) -
I hear you man. To keep my sanity, I now just say "make a Jira ticket with steps to reproduce". Yeah, I'm that guy.
-
@bosi
I see. So your algo doesn't require any visual component as it's just based on the output numbers of various calculation.
My algo is based on visual price action analysis. It trades like a manual trader would. -
@nitwhiz
Manual trading can still be immensly profitable at the individual level, despite the proliferation of algorithms. -
@bosi
Ah yes, I’m a UI and data viz developer by day, so I might have a bit of an edge there. We should talk more about your needs for the algo and whether my platform can help if I let you into a closed beta.
It has a built-in simulator to run backtests but only supports my broker Oanda for live or practice trading.
The platform is built around a plug-in system for algos and indicators, so you can plug-in your own Typescript/Javascript modules that can access trading and charting APIs and more.
If you're able to build your own components, and hopefully contribute some back to the platform I'd be happy to consider giving you access. -
@FelisPhasma
I attempted to build a bot like this early in my career about a decade ago; that’s actually how I got into programming in the first place. However, I didnt know enough at the time so I failed to finish the system or make it profitable. Now a decade later, and with that much more development experience, I decided to give it another shot. It's never too late! -
@neeno
I would recommend going with Auth0 or Firebase Auth if you have a real world use case. I've rolled my own authentication several times early in my career and it can turn from week to months of works and still not be as secure. Security is hard. Unless you're approaching this from a purely educational perspective to learn about cryptography etc, I would suggest using a security service. There are many articles and blog posts written by the companies themselves about the various aspects of authentication, depending on your use case. In my experience, Auth0 has been a neccesary pain in the arse for many of the companies I've worked for. For my personal projects, I've found Firebase Auth simpler
Sorry if that doesn't answer your question. If you just want to roll one anyways, just find articles describing auth implementations in the language you already know. The concepts will be similar. The best way to learn is to try to implement one. Good luck