{
  "name": "Track Forex Factory news releases with MyFxBook, Telegram & Google Sheets",
  "nodes": [
    {
      "id": "5849516d-783e-49b5-ba45-898a56b963ad",
      "name": "Google Calendar Trigger",
      "type": "n8n-nodes-base.googleCalendarTrigger",
      "position": [
        -2416,
        1328
      ]
    },
    {
      "id": "2c72ae06-9d5f-4e95-a081-f1ae0e2ad8a5",
      "name": "If",
      "type": "n8n-nodes-base.if",
      "position": [
        -176,
        1104
      ]
    },
    {
      "id": "9709bfa3-8c67-4241-a210-d5bada1e2992",
      "name": "To Number",
      "type": "n8n-nodes-base.set",
      "position": [
        48,
        1184
      ]
    },
    {
      "id": "102b9deb-63e4-4f0d-9115-7d832bb8d359",
      "name": "Get Actual Data?",
      "type": "n8n-nodes-base.if",
      "position": [
        -624,
        1248
      ]
    },
    {
      "id": "37c99ed6-88e6-4ae7-8e9c-699da0fc586c",
      "name": "Delete %KMBT, To Number",
      "type": "n8n-nodes-base.set",
      "position": [
        48,
        992
      ]
    },
    {
      "id": "0d5618f4-73d2-406e-802b-4a218219f54a",
      "name": "'Actual' less than 'Forecast' is good for currency?",
      "type": "n8n-nodes-base.if",
      "position": [
        272,
        1104
      ]
    },
    {
      "id": "a023b738-7da5-4fd0-95c7-01eddb611fa2",
      "name": "IF Has Forecast",
      "type": "n8n-nodes-base.if",
      "position": [
        -2192,
        1328
      ]
    },
    {
      "id": "31aacb00-edce-4081-877f-7c260c73e79e",
      "name": "No Operation, do nothing1",
      "type": "n8n-nodes-base.noOp",
      "position": [
        -1968,
        1424
      ]
    },
    {
      "id": "423ea6ad-4e8a-4aa6-84dd-3793e8eb3b09",
      "name": "Get News Details",
      "type": "n8n-nodes-base.set",
      "position": [
        -1968,
        1232
      ]
    },
    {
      "id": "8274ba89-4bc9-4962-b74b-d79682313b44",
      "name": "Scrape News Link",
      "type": "n8n-nodes-base.airtop",
      "position": [
        -1296,
        1232
      ]
    },
    {
      "id": "728f2ce1-2f1e-44e2-ad37-427c26fb805b",
      "name": "Sticky Note7",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -3024,
        880
      ],
      "parameters": {
        "width": 460,
        "height": 1488,
        "content": "## Get Forex Factory News Release to Telegram, Google Sheets. Record News Data and Live Price from MyFxBook for Affected Currency Pairs.\n### This n8n template demonstrates how to capture Actual Data R"
      }
    },
    {
      "id": "136beb49-ad34-455b-9402-c1a4acde66c4",
      "name": "Wait 5s",
      "type": "n8n-nodes-base.wait",
      "position": [
        -400,
        1424
      ]
    },
    {
      "id": "ffad90f7-f104-476d-a19a-8008d26072d8",
      "name": "Less Good",
      "type": "n8n-nodes-base.telegram",
      "position": [
        496,
        992
      ]
    },
    {
      "id": "3d96d65e-3a67-41ef-8a45-764be02634f3",
      "name": "Greater Good",
      "type": "n8n-nodes-base.telegram",
      "position": [
        496,
        1184
      ]
    },
    {
      "id": "7612d495-cb1a-416f-aa24-bbf839096f1c",
      "name": "Affected Pairs",
      "type": "n8n-nodes-base.set",
      "position": [
        -1744,
        1232
      ]
    },
    {
      "id": "3ef99c01-7aee-4149-b354-7b5bddc0ba11",
      "name": "Split Out",
      "type": "n8n-nodes-base.splitOut",
      "position": [
        -2400,
        2224
      ]
    },
    {
      "id": "af921879-8868-40f0-8f90-ba06b42173cd",
      "name": "News Result",
      "type": "n8n-nodes-base.set",
      "position": [
        688,
        1504
      ]
    },
    {
      "id": "a85a4856-a0ed-4f22-babc-5aaaf63d262a",
      "name": "Base=NewsCurrency, Good",
      "type": "n8n-nodes-base.if",
      "position": [
        -2176,
        1856
      ]
    },
    {
      "id": "5484680b-52a4-451f-80c6-3ee4f7fbbccd",
      "name": "Base=NewsCurrency, Bad",
      "type": "n8n-nodes-base.if",
      "position": [
        -2176,
        2096
      ]
    },
    {
      "id": "d549357c-433e-4be6-8735-ad51beafedf0",
      "name": "Quote=NewsCurrency, Good",
      "type": "n8n-nodes-base.if",
      "position": [
        -2176,
        2368
      ]
    },
    {
      "id": "20d42281-6f8d-41ac-ba77-cf84039c8478",
      "name": "Quote=NewsCurrency, Bad",
      "type": "n8n-nodes-base.if",
      "position": [
        -2176,
        2560
      ]
    },
    {
      "id": "9053be77-6541-418d-8795-becbb253f3c6",
      "name": "No Operation, do nothing",
      "type": "n8n-nodes-base.noOp",
      "position": [
        -1056,
        2032
      ]
    },
    {
      "id": "03b82ff9-884e-4c4b-8c44-c39fc1915729",
      "name": "BUY",
      "type": "n8n-nodes-base.set",
      "position": [
        -1952,
        1792
      ]
    },
    {
      "id": "f3e766f0-c479-4250-8e85-d1dbc94fc5c0",
      "name": "SELL",
      "type": "n8n-nodes-base.set",
      "position": [
        -1952,
        2176
      ]
    },
    {
      "id": "0a1c8793-d73a-4b91-85cc-2dd5ceb3aec2",
      "name": "MyFxBook",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -1728,
        1792
      ]
    },
    {
      "id": "cca1746c-0448-4c5c-9cd9-a4c0fb3a7d1c",
      "name": "MyFxBook2",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -1728,
        2176
      ]
    },
    {
      "id": "0f1d3e71-1d5b-455b-bf76-abf7e0c92987",
      "name": "Get Price",
      "type": "n8n-nodes-base.set",
      "position": [
        -1504,
        1792
      ]
    },
    {
      "id": "9f0fc408-76b4-4bad-8230-c6716b0889ed",
      "name": "Get Price2",
      "type": "n8n-nodes-base.set",
      "position": [
        -1504,
        2176
      ]
    },
    {
      "id": "ab6cc74f-fe0d-4e9e-a76b-1781e1fbac52",
      "name": "Input to Sheets",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        -1280,
        1792
      ]
    },
    {
      "id": "895fda5e-0b67-44fc-accf-227c90801034",
      "name": "Input to Sheets2",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        -1280,
        2176
      ]
    },
    {
      "id": "30258d72-7915-4250-b963-a8fab687f991",
      "name": "Wait",
      "type": "n8n-nodes-base.wait",
      "position": [
        -1520,
        1232
      ]
    },
    {
      "id": "72545cb7-114e-4723-abcf-afae0d0b16e2",
      "name": "Get News Segment",
      "type": "n8n-nodes-base.set",
      "position": [
        -1072,
        1152
      ]
    },
    {
      "id": "21b32eda-5842-497d-b38c-4424b4b1698b",
      "name": "Get Actual Data?2",
      "type": "n8n-nodes-base.if",
      "position": [
        -848,
        1152
      ]
    },
    {
      "id": "d5374b72-624f-4381-b9f7-08d2f060643d",
      "name": "Actual, Forecast Value2",
      "type": "n8n-nodes-base.set",
      "position": [
        -400,
        992
      ]
    },
    {
      "id": "83dbef58-6c66-4964-aa9a-24275490d823",
      "name": "Actual, Forecast Value",
      "type": "n8n-nodes-base.set",
      "position": [
        -400,
        1184
      ]
    }
  ],
  "connections": {
    "If": {
      "main": [
        [
          {
            "node": "Delete %KMBT, To Number",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "To Number",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "BUY": {
      "main": [
        [
          {
            "node": "MyFxBook",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "SELL": {
      "main": [
        [
          {
            "node": "MyFxBook2",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Wait": {
      "main": [
        [
          {
            "node": "Scrape News Link",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Wait 5s": {
      "main": [
        [
          {
            "node": "Scrape News Link",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "MyFxBook": {
      "main": [
        [
          {
            "node": "Get Price",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get Price": {
      "main": [
        [
          {
            "node": "Input to Sheets",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Less Good": {
      "main": [
        [
          {
            "node": "News Result",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "MyFxBook2": {
      "main": [
        [
          {
            "node": "Get Price2",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Split Out": {
      "main": [
        [
          {
            "node": "Base=NewsCurrency, Good",
            "type": "main",
            "index": 0
          },
          {
            "node": "Base=NewsCurrency, Bad",
            "type": "main",
            "index": 0
          },
          {
            "node": "Quote=NewsCurrency, Good",
            "type": "main",
            "index": 0
          },
          {
            "node": "Quote=NewsCurrency, Bad",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "To Number": {
      "main": [
        [
          {
            "node": "'Actual' less than 'Forecast' is good for currency?",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get Price2": {
      "main": [
        [
          {
            "node": "Input to Sheets2",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "News Result": {
      "main": [
        [
          {
            "node": "Split Out",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Greater Good": {
      "main": [
        [
          {
            "node": "News Result",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Affected Pairs": {
      "main": [
        [
          {
            "node": "Wait",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "IF Has Forecast": {
      "main": [
        [
          {
            "node": "Get News Details",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "No Operation, do nothing1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Input to Sheets": {
      "main": [
        [
          {
            "node": "No Operation, do nothing",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get Actual Data?": {
      "main": [
        [
          {
            "node": "Actual, Forecast Value",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Wait 5s",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get News Details": {
      "main": [
        [
          {
            "node": "Affected Pairs",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get News Segment": {
      "main": [
        [
          {
            "node": "Get Actual Data?2",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Input to Sheets2": {
      "main": [
        [
          {
            "node": "No Operation, do nothing",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Scrape News Link": {
      "main": [
        [
          {
            "node": "Get News Segment",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get Actual Data?2": {
      "main": [
        [
          {
            "node": "Actual, Forecast Value2",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Get Actual Data?",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Actual, Forecast Value": {
      "main": [
        [
          {
            "node": "If",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Base=NewsCurrency, Bad": {
      "main": [
        [
          {
            "node": "SELL",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "No Operation, do nothing",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Actual, Forecast Value2": {
      "main": [
        [
          {
            "node": "If",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Base=NewsCurrency, Good": {
      "main": [
        [
          {
            "node": "BUY",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "No Operation, do nothing",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Delete %KMBT, To Number": {
      "main": [
        [
          {
            "node": "'Actual' less than 'Forecast' is good for currency?",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Google Calendar Trigger": {
      "main": [
        [
          {
            "node": "IF Has Forecast",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Quote=NewsCurrency, Bad": {
      "main": [
        [
          {
            "node": "BUY",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "No Operation, do nothing",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Quote=NewsCurrency, Good": {
      "main": [
        [
          {
            "node": "SELL",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "No Operation, do nothing",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "'Actual' less than 'Forecast' is good for currency?": {
      "main": [
        [
          {
            "node": "Less Good",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Greater Good",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}