How do I know if i Have discovered an edge?

How do I know if i Have discovered an edge?

Pic related is equity curve (Ignore labels on the side they are wrong I was updating tonnes of graphs and couldn't be bothered to keep changing the labels) X axis is amount of candles strategy has been running for (or time in other words). Y axis is equity curve.

I have overfitted the data to find optimal parameters but before overfitting, and just testing the theory of the strategy, it is still profitable. Pic related is after overfitting but equity curve before overfitting looks similar. See below pics for overfitted

Attached: EquityCurve.png (700x600, 39K)

Here is a graph of one of the parameters being overfitted. X axis is the parameter. Y axis is profitability (again, ignore labels titles on the chart they are wrong)

Attached: Lookback.png (700x450, 33K)

Here is another parameter being overfitted. Y is parameter. X is profitability.

So as you can see on the two graphs above, there are clearly sweet spots for the strategy. However, is the fact that clear sweet spots arise an indication that the strategy is working due to luck and not the theory being correct?

So if i did have an edge, would there not be multiple peaks and less of a clear place where the strategy works? any statistics anons can help me out? thanks

Attached: ProfitPercentTarget.png (700x600, 32K)

*Y is profitability X is parameter
whoops

bump

bump

WTF is an edge?

holy fuck. That's it i'm done. Fuck this place I'm going back to elite trader.

it's when you not nut

I'm doing my masters in Finance and I know a lot about financial markets.
Are you talking about some meme technical analysis?

كيك

*hedge

If you're using OHLC data, make sure you're not leaking future information. Remember that the close doesn't take place until... Well, the close of the trading day (or observational period in your data). You need to shift all your data down one row.

Also I'm under the suspicion you're using an ensemble model (tree based?), looks like you have number of learners and some regularization term as hyperparams.

Keep in mind tree based ensembles CANNOT EXTRAPOLATE meaning they'll fail if presented with data they've never seen before. But this can be overcome by clever feature engineering.

To see if indeed you found alpha, you need to backtest it, mimicking stop losses on each trading period (day, hour, etc). Good luck user

yeh of course im not doing that.

no its nothing fancy. Just brute force try every single param and build a graph. I already have the strategy. Just finding optimal parameters. The question i'm asking is, if my strategy is better than random would the curves look like mine do, or something different? I cba to do a pure random walk and build all the graphs and shit again multiple times.

>To see if indeed you found alpha, you need to backtest it, mimicking stop losses on each trading period (day, hour, etc). Good luck user
Ok I will build this graph now and let me know what you think? just a sec.... backtesting is done in javascript so its slow as fuck lol. cba to change it all to rust...

X axis is timeframe. (1 min candles - 30 min candles). Y axis is equity.

Even though the far right looks bad, It's still 1.012 equity. So 1.2% returns over a few months. No losses on any timeframe. Data was has been overfitted to the 5 min though but even without overfitting i suspect results will be similar but will look something like the graph in my next post

Attached: newplot (7).png (700x600, 43K)

whoops got the pics the wrong way round. This is the one with overfitting. The one above is not.

Attached: newplot (8).png (700x600, 44K)

see you tomorrow

Attached: laughpep.jpg (246x250, 8K)

Nice.

Let me clarify my previous remarks, to backtest you need to simulate entry/exits. You can do this in a table. In Python, you'd pass your observations into your model.predict() and the result would be your entry, exit, hold decision (assuming that's how your model works; in, out). Now, if you're model says to buy, then you'd have to calculate entry price - exit price (the observation/row where model.predict = exit). During the time periods between enter and exit, if price fell

>How do I know if i Have discovered an edge?
That's an easy one. If you're posting about it on biz, you haven't.

Once you have this p/L column correctly made from this, you just sum it up.

Assuming long-only:
P/L = tn_modelsaysSell - t1_modelsaysBuy. Where t1... tn (time that position was held).

If between t1 and tn, priceLow