Fill from history actions
Fill the trading journal form from the latest closed trade group in a history table on a site you enabled.
What you get
Instead of typing a closed trade by hand, the action reads the newest group of rows in a history table and fills your open or close form from those cells.
How to set one up
Map form fields the same way as fill data, and set how many table rows belong to one trade group. Many history tables use four rows per closed trade.
Open vs close form
Choose open-position or close-position placement so the filled values land on the form you are using 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
}