Common to both tabs - one Upstox app, one connection. Saving credentials or connecting here
also writes the same key/secret/token into 1050_strategy_algo's own .env,
so its runner.py (started from the 1050 Strategy tab, or run separately from a
terminal) has a working token too, without connecting twice.
1. Register (or reuse) an Upstox app with this exact redirect URI. Open Upstox developer console →
2. Paste that app's API key and secret:
3. Connect (Upstox tokens expire daily - repeat this each trading morning):
| Date | P(up) | Predicted | Actual | Correct |
|---|
A separate, generic model from the 10:50→15:10 predictor above: given the history of candles at the symbol/timeframe you pick, predicts whether the next candle closes above the current one. 5-min and especially 1-min candles mean a lot of rows - training on those can take several minutes; coarser timeframes (30min/1h/1day) train in seconds. MCX commodities are a single expiring futures contract, not a continuous series, so they only have a few months of history regardless of timeframe.
1. Pick a symbol. New to this dashboard? Click "Fetch history" once first (can take a minute or two) - "Refresh recent data" after that just tops up the last few days.
2. Train, then predict:
Click "Refresh recent data" then "Check recent candles" to see how the trained model scores against the freshest real candles fetched for this symbol.
| Candle time | Close | P(up) | Predicted | Actual | Correct | Test type |
|---|
Ranked by how much the model leans on each one. Longer bar = more weight; each row explains what it measures and, where the model type allows it, which way it's currently pushing the prediction.