Step-by-step guides for a trader writing a program: each step shown in all nine languages.
- 1. Connect and look aroundYour first program — connect to Bentrix, list your laboratories and workbenches, and find the workbench you have selected.
- 2. A laboratory to practise inMake a laboratory of generated markets, a workbench in it with two markets, and a chart — everything the other guides use, with no broker and no money.
- 3. Read a chart's candlesRead the candles of any market and interval, page back through history, and take a column such as the closes — always up to the workbench's clock, never past it.
- 4. Ticks and quotesRead the ticks behind the candles and every market's current bid and ask — through the workbench's own addresses.
- 5. Several markets at onceGo through every market of a workbench — its contract, its candles, its own chart — on one clock that moves them all together.
- 6. Move the replay clockStep a laboratory's clock by candles or ticks, forward and back, jump to a moment, and play and pause — what each move does to what a program sees.
- 7. Follow each candle as it closesWait for the next closed candle instead of asking again and again — the same way on a laboratory replay, a paper workbench and a real account's feed.
- 8. Bentrix's indicatorsAttach any of Bentrix's indicators to a chart, change its settings, and read its values — computed by Bentrix exactly as the chart draws them.
- 9. Your own indicatorThree ways to make an indicator of your own — compute it in your program and draw it on the chart, write it in Assay, or (in Python) declare it as a study Bentrix runs.
- 10. Orders and the bookPreview an order's margin, buy and sell at market with a stop and a target, place pending orders, move a stop, trail it, close — and read the book and the deals.
- 11. A strategy of your own, in your own languageA trading loop written in your program — step the clock a candle at a time, read an indicator, decide, send the order — on a laboratory replay, at the speed your program runs.
- 12. Let Bentrix run your strategyWrite a strategy as a document of rules, validate and save it, run it at machine speed with MetaTrader's tester report, then test it over a grid of settings and walk it forward.
- 13. Drawings and alertsDraw a trend line through two candles and set an alert on a price — both carry your program's name, and you can remove them by it.
- 14. A reinforcement-learning environmentTurn a workbench into an environment — observations of the candles and the account, actions, rewards, episodes — for a learning agent of your own.
- 15. When a call is refusedA refusal is an answer, in Bentrix's own words — what each language throws, how to read the sentence, and the refusals a program meets most.
- 16. Generated markets from a recipeRead the presets, preview a recipe, write your own (with regimes), make markets that move together, measure their correlation, make days ahead of time, and give every reinforcement-learning episode a market of its own.
- 17. Import your own filesMake a laboratory of your own data files, read a file before importing it, import candles with a new market's facts, correct a stretch with a second file that has no header, and read the ledger of every import.
- 18. Test a strategy honestlyRun a grid and read it against chance, count every trial, walk it forward, test one run's robustness, compare with another engine, judge a MetaTrader optimisation, test a family of candidates, and let Bentrix's own engine prove itself on your data.