# Cycle Tools - App Manual # Data Management How to manage data in the cycles app for analysis # Integrated Datafeeds The cycle toolbox has integrated external data-sources for end-of-day datasets. It includes major global stocks, market indices, crypto-currencies and forex data. ### **Stock market data** The market type ID to get major global stocks and indices datasets is **YFI**. Use Yahoo Finance for symbol search. For weekly data add -W to the symbol. Example symbols are:
**Symbol****Name****Cycle Tools Symbol ID****Link**
^GSPCS&P 500 Index^GSPC:YFI[Open](https://cycle.tools/cyclescanner/%5EGSPC:YFI)
^GSPC-WS&P 500 Index Weekly^GSPC-W:YFI[Open](https://cycle.tools/cyclescanner/%5EGSPC-W:YFI)
CL=FOilCL=F:YFI[Open](https://cycle.tools/cyclescanner/CL=F:YFI)
ES=FE Mini FuturesES=F:YFI[Open](https://cycle.tools/cyclescanner/ES=F:YFI)
DX-Y.NYB-WUS Dollar Index WeeklyDX-Y.NYB-W:YFI[Open](https://cycle.tools/cyclescanner/DX-Y.NYB-W:YFI)
GBPUSD=XGBP/USD Currency in USDGBPUSD=X:YFI[Open](https://cycle.tools/cyclescanner/GBPUSD=x:YFI)
---
### **Crypto-currency datasets** The market type ID to get crypto datasets is **CDS**. Generic symbol format is: \[FromSymbol\]-\[ToSymbol\]-\[Exchange\] Short usage is: \[Symbol\] – in this case ToSymbol is USD and the exchange is CCCAGG index \*. Example symbols are:
**Symbol****Name****Cycle Tools Symbol ID****Link**
ETHEthereum USDETH:CDS[Open](https://cycle.tools/cyclescanner/ETH:CDS)
BTCBitcoin USDBTC:CDS[Open](https://cycle.tools/cyclescanner/BTC:CDS)
LTCLitecoin USDLTC:CDS[Open](https://cycle.tools/cyclescanner/LTC:CDS)
BTC-EUR-CCCAGGBitcoin EURBTC-EUR-CCCAGG:CDS[Open](https://cycle.tools/cyclescanner/BTC-EUR-CCCAGG:CDS)
ETH-JPY-COINBASEEtheruem JPY at CoinbaseETH-JPY-COINBASE:CDS[Open](https://cycle.tools/cyclescanner/ETH-JPY-COINBASE:CDS)
---
### **Managed Forex datasets** The market type ID to get managed forex currency pairs is **FX**. Generic symbol format is: \[FromSymbol\]\[ToSymbol\]
**Symbol****Name****Cycle Tools Symbol ID****Link**
EURUSDEUR USDEURUSD:FX[Open](https://cycle.tools/cyclescanner/EURUSD:FX)
USDJPYUSD JPYUSDJPY:FX[Open](https://cycle.tools/cyclescanner/USDJPY:FX)
EURGBPEUR GBPEURGBP:FX[Open](https://cycle.tools/cyclescanner/EURGBP:FX)
---
### **Economic datasets** (FRED) Access to the economic data services of the Economic Research Division of the Federal Reserve Bank of St. Louis. The market type ID to get FRED data is **FDS**. Online symbol search via FRED: [https://fred.stlouisfed.org/](https://fred.stlouisfed.org/) Example symbols are:
**Symbol****Name****Cycle Tools Symbol ID****Link**
VIXCLSCBOE Volatility IndexVIXCLS:FDS[Open](https://cycle.tools/cyclescanner/VIXCLS:FDS)
VXDCLSDJIA Volatility IndexVXDCLS:FDS[Open](https://cycle.tools/cyclescanner/VXDCLS:FDS)
T5YIFR5-Year Forward Inflation Expectation RateT5YIFR:FDS[Open](https://cycle.tools/cyclescanner/T5YIFR:FDS)
STLFSI2-WSt. Louis Fed Financial Stress Index (Weekly) [More dataset details](https://fredblog.stlouisfed.org/2020/03/the-st-louis-feds-financial-stress-index-version-2-0/)STLFSI2-W:FDS[Open](https://cycle.tools/cyclescanner/STLFSI2-W:FDS)
---
### **Quandl datasets** The market type ID to get free quandl datasets is **QDS**. Generic symbol format to load free quandl data via the time series API: \[Quandl database code\]-\[Quandl dataset code\]-\[column\]-\[collapse\] \[column\] (optional) Ensure that you pick that correct column number. The column number is different for each dataset. \[collapse\] (optional):
none daily weekly monthly quarterly annualChange the sampling frequency of the returned data. Default is `none`; i.e., data is returned in its original granularity.
Example symbols are:
**Database-Symbol****Name****Cycle Tools Symbol ID****Link**
CHRIS-EUREX\_FDAX1-4DAX Futures, Continuous Contract #1 (FDAX1) (Front Month), EUREX, SettleCHRIS-EUREX\_FDAX1-4:QDS[Open](https://cycle.tools/cyclescanner/CHRIS-EUREX_FDAX1-4:QDS)
FSE-VOW3\_XVolkswagen AG, Stock Price, Frankfurt Stock ExchangeFSE-VOW3\_X:QDS[Open](https://cycle.tools/cyclescanner/FSE-VOW3_X:QDS)
BSE-SensexBombay Stock Exchange – SENSEX IndexBSE-Sensex:QDS[Open](https://cycle.tools/cyclescanner/BSE-SENSEX:QDS)
LBMA-Gold-2Gold London Fixing USD PM (London Bullion Market Association) [More dataset details](https://www.quandl.com/data/LBMA/GOLD-Gold-Price-London-Fixing)LBMA-Gold-2:QDS[Open](https://cycle.tools/cyclescanner/LBMA-Gold-2:QDS)
LBMA-Gold-2-weeklyGold London Fixing USD PM weekly dataLBMA-Gold-2-weekly:QDS[Open](https://cycle.tools/cyclescanner/LBMA-Gold-2-weekly:QDS)
LBMA-Gold-4Gold London Fixing GBP PM (London Bullion Market Association) [More dataset details](https://www.quandl.com/data/LBMA/GOLD-Gold-Price-London-Fixing)LBMA-Gold-4:QDS[Open](https://cycle.tools/cyclescanner/LBMA-Gold-4:QDS)
LBMA-Silver-3Silver London Fixing EUR (London Bullion Market Association) [More dataset details](https://www.quandl.com/data/LBMA/SILVER-Silver-Price-London-Fixing)LBMA-Silver-3:QDS[Open](https://cycle.tools/cyclescanner/LBMA-Silver-3:QDS)
ECB-EURJPY-1EUR vs JPY Exchange Rate (European Central Bank) [More dataset details](https://www.quandl.com/data/ECB/EURJPY-EUR-vs-JPY-Foreign-Exchange-Reference-Rate)ECB-EURJPY:QDS[Open](https://cycle.tools/cyclescanner/ECB-EURJPY:QDS)
CHRIS-ICE\_CC5-4Cocoa Futures, Continuous Contract (Settle) [More dataset details](https://www.quandl.com/data/CHRIS/ICE_CC1-Cocoa-Futures-Continuous-Contract)CHRIS-ICE\_CC5-4:QDS[Open](https://cycle.tools/cyclescanner/CHRIS-ICE_CC5-4:QDS)
CHRIS-ICE\_B1-4Brent Crude Futures, Continuous Contract (Settle) [More dataset details ](https://www.quandl.com/data/CHRIS/ICE_B1-Brent-Crude-Futures-Continuous-Contract)CHRIS-ICE\_B1-4:QDS[Open](https://cycle.tools/cyclescanner/CHRIS-ICE_B1-4:QDS)
CHRIS-ICE\_B1-4-weeklyBrent Crude Futures, Continuous Contract (Settle) - weeklyCHRIS-ICE\_B1-4-weekly:QDS[Open](https://cycle.tools/cyclescanner/CHRIS-ICE_B1-4-weekly:QDS)
\*) Data is sourced from CryptoCompare. If no exchange is specified the CCCAGG index data will be returned. The Crypto Coin Comparison Aggregated Index (“CCCAGG”) refers to the real-time index calculation methodology, the purpose of which is to show the best price estimation for crypto traders and investors to value their portfolio at any time. It aggregates transaction data of over 70 exchanges,using 24 hour volume weighted average. The CCCAGG is calculated for each crypto coin in eachcurrency it is trading in. We provide the data from CryptoCompare to the community based on their license without any additional change or charge (for research, software/applicationdevelopment, portfolio valuation, etc.), and is under the Creative Commons Attribution-NonCommercial3.0 Unported (CC BY-NC 3.0) license ( https://creativecommons.org/licenses/by-nc/3.0/ ). # Upload your own data You can upload your own datasets as CSV files and save them in the cycles app. A CSV ("comma-separated values") file is a delimited text file that uses a comma to separate values.

You can always manage (add, remove, update) your own saved data-sets in the settings area: [https://cycle.tools/settings/datasets](https://cycle.tools/settings/datasets)

To upload new data series, go to the Settings -> MyDatasets area and click "Upload New". You need to ensure the right format of your text file. The first line always needs to include the header "time, value" indicating each following line has a text for the date/time and a numeric value (e.g. close). --- ##### ##### EOD ```C time, value 2019-04-11, 80.01 2019-04-12, 82.1 ```

Use the [attached file eod\_upload\_test.csv](https://docs.cycle.tools/attachments/8) shown in the navigation panel as template with daily data.

--- ##### ##### Intraday ```C time, value 2019-04-11 13:01, 2301 2019-04-12 13:02, 2320 ```

Please see and test the [attached file](https://docs.cycle.tools/attachments/7) (eurusd-1h-example.csv) shown in the navigation panel as template with 1h intraday data for the EURUSD.

--- ##### ##### Generic date formats
\[yy\]yy-mm-dd yyyymmdd
# Cycle Scanner How to use the Cycle Scanner or Cycle Finder # Settings Panel The following video is an How-To walk through on the configuration parameters of the settings panel in the Cycle Scanner window. This video is based on our webinar series and has special focus on: \* Cycle Skew \* Power Spectrum \* Profile 1 / Profile 2 (P1, P2) # Asymmetric Business Cycles and Cycle Skewness {{@24}} # Integrations How integrate the cycle analysis API with 3rd party applications and charting platforms (Info: Integration package is not available in FSC membership. Requires WTT account.) # Cycle Analysis API #### API Documentation

You can visit and **browse our interactive API** docs via ReDoc (read only): [api.cycle.tools/apidocs](https://api.cycle.tools/apidocs) Or **test the interactive API console** with your API key in the swagger console: [api.cycle.tools/specs](https://api.cycle.tools/specs)

To generate your API key, go to: [https://cycle.tools/account/api](https://cycle.tools/account/api "API Key")

Requires an whentotrade "Analyst" subscription level. API endpoints are not available in the "Basic" or "FSC membership" version.

#### API Limits API requests limits for the **Analyst** package are:
**Request Period****Limit**
1 second50
1 minute200
1 hour1000
1 day5000
30 days / 1 month20000
If you need more requests, please contact us via eMail. # Python Integration

Ensure you use your personal API key. You can set your API key in the [cycle.tools](https://cycle.tools) console. Replace YOUR\_API\_KEY in the examples with your personal key.

#### **CycleExplorer Endpoint** Use this endpoint to post raw data series array to the endpoint. The example will pull eod data from yahoo api first and send to the cycle analsis api to get current dominant cycle: ```Python import requests import json import yfinance as yf #put your cycle.tools API key cycleAPIkey = 'YOUR_API_KEY' #set cycle.tools API url endpoint url = f"https://api.cycle.tools/api/cycles/CycleExplorer?dynamicInSampleMethod=true&api_key={cycleAPIkey}"; # set the yahoo ticker symbol, eg SP500=^GSPC tickerSymbol = "^GSPC"; #get data on this ticker tickerData = yf.Ticker(tickerSymbol) #get the historical prices for this ticker tickerDf = tickerData.history(interval="1d", period="5y") #get close data as json doubele array jsondata = tickerDf['Close'].to_json(orient='records') #call CycleExplorer endpoint to get current dominant cycle r= requests.post(url, data=jsondata, headers={'Content-Type':'application/json'}) #get the dominant cycle return data dominantCycle = r.json() dominantCycleLength = dominantCycle['length'] #print the current dominant cycle length print(f"Dominant Cycle Length: {dominantCycleLength}") #print the json the results print() print(json.dumps(r.json(), indent=4, sort_keys=True)) ``` **Example output:** Dominant Cycle Length: 165.0 **JSON response:** ```JSON { "amplitude": 146.00174004966559, "analysisEndDate": "2020-05-03T17:02:20.6771012+00:00", "analysisStartDate": "0001-01-01T00:00:00", "barsAvailable": 0, "barsused": 750, "currentPrice": 2830.71, "cycleProfitability": 0.75, "lastlow": -5.6668009766674174, "lasttop": -88.16680097666742, "length": 165.0, "license": "api.cycle.tools :You agree to the API usage terms and conditions from host ", "minbaroffset": 170.66680097666742, "nextlow": 159.33319902333258, "nexttop": 76.83319902333258, "phase": -1.3169251392646713, "phase_score": -100, "phase_status": "BOTTOM_Departure", "phasingScore": 135, "statusCode": null, "symbol": "manual", "timeSeries": [] } ``` #### **MarketCycles Endpoint** Use this endpoint for known symbols IDs. The example will use the integrated crypto datafeed to get the current dominant cycle in Bitcoin: ```Python import requests import json #put your cycle.tools API key cycleAPIkey = 'YOUR_API_KEY' symbol="BTC" # Bitcoin market="CDS" # Crypto #set cycle.tools API url endpoint url = f"https://api.cycle.tools/api/cycles/MarketCycles/{symbol}?marketType={market}&api_key={cycleAPIkey}" #call MarketCycles endpoint to get current dominant cycle r= requests.get(url) #get the dominant cycle return data marketCycle = r.json() marketCycleLength = marketCycle['length'] #print the current dominant cycle length print(f"Dominant Cycle Length: {marketCycleLength}") #print the json the results print() print(json.dumps(r.json(), indent=4, sort_keys=True)) ``` **Example output:** Dominant Cycle Length: 39.0 **JSON response:** ```JSON { "amplitude": 418.6291962393411, "analysisEndDate": "2020-05-01T00:00:00", "analysisStartDate": "2016-11-28T00:00:00Z", "barsAvailable": 750, "barsused": 750, "currentPrice": 8728.58, "cycleProfitability": 0.7105263157894737, "lastlow": -7.758826601781372, "lasttop": -27.258826601781372, "length": 39.0, "license": "****** : You agree to the API usage terms and conditions from api.cycle.tools", "minbaroffset": 46.75882660178137, "nextlow": 31.241173398218628, "nexttop": 11.741173398218628, "phase": -0.15968528545011673, "phase_score": 40, "phase_status": "Uptrend_Neutral", "phasingScore": 0, "statusCode": "OK", "symbol": "BTC", "timeSeries": [] } ``` # Excel Workbooks #### How to use cycle analysis with Microsoft Excel via the Cycle Tools API #### Dominant Market Cycles The **MarketCycles** API endpoint allows you to do dominant cycle analysis for stocks, index data, forex and commodities without the need to subscribe for data-feeds and complex tooling integration. The endpoint gives you all dominant cycle information, including full time-series charting data with a single call. To get you started quickly, we provide here a short Excel sheet which allows to pull up dominant cycle information and to plot the chart with cycle as indicator. Exactly as you do it with charting software. However, here without the need for any charting tool or any datafeed subscription. We just use the PowerQuery functions available in Excel to connect to external data-sources. There are two sheets prepared: The first sheet allows you to specify the symbol/market to analysis and to change the parameters for the request. The update button refreshes the data and the table below shows the detected dominant cycle data. [![image-1590605284108.png](https://docs.cycle.tools/uploads/images/gallery/2020-05/scaled-1680-/image-1590605284108.png)](https://docs.cycle.tools/uploads/images/gallery/2020-05/image-1590605284108.png) On the right hand side of the Excel window, you can see two prepared queries using our GET MarketCycles API endpoint. If you are interested in the settings and query parameter, you can do a right-click on the query and select “Edit”. The “Advanced Editor” button shows you the detailed power query. You can see how the table “Parameter” is used to get the parameter to web source URL call. [![image-1590605432333.png](https://docs.cycle.tools/uploads/images/gallery/2020-05/scaled-1680-/image-1590605432333.png)](https://docs.cycle.tools/uploads/images/gallery/2020-05/image-1590605432333.png) The second sheet is a prepared chart view for the retrieved time-series with the price, dominant cycle and price-cycle-highligther: [![image-1590605506088.png](https://docs.cycle.tools/uploads/images/gallery/2020-05/scaled-1680-/image-1590605506088.png)](https://docs.cycle.tools/uploads/images/gallery/2020-05/image-1590605506088.png) This example demonstrated the power of decoupling our back-end from the front-end. This way, we can provide cycle analysis via our API and you decide which front-end software to use to analyze cycles. You can use the attached Excel sheet as starting point to expand your own analysis dashboards!

You can download the attached Excel Workbook **WTT\_MarketCycles** to play with this example on your own. The API key is just for demo purposes and limited to allow free test. Please get your personal API key if you want to work with this endpoint.

--- #### #### Analyze Your own Data The **CycleScanner** API endpoint allows you to post your individual dataset to our cycles engine and receive the analyzed cycles. The prepared Excel workbooks includes a running example with a sample dataset in sheet "dataset". You can change and put your data series in from any source. Once your copied your data, the "CycleScanner" sheet allows you to post the data directly from Excel to our API and receive the results in the lower section of the window: [![image-1590606462965.png](https://docs.cycle.tools/uploads/images/gallery/2020-05/scaled-1680-/image-1590606462965.png)](https://docs.cycle.tools/uploads/images/gallery/2020-05/image-1590606462965.png) The left panel visualizes the returned results in a simple spectrum graph. The right panel shows the detected cycles in the dataset as a sorted table. This playbook allows a quick start to get a full spectrum analysis for any data-series with a simple Excel workbook. The playbook is pre-filled with our example no. 5 from our book "Decoding The Hidden Market Rhythm - Part 1".

Please download the attached Excel workbook "WTT\_CycleScanner\_Workbook". Keep in mind the embedded API key is just for demo and test purposes.

--- #### Authorization to access web content from the Excel workbook If you run the "update" function for the first time, you need to allow Excel to access the API endpoint via a call to "https://api.cycle.tools". You might see a screen like this: [![image-1590648682271.png](https://docs.cycle.tools/uploads/images/gallery/2020-05/scaled-1680-/image-1590648682271.png)](https://docs.cycle.tools/uploads/images/gallery/2020-05/image-1590648682271.png) Select "Anonymous" and click connect. This allows the workbook to get data from our API. If you don't see this dialog and run into *error screen* ("1004") or the message "*Load to worksheet failed*", this might be related to missing authorization settings. In this case Excel is not allowed to access external data from your computer. You can try to resolve it to change the Data Source connection settings manually: Go to Data -> Queries & Connections -> Double click on the query on the right section of the screen -> Data Source settings: [![image-1590649795687.png](https://docs.cycle.tools/uploads/images/gallery/2020-05/scaled-1680-/image-1590649795687.png)](https://docs.cycle.tools/uploads/images/gallery/2020-05/image-1590649795687.png) Another reason for receiving errors is that your API key or the test API key has reached the limit. In this case, the API will return an internal 429 error "Too Many Requests" and the query will fail. In this case, you might see a message box like this: [![image-1590650364514.png](https://docs.cycle.tools/uploads/images/gallery/2020-05/scaled-1680-/image-1590650364514.png)](https://docs.cycle.tools/uploads/images/gallery/2020-05/image-1590650364514.png) Ensure you have the correct and working API key. It indicates you are not authorized to access the API, either because your reached the API key limits or your Excel is not authorized to access web content. # NinjaTrader Integration The following video shows how to integrate the cycle tools API within NinjaTrader to use cycle analysis for indicators in NT 8:

Download the NinjaTrader integration script as indicator via the attached zip file to this article.

Requires Cycles API key. An "Analyst" subscription level or higher is required. API endpoints are not available in the "Basic" or "FSC membership" version.

# Live Pulse Streams

**Preview v2 up and running again!** The service has been revised and has been reactivated as v2 after improving internal event handling. Features can be used, but might still be subject to change.

The **Live Pulse Streams** feature allows you to connect each of your preferred applications (e.g. NinjaTrade, TradeStation, ...) with integrated data feeds to the cycle analysis toolbox. Updating and synchronizing data from a local or cloud-based third-party application with the cycle scanner analysis capabilities of our cycle toolbox is done in near real-time. As a result, you can perform near real-time cycle analysis of private data for any data set, time frame, and application. ##### How does it work? You start your application as usual and set up your favorite chart, symbol and interval. Next, you run a prepared script and insert it into your application. This script will be executed after new data or a new bar is received. Immediately after receiving, this script will send a new bar to the cycle toolbox for further cycle analysis. You may open a special cycle scanner web window in a browser to see how the dominant cycle is detected and plotted fully automatically. As a result, you can run your favorite symbols and intervals with your existing data feed, via for example TradeStation or NinjaTrader, and connect live data directly to the cycle analysis toolbox. The Cycle Scanner monitors the arrival of new data and updates the analysis automatically. The concept is illustrated by the following illustration: [![live_pulse_streaming_2.jpg](https://docs.cycle.tools/uploads/images/gallery/2020-10/scaled-1680-/live-pulse-streaming-2.jpg)](https://docs.cycle.tools/uploads/images/gallery/2020-10/live-pulse-streaming-2.jpg) ##### What are the prerequisites? - A valid cycle tools subscription with an existing API key is required. The API key must be provided when you activate your script in your custom application. - It is required that you have your own third-party application with its own datafeed (e.g. TradeStation, NinjaTrader). - Download and install the required scripts for your application. - When not using the pre-built scripts, you can set up your script to use streams individually based on our Rest API documentation. ##### How to get started?

The following example shows screenshots from TradeStation. However, the scripts and approach is the same in other applications.

1. Open your charting application. Provide the API Key and symbol prefix information in the settings window. As shown here, for Tradestation you enter the Api key into the Cycle Analysis TradingApp window. If you use the pre-build version for NinjaTrader, you will enter the Api Key in the indicator settings panel. [![image-1601749636401.png](https://docs.cycle.tools/uploads/images/gallery/2020-10/scaled-1680-/image-1601749636401.png)](https://docs.cycle.tools/uploads/images/gallery/2020-10/image-1601749636401.png) 2. On a running chart, apply a ShowMe (TradeStation) or Indicator (NinjaTrader) script named "**WTT\_AppDataStream**" : [![image-1601749729307.png](https://docs.cycle.tools/uploads/images/gallery/2020-10/scaled-1680-/image-1601749729307.png)](https://docs.cycle.tools/uploads/images/gallery/2020-10/image-1601749729307.png) There are no settings for the script. This script will ensure to push and sync the data to the cycles toolbox. The script will use the following convention to create a cycles datafeed ticker id: \[PREFIX\]-\[SYMBOL\]-\[INTERVAL\]\[PERIOD\]:\[USERNAME\] If you have a 1min BTC USD chart running, the live stream will be available on the cycle analysis platform with the tickerid: TS-BTCUSD-1M:\[USERNAME\] If no errors or alerts show up, the chart is now connected as live stream to the cycles toolbox.
[![image-1601750061438.png](https://docs.cycle.tools/uploads/images/gallery/2020-10/scaled-1680-/image-1601750061438.png)](https://docs.cycle.tools/uploads/images/gallery/2020-10/image-1601750061438.png) TradeStation Platform[![live_pulse_streaming_nt8.jpg](https://docs.cycle.tools/uploads/images/gallery/2020-10/scaled-1680-/live-pulse-streaming-nt8.jpg)](https://docs.cycle.tools/uploads/images/gallery/2020-10/live-pulse-streaming-nt8.jpg) NinjaTrader Platform
3. Login to the cycles toolbox at cycle.tools and open the "**My Streams**" section within the "Settings" menu: [![image-1601750117962.png](https://docs.cycle.tools/uploads/images/gallery/2020-10/scaled-1680-/image-1601750117962.png)](https://docs.cycle.tools/uploads/images/gallery/2020-10/image-1601750117962.png) The connected datafeed should show up in the table with the Name Id. Streams connected via TradeStation should begin with the TS prefix. Streams connected via NinjaTrader start with a NT prefix. You can use the settings panel to monitor incoming events if you enable the Event Monitor with the "Live Pulse Streams" switch. The monitor is only used to show incoming signals for debug reasons. It is not required to enable the Event Monitor. The live sync is working anyhow. 4. You can now open the cycle scanner for the connected symbol by clicking the "**Open**" button. [![image-1601750325541.png](https://docs.cycle.tools/uploads/images/gallery/2020-10/scaled-1680-/image-1601750325541.png)](https://docs.cycle.tools/uploads/images/gallery/2020-10/image-1601750325541.png) A new page will show up. You just need to **enable the stream via the switch "Live Pulse"** on the top of the screen. From now on, live data will stream onto the chart when a new bar has been closed in your local charting app. The cycle analysis will automatically be updated. So all active cycles and the spectrum pot will refresh automatically with new data coming in. 5. Enjoy your live connection between your local app and the cycle scanner app! ##### Downloads

Download the pre-build scripts for your platform as attached files to the article.

--- **TradeStation:** [WTT\_CYCLE\_ANALYSIS\_APP\_STREAM\_V2.ELD](https://docs.cycle.tools/attachments/14) --- **NinjaTrader NT8** (64bit): [WTT\_CyclesApp\_DataStream\_NT8\_Indicator\_v2.zip](https://docs.cycle.tools/attachments/13) *( requires Newtonsoft.Json.dll )* --- ##### Limitations

**Current limits:** Analyst Level: 5 running live streams Pro Level: 20 running live streams

##### 3rd Party Integration The integration is based on the cycle API data stream endpoints. Data stream integration can be performed for any application using the [Submit Stream Data API](https://api.cycle.tools/apidocs/index.html?url=/apidocs/v1/swagger.json#tag/Stream) endpoint. The deployed scripts use this endpoint to provide integration for NT8 and TradeStation - you can review the deployed and attached open scripts to see how this endpoint is used to synchronize both platforms. Please read the [API specification](https://api.cycle.tools/apidocs/index.html?url=/apidocs/v1/swagger.json#tag/Stream). # MotiveWave Integration ##### Cycle Analysis for MotiveWave Platform We provide support and cycle tools integration for the MotiveWave charting platform. The MotiveWave FREE Community Edition charting software has high quality charting, Replay Mode & built-in trade simulation.

You can download the MotiveWave Community Edition [here](https://support.motivewave.com/free-charting-software/).

[![MotiveWave Cycle Tools](https://docs.cycle.tools/uploads/images/gallery/2021-02/scaled-1680-/btcusd-mw-example1.png)](https://docs.cycle.tools/uploads/images/gallery/2021-02/btcusd-mw-example1.png) The following WhenToTrade cycle indicators are support and included: - Dynamic Cycle Explorer - Cyclic-smoothed RSI - Cycle Swing Indicator

Please go to the download page for registered clients here: [Download the script package](https://docs.cycle.tools/books/cycle-tools-integration-packages/page/download-motivewave-package "Download MotiveWave Package")

The MotiveWave add-on integration is not part of the FSC cycles app subcription.

# TradingView Integration The integration provides a back-to-back integration between your TradingView charts and the cycle analysis toolset. Allowing to keep your TradingView chart data synced in real-time with the cycle analysis API and cycle application. Allowing to monitor active cycles in your TradingView chart for any symbol and time-frame. The first step is to setup a separate alert-condition via a new pine script and attach it to your chart you want to use for cycle analysis. ##### 1. Create alert-condition Create a new individual alert-condition via a custom pine script. The simplest way of alert-condition for a pine script looks like this: ```C++ //@version=4 study("WTT_DataFeed") plot(close) alert = true msg = "{\"streamid\":\"YOUR-STREAM-ID\", \"messagetype\":\"UPSERT\", \"dates\": [ \"{{time}}\" ], \"values\": [ {{close}} ] }" alertcondition(alert, title='data', message=msg) ``` Be aware that the text string YOUR-STREAM-ID within the msg variable will be replaced later when you setup the alert. This is just a new alert-condition we place on your chart. This is not the alert. The message object (msg) is already prepared to work with the cycle analysis endpoint. So don't change this message if you want it to work with our cycle analysis. ##### 2. Open symbol/chart Open your symbol on a TradingView chart. Select the required time-frame and place the new script on the chart. You can use the pre-build script down below and can link it to your favorite indicators.

Want to place this script on your TradingView chart? Just use this prepared script: [https://www.tradingview.com/script/FTEsZurP-Cycle-Analysis-WebHook-API-Integration/](https://www.tradingview.com/script/FTEsZurP-Cycle-Analysis-WebHook-API-Integration/ "TradingView Cycle Integration Pine-Script")

##### 3. Get Cycle Analysis API Key Before we start the alert and connection, ensure you have your cycle analysis API key at hand. You will find your API key via the cycle application: [https://cycle.tools/account/api](https://cycle.tools/account/api "Cycle Analysis API Key") Note down that key as you need to enter it when you setup the webhook connection in the next step. ##### 4. Activate the webhook The "Create Alert" function from TradingView panel will activate the webhook on their servers for your symbol and time-frame: [![Create Alert to connect via webhook with cycle analysis](https://docs.cycle.tools/uploads/images/gallery/2021-03/scaled-1680-/image-1616920270856.png)](https://docs.cycle.tools/uploads/images/gallery/2021-03/image-1616920270856.png) To start the live sync, the web-hook will be activated via the alert activation from the TradingView alert panel. Ensure to select the following options as shown: - Condition: "WTT\_DataFeed", data - Options: "Once Per Bar Close" - Expiration: Open-ended - Alert Actions: Webhook URL - Cycle Analysis Webhook URL: https://api.cycle.tools/api/Stream/SubmitStreamData?api\_key=YOUR-KEY - Message: Replace YOUR-STREAM-ID with the name you want to see it in the cycle analysis tools [![TradingView Create Alert](https://docs.cycle.tools/uploads/images/gallery/2021-03/scaled-1680-/image-1616869896959.png)](https://docs.cycle.tools/uploads/images/gallery/2021-03/image-1616869896959.png)

Before you create the alert, **replace the YOUR-STREAM-ID** tag in the Message section with the stream ID you want to see that in your cycle analysis platform. Also **replace YOUR-KEY** in the webhook URL with your cycle analysis API key.

##### 5. First webhook activation After activation, you will see a confirmation in the alert panel that this webhook has now been created. Before we move on to the cycle analysis, we should wait and ensure that the first webhook has successfully been fired. We can see this in the alert panel when a date/time information has been placed in this section below your alert: [![TradingView Alert webhook triggered](https://docs.cycle.tools/uploads/images/gallery/2021-03/scaled-1680-/image-1616921084618.png)](https://docs.cycle.tools/uploads/images/gallery/2021-03/image-1616921084618.png) ##### 6. Open Cycle Analysis Streams Now, you have done everything required on TradingView. The webhook will continuously fire off, even when you close and change your chart configuration. We can now monitor this symbol in our cycle analysis environment to see the cycle detection for that symbol. Open the cycle analysis streams page to see your new symbol added. Go to the following page to see the connection: [https://cycle.tools/settings/streams](https://cycle.tools/settings/streams) In this case, we named the symbol "TV-BTCUSD-5M" - and you will find it with this ID in your cycle analysis streams board: [![image-1616921324162.png](https://docs.cycle.tools/uploads/images/gallery/2021-03/scaled-1680-/image-1616921324162.png)](https://docs.cycle.tools/uploads/images/gallery/2021-03/image-1616921324162.png)

After you have setup the connection, there is not enough history available to start the cycle analysis. Therefore you either need to wait until at least 100 datapoints have been fired from the webhook connection or you can backfill the series manually via the "Fill" button and upload CSV data.

# Market Pulse Market Pulse Section of the cycles app # Configuration & Limits The Market Pulse sections allows to add, remove and sort your symbols in clusters. The following limits apply based on subscription level:
**Subscription****Max Clusters****Max Symbols per Cluster**
Basic55
Analyst
Professional
# Cycles App FAQ ## FAQ A list of important settings and configurations to have a smooth user experience with the cycles application #### My cycles app web browser window becomes unresponsive on certain pages from time to time. What can I do? The cycles app requires a permanent connection to the cycle cloud services. Local browser configuration might be different and might put browser tabs into a "sleep" or "power saving" mode automatically. This causes the connection between the cycles app browser tab and the cycles cloud services to be disconnected and might result in an unresponsive state when getting back to the cycles all browser tab. To avoid this behaviour, you need to change the settings of your browser to register our cycle app URLs. The settings for Google Chrome are shown below. Configuration in other browsers might be similar. [![Chrome Settings to avoid browser tab disconnection from the cycle tools](https://docs.marketcycles.blog/uploads/images/gallery/2023-01/scaled-1680-/yZTimage.png)](https://docs.marketcycles.blog/uploads/images/gallery/2023-01/yZTimage.png) # Live Webinars and Private Collaboration Room Our **Live-Room** webinar area allows us to host and run private and secure online webinars with video live-streams and live chat. To ensure the content and discussion within the cycles community is kept private and secure. You can enter the room within the Cycles Application via the menu "Live Seminar Room" or via the URL: [https://cycle.tools/liveroom](https://cycle.tools/liveroom) [![LiveRoomPanel.jpg](https://docs.cycle.tools/uploads/images/gallery/2021-02/scaled-1680-/liveroompanel.jpg)](https://docs.cycle.tools/uploads/images/gallery/2021-02/liveroompanel.jpg) The documentation and the functions in the "Live Room" area are continuously being expanded. ##### Live Inside Webinars - Save the Date

The **monthly WhenToTrade Inside webinar** is hosted live on the **last Saturday of every month at 20:00 CET**. Please join the live room to interact live with the speaker and the audience.

The live session will be available as a replay on the weekend following the webinar until the upcoming Monday. Live interaction is only possible during the live session. ##### HD Video Stream

We provide a high quality HD live video and audio stream in 1920x1080 (1080p HD). It will require ~**3.5 Mbps** available bandwidth/speed on your end to ensure a stable and smooth video experience without interruptions. In case the video might freeze, check your bandwidth and/or just refresh the browser to stay in the session.

# Change Log ##### Version 1.5 - 28 Jan 2021 - New Feature: Live Webinar room to host private live inside webinars - New Feature: Share interactive workbooks with colleagues and guests via short invite URL (Analyst or Pro) - Cycle Scanner: Added new indicator "Composite Energy Model" (available via advanced settings) - Data Upload: removed the upload limit of max. 20.000 bars for private datasets on Analyst and Pro level ##### Version 1.4 - 03 Oct 2020 - New Feature: Live Streams Pulse to connect any 3rd party app in realtime with the cycle analyzer ([read the docs](https://docs.cycle.tools/books/app-manual/page/live-pulse-streams "Live Pulse Streams")) - Backend: Upgraded for improved front-end responsiveness on the user interface ##### Version 1.3 - 27 Aug 2020 - Datafeed: Added weekly option for Yahoo datafeed, add -W to the symbol code, e.g. ^GSPC-W:YFI (see [datafeed page](https://docs.cycle.tools/books/app-manual/page/integrated-datafeeds#bkmrk-major-stock-market-a)) - Cycle Scanner: Added range selection to load more data - Cycle Scanner: Added Savitzky–Golay filter as optional pre-processing smoothing filter and as individual API function - New Feature: Cycle Skew can be used for cycle analysis and composite cycle plots ([read docs](https://docs.cycle.tools/books/cycles---decoding-the-hidden-rhythm/page/asymmetric-business-cycles-and-cycle-skewness-f89)) - New Feature: Cycle Power Spectrum with Spectral Averaging as alternative to Amplitude Spectrum ([read docs](https://docs.cycle.tools/books/cycles---decoding-the-hidden-rhythm/page/spectral-averaging)) - New Feature: Save Cycle Scanner configuration in two profiles P1 and P2 ##### Version 1.2 - 01 July 2020 - Cycle Scanner: Added new "eye" button to hide/show out-of-sample price data - Cycle Scanner: Added in-sample button to (re)set in-sample-period to full data range with once click - Cycle Scanner: Fixed a bug where old cycle selections will not be updated when a new ticker is loaded - API: Added a API performance monitor screen at [https://cycle.tools/monitor/api](https://cycle.tools/monitor/api) - Charting: Added "reverse plot" parameter for dominant cycle indicator - Workbooks & Snapshots: Added sorting by name and/or by snapshot date - Datafeed: Added weekly option Quandl datafeeds (see [datafeed page](https://docs.cycle.tools/books/app-manual/page/integrated-datafeeds)) ##### Version 1.1 - 22 May 2020 - New Feature: Added new Workbooks feature to save Cycle Scanner configuration and composite cycles ##### Version 1.0 - 19 May 2020 - New Feature: Release of online documentation at subdomain docs.cycle.tools - Update: Cycle Scanner - "Active Cycles" table with scrolling instead of paging - Update: Cycle Scanner - Selected cycles for composite plot shown in header - Upgrade: TradingView charting backend upgraded to Version 1.15 - New Feature: Integrated datafeed wrapper to pull data from yahoo finance