NexusFi: Find Your Edge


Home Menu

 





ToS Scan for % change over time


Discussion in ThinkOrSwim

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




 
Search this Thread

ToS Scan for % change over time

  #1 (permalink)
briansanders
Roswell GA USA
 
Posts: 1 since Jul 2020
Thanks Given: 0
Thanks Received: 0

Hello, I want to create a scan that will provide % change over a defined period of time. For example, I want to see all stocks that have decreased by 20% or more over the last 60 days in comparison to last close.

Another example: xxx closed at $100 in the previous session. But the average close over the last 60 days 120. If I ran the scan that I am looking for xxx would come in as a result.

I think that it would look something like this:

close(“period” = AggregationPeriod.DAY) is greater than .95 * SimpleMovingAvg(“length” = 50).”SMA

I think that I need to change the "greater than .95*" to a negative?

Here is another example and maybe a better one:
#The current stock price is trading above the 50-day moving average
close(“period” = AggregationPeriod.DAY) is greater than SimpleMovingAvg(“length” = 50).”SMA”
All I really want to be able to do is add the negative or positive percent variable to this.
#The current stock price is trading X% below the 50-day moving average



I then want to have column in the scan that shows me the actual % change over the 60 days for all of the stocks that meet the criteria.

I have been working on this for days and I just cannot seem to get it right. If anyone can help I would be most appreciative.

Reply With Quote

Can you help answer these questions
from other members on NexusFi?
NT7 Indicator Script Troubleshooting - Camarilla Pivots
NinjaTrader
Trade idea based off three indicators.
Traders Hideout
Better Renko Gaps
The Elite Circle
REcommedations for programming help
Sierra Chart
Exit Strategy
NinjaTrader
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Spoo-nalysis ES e-mini futures S&P 500
48 thanks
Just another trading journal: PA, Wyckoff & Trends
34 thanks
Bigger Wins or Fewer Losses?
24 thanks
Tao te Trade: way of the WLD
24 thanks
GFIs1 1 DAX trade per day journal
22 thanks
  #2 (permalink)
 
Bermudan Option's Avatar
 Bermudan Option 
Chicago, Illinois
 
Experience: Beginner
Platform: TradingView
Broker: ThinkOrSwim
Trading: Forex, Stock & Options
Posts: 675 since May 2011
Thanks Given: 846
Thanks Received: 471

The only suggestion I have is to perhaps move the individual portions of your expected results into the 'Search Results' and then calc'ing the difference in a spreadsheet.

Some additional criteria such as price being below the Daily 200 SMA could help if you have too many results initially

Visit my NexusFi Trade Journal Reply With Quote




Last Updated on July 20, 2020


© 2024 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 - Privacy Policy - Downloads - Top
no new posts