[{"data":1,"prerenderedAt":269},["ShallowReactive",2],{"user-guide:faq/scripting/move-old-scripts-to-wrun":3},{"slug":4,"filePath":5,"frontmatter":6,"rawMarkdown":22,"tree":23},"faq/scripting/move-old-scripts-to-wrun","faq/scripting/move-old-scripts-to-wrun.md",{"title":7,"description":8,"category":9,"kind":10,"keywords":11,"updatedAt":20,"popularity":21},"What happens to scripts written before wrun?","Scripts written in OpenMarket's earlier scripting language have to be migrated to wrun to keep working on the chart. The wrun docs and Copy for LLM help you port them.","scripting","faq",[12,13,14,15,16,17,18,19],"old scripts","migrate","migration","legacy scripts","port","wrun","scripts stopped working","rewrite","2026-10-20",3,"---\ntitle: 'What happens to scripts written before wrun?'\ndescription: \"Scripts written in OpenMarket's earlier scripting language have to be migrated to wrun to keep working on the chart. The wrun docs and Copy for LLM help you port them.\"\ncategory: scripting\nkind: faq\nkeywords: [old scripts, migrate, migration, legacy scripts, port, wrun, scripts stopped working, rewrite]\nupdatedAt: '2026-10-20'\npopularity: 3\n---\n\n# What happens to scripts written before wrun?\n\nwrun is OpenMarket's indicator language. Scripts written in the earlier scripting language have to be migrated to wrun to keep working on the chart.\n\nTo port one:\n\n1. Open the script editor and start a **New indicator**.\n2. Rebuild the logic in wrun: [Your first indicator](/wrun/getting-started/primer-first-indicator) walks through a complete file, and the editor's starters cover common shapes.\n3. Or let an AI assistant do the first pass: give it your old code together with a **Copy for LLM** from the editor, which carries wrun's build rules and API ([Write it with AI](/wrun/getting-started/write-with-ai)).\n\nPublish the new version to share it or to set alerts on it. Questions about one script can go through **Reach out**.\n",{"type":24,"children":25,"data":261,"position":263},"root",[26,29,46,47,62,63,222,223],{"type":27,"value":28},"text","\n",{"type":30,"tagName":31,"properties":32,"children":33,"position":43},"element","p",{},[34],{"type":27,"value":35,"position":36},"wrun is OpenMarket's indicator language. Scripts written in the earlier scripting language have to be migrated to wrun to keep working on the chart.",{"start":37,"end":40},{"line":21,"column":38,"offset":39},1,48,{"line":21,"column":41,"offset":42},149,196,{"start":44,"end":45},{"line":21,"column":38,"offset":39},{"line":21,"column":41,"offset":42},{"type":27,"value":28},{"type":30,"tagName":31,"properties":48,"children":49,"position":59},{},[50],{"type":27,"value":51,"position":52},"To port one:",{"start":53,"end":56},{"line":54,"column":38,"offset":55},5,198,{"line":54,"column":57,"offset":58},13,210,{"start":60,"end":61},{"line":54,"column":38,"offset":55},{"line":54,"column":57,"offset":58},{"type":27,"value":28},{"type":30,"tagName":64,"properties":65,"children":66,"position":219},"ol",{},[67,68,111,112,154,155,218],{"type":27,"value":28},{"type":30,"tagName":69,"properties":70,"children":71,"position":107},"li",{},[72,82,100],{"type":27,"value":73,"position":74},"Open the script editor and start a ",{"start":75,"end":79},{"line":76,"column":77,"offset":78},7,4,215,{"line":76,"column":80,"offset":81},39,250,{"type":30,"tagName":83,"properties":84,"children":85,"position":95},"strong",{},[86],{"type":27,"value":87,"position":88},"New indicator",{"start":89,"end":92},{"line":76,"column":90,"offset":91},41,252,{"line":76,"column":93,"offset":94},54,265,{"start":96,"end":97},{"line":76,"column":80,"offset":81},{"line":76,"column":98,"offset":99},56,267,{"type":27,"value":101,"position":102},".",{"start":103,"end":104},{"line":76,"column":98,"offset":99},{"line":76,"column":105,"offset":106},57,268,{"start":108,"end":110},{"line":76,"column":38,"offset":109},212,{"line":76,"column":105,"offset":106},{"type":27,"value":28},{"type":30,"tagName":69,"properties":113,"children":114,"position":150},{},[115,124,143],{"type":27,"value":116,"position":117},"Rebuild the logic in wrun: ",{"start":118,"end":121},{"line":119,"column":77,"offset":120},8,272,{"line":119,"column":122,"offset":123},31,299,{"type":30,"tagName":125,"properties":126,"children":128,"position":138},"a",{"href":127},"/wrun/getting-started/primer-first-indicator",[129],{"type":27,"value":130,"position":131},"Your first indicator",{"start":132,"end":135},{"line":119,"column":133,"offset":134},32,300,{"line":119,"column":136,"offset":137},52,320,{"start":139,"end":140},{"line":119,"column":122,"offset":123},{"line":119,"column":141,"offset":142},99,367,{"type":27,"value":144,"position":145}," walks through a complete file, and the editor's starters cover common shapes.",{"start":146,"end":147},{"line":119,"column":141,"offset":142},{"line":119,"column":148,"offset":149},177,445,{"start":151,"end":153},{"line":119,"column":38,"offset":152},269,{"line":119,"column":148,"offset":149},{"type":27,"value":28},{"type":30,"tagName":69,"properties":156,"children":157,"position":214},{},[158,167,184,191,207],{"type":27,"value":159,"position":160},"Or let an AI assistant do the first pass: give it your old code together with a ",{"start":161,"end":164},{"line":162,"column":77,"offset":163},9,449,{"line":162,"column":165,"offset":166},84,529,{"type":30,"tagName":83,"properties":168,"children":169,"position":179},{},[170],{"type":27,"value":171,"position":172},"Copy for LLM",{"start":173,"end":176},{"line":162,"column":174,"offset":175},86,531,{"line":162,"column":177,"offset":178},98,543,{"start":180,"end":181},{"line":162,"column":165,"offset":166},{"line":162,"column":182,"offset":183},100,545,{"type":27,"value":185,"position":186}," from the editor, which carries wrun's build rules and API (",{"start":187,"end":188},{"line":162,"column":182,"offset":183},{"line":162,"column":189,"offset":190},160,605,{"type":30,"tagName":125,"properties":192,"children":194,"position":203},{"href":193},"/wrun/getting-started/write-with-ai",[195],{"type":27,"value":196,"position":197},"Write it with AI",{"start":198,"end":201},{"line":162,"column":199,"offset":200},161,606,{"line":162,"column":148,"offset":202},622,{"start":204,"end":205},{"line":162,"column":189,"offset":190},{"line":162,"column":78,"offset":206},660,{"type":27,"value":208,"position":209},").",{"start":210,"end":211},{"line":162,"column":78,"offset":206},{"line":162,"column":212,"offset":213},217,662,{"start":215,"end":217},{"line":162,"column":38,"offset":216},446,{"line":162,"column":212,"offset":213},{"type":27,"value":28},{"start":220,"end":221},{"line":76,"column":38,"offset":109},{"line":162,"column":212,"offset":213},{"type":27,"value":28},{"type":30,"tagName":31,"properties":224,"children":225,"position":258},{},[226,235,252],{"type":27,"value":227,"position":228},"Publish the new version to share it or to set alerts on it. Questions about one script can go through ",{"start":229,"end":232},{"line":230,"column":38,"offset":231},11,664,{"line":230,"column":233,"offset":234},103,766,{"type":30,"tagName":83,"properties":236,"children":237,"position":247},{},[238],{"type":27,"value":239,"position":240},"Reach out",{"start":241,"end":244},{"line":230,"column":242,"offset":243},105,768,{"line":230,"column":245,"offset":246},114,777,{"start":248,"end":249},{"line":230,"column":233,"offset":234},{"line":230,"column":250,"offset":251},116,779,{"type":27,"value":101,"position":253},{"start":254,"end":255},{"line":230,"column":250,"offset":251},{"line":230,"column":256,"offset":257},117,780,{"start":259,"end":260},{"line":230,"column":38,"offset":231},{"line":230,"column":256,"offset":257},{"quirksMode":262},false,{"start":264,"end":266},{"line":38,"column":38,"offset":265},0,{"line":267,"column":38,"offset":268},12,781,1792480133101]