NexusFi: Find Your Edge


Home Menu

 





can anyone help with creating simple scan?


Discussion in ThinkOrSwim

Updated
      Top Posters
    1. looks_one a121e with 1 posts (0 thanks)
    2. looks_two tangerine with 1 posts (0 thanks)
    3. looks_3 Trippster with 1 posts (0 thanks)
    4. looks_4 brucehank with 1 posts (1 thanks)
    1. trending_up 2,375 views
    2. thumb_up 1 thanks given
    3. group 4 followers
    1. forum 3 posts
    2. attach_file 0 attachments




 
Search this Thread
  #1 (permalink)
Trippster
San Diego CA
 
Posts: 1 since Nov 2014
Thanks Given: 0
Thanks Received: 0

is it possible to create a TOS scan that lists products that have closed above the 5 SMA for 7 consecutive days (on daily chart)?


Reply With Quote

Can you help answer these questions
from other members on NexusFi?
Datafeed for Atas
Platforms and Indicators
My Rant with AMP Futures
Trading Reviews and Vendors
requesting .nrd replay files from 2026 spy and qqq
The Elite Circle
EA
Platforms and Indicators
Trump Media to sell instant access to market-moving soci …
Traders Hideout
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Mes vs MNQ
6 thanks
NexusFi site changelog and issues/problem reporting
5 thanks
BERN ALGOS algo trading journal
3 thanks
Johnnys Journal
2 thanks
TopStep Trader disappointment
2 thanks
  #2 (permalink)
a121e
Indonesia
 
Posts: 8 since Dec 2013
Thanks Given: 3
Thanks Received: 1

hi tripster,

I can help but i want to ask about the open. is the open and close need at aboce sma 5 for 7 days or just close ?

thanks


Reply With Quote
  #3 (permalink)
tangerine
albuquerque nm/usa
 
Posts: 27 since Aug 2015
Thanks Given: 3
Thanks Received: 9



Trippster View Post
is it possible to create a TOS scan that lists products that have closed above the 5 SMA for 7 consecutive days (on daily chart)?

Trippster , I'm sure this is clumsy but it works, I just tested it. Somebody else may offer a cleaner fix. Set scan to "trippster3 is true".
 
Code
declare lower;
def trippster1 = average(close,5);
def trippster2 = close>trippster1 and close[1]>trippster1[1] and close[2]>trippster1[2] 
and close[3]>trippster1[3] and close[4]>trippster1[4] and close[5]>trippster1[5] and 
close[6]>trippster1[6] and close[7]>trippster1[7];
plot trippster3 = trippster2;
Here are some results- they do check out.


Reply With Quote
  #4 (permalink)
brucehank
ottawa canada
 
Posts: 20 since Oct 2015
Thanks Given: 0
Thanks Received: 2

Actually, you don't need "declare lower;" in SCAN. the rest is fine.

If you need any complicated scripts, just let me know. I like the hard ones.


Reply With Quote
Thanked by:




Last Updated on October 16, 2015


© 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