Journal actions / fillFromHistory
Fill from history actions
Fill from history actions use a builtin multi-row parser to read the latest trade group from a history table, then fill the journal form.
Content shape
Same flat field map as fill data, plus groupMaxRows at the top level. Each field selector should target cells within the history table context the runner opens.
groupMaxRows
groupMaxRows controls how many table rows belong to one trade group when resolving the latest closed trade. Typical TradingView history tables use 4.
Open vs close location
Use openPosition or closePosition location to control which form fields are applied after the history group is resolved.
Examples
Reads the latest closed trade group from the TradingView history table and maps symbol and entry price into the close-position journal form. Import this as a full journal action, or copy the content object into an existing fillFromHistory action.
{
"name": "History latest closed trade",
"site": "*.tradingview.com",
"location": "closePosition",
"action": "fillFromHistory",
"iconId": "history",
"content": {
"groupMaxRows": 4,
"symbol": {
"selector": "[data-account-manager-page-id=\"history\"] td[data-label=\"Symbol\"]"
},
"entryPrice": {
"selector": "td[data-label=\"Entry Price\"]"
}
},
"enabled": true,
"sortOrder": 0
}