NexusFi: Find Your Edge


Home Menu

 





Think or swim earnings move calculation


Discussion in Brokers

Updated
    1. trending_up 2,920 views
    2. thumb_up 0 thanks given
    3. group 2 followers
    1. forum 1 posts
    2. attach_file 1 attachments




 
Search this Thread
  #1 (permalink)
Rustic
Bucharest
 
Posts: 26 since Mar 2020
Thanks Given: 9
Thanks Received: 15

Hi, I could use some help in calculation the max, min and avg. move after the last N earning reports.
I managed to write an indicator to display the moves but I don't know how to store these numbers in an array.

Thank you!


Attached Thumbnails
Click image for larger version

Name:	LEN.JPG
Views:	374
Size:	136.5 KB
ID:	302368  
Reply With Quote

Can you help answer these questions
from other members on NexusFi?
Asia Equities Crash Overnight -- Nikkei -5.2%, KOSPI -6. …
Traders Hideout
May 26 Deadline Dies at 7.5% as US Strikes Iran During C …
Prediction Markets & Event Contracts
SEC and CFTC Unlock Customer Cross-Margining for Treasur …
Treasury Notes and Bonds
Iran Talks Final Stages -- Two VLCCs Exit Hormuz, Record …
Traders Hideout
NYSE Owner ICE Invests in Crypto Exchange OKX at $25 Bil …
Cryptocurrency
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Sober Journey With S&P
24 thanks
2026 Jlab journal
10 thanks
Algo automated / semi-automated trading anyone?
6 thanks
Lady Vols Primer: Trading Volatility Journal
6 thanks
2026 Fire Horse
5 thanks
  #2 (permalink)
 huracan 
Gahanna, OH
 
Experience: Intermediate
Platform: Ninja Trader
Broker: AMP/CQG
Trading: ES, ZB, ZN
Posts: 27 since Oct 2009
Thanks Given: 36
Thanks Received: 28


Rustic View Post
Hi, I could use some help in calculation the max, min and avg. move after the last N earning reports.
I managed to write an indicator to display the moves but I don't know how to store these numbers in an array.

Thank you!

Have you tried using the Average function in thinkscript? It is in the TOS Learning Center, under Technical Analysis.
It says:

"Average ( IDataHolder data, int length);

Default values:

length: 12
Description
Returns the average value of a set of data for the last length bars. If the length of the data set is not specified, the default value is used. "

It has a couple of exmaples....

Hope that helps!


Reply With Quote




Last Updated on July 5, 2020


© 2026 NexusFi®, s.a., All Rights Reserved.
Av Ricardo J. Alfaro, Century Tower, Panama City, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada)
All information is for educational use only and is not investment advice. There is a substantial risk of loss in trading commodity futures, stocks, options and foreign exchange products. Past performance is not indicative of future results.
About Us - Contact Us - Site Rules, Acceptable Use, and Terms and Conditions - Downloads - Top
no new posts