### Complex Script Structure Example Source: https://help.trendspider.com/kb/features/scripts-scripts-everywhere-scan-backtest-create-alerts Illustrates how to structure complex scripts using logical blocks with AND/OR operators. This example shows a condition where the price must be above the 200-day SMA AND either a 'Bearish Engulfing' or 'Evening Start' pattern has evolved. ```TrendSpider Script Price is above sma(200) AND (Bearish Engulfing evolved, OR Evening Start evolved) ``` -------------------------------- ### Reports List Example Source: https://help.trendspider.com/kb/right-sidebar/reports-widget Displays a list of quarterly financial reports with key metrics including Metric Value, Metric Change%, Surprise%, and Price change%. ```text Q4'23 5.84B +8.75% +3.20% -0.30% Q3'23 5.78B +10.30% +3.05% -2.80% Q2'23 6.00B +18.30% +2.39% -0.90% Q1'23 5.84B +12.23% +4.75% -2.10% Q4'22 5.37B +10.06% +2.89% -2.30% ``` -------------------------------- ### Square Root Function Example Source: https://help.trendspider.com/kb/ai-strategies/formula-language-reference?_brand=trendspider Shows how to use the 'sqrt' function to calculate the square root for each element of a series. ```Formula sqrt(series) ``` -------------------------------- ### Discord Alert Message Format Source: https://help.trendspider.com/kb/alerts/webhooks?_brand=trendspider This example shows the basic JSON format required by Discord to receive a simple text message via webhook. It's used as a starting point for customizing alert messages. ```json {"content": "Look ma, my webhook just worked"} ``` -------------------------------- ### Bands Percentage Formula Example Source: https://help.trendspider.com/kb/ai-strategies/formula-language-reference Shows how to calculate the Bbands %B indicator using High and Low band inputs. ```Formula 100 * (C - B)/(A - B) ```