Re: The Minimum Fields Every Trade Journal Entry Needs
Posted: Wed Sep 23, 2026 9:30 am
Replace the json_payload block in your script with this updated version:
Code: Select all
// Updated JSON Payload: Numeric values are now wrapped in quotes
json_payload = '{' +
'"Date": "' + str.format("{0,date,yyyy-MM-dd HH:mm}", t_entry_time) + '",' +
'"Pair": "' + t_pair + '",' +
'"Setup": "' + t_setup + '",' +
'"Outcome": "' + t_outcome + '",' +
'"Entry": "' + str.tostring(t_entry_price) + '",' +
'"Exit": "' + str.tostring(t_exit_price) + '",' +
'"StopLoss": "' + str.tostring(t_sl) + '",' +
'"Size": "' + str.tostring(t_size) + '",' +
'"RR": "' + str.tostring(realized_rr, "#.##") + '"' +
'}'