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 1,486 views
    2. thumb_up 1 thanks given
    3. group 4 followers
    1. forum 3 posts
    2. attach_file 0 attachments




 
Search this Thread

can anyone help with creating simple scan?

  #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?
Exit Strategy
NinjaTrader
New Micros: Ultra 10-Year & Ultra T-Bond -- Live Now
Treasury Notes and Bonds
Deepmoney LLM
Elite Quantitative GenAI/LLM
Are there any eval firms that allow you to sink to your …
Traders Hideout
NT7 Indicator Script Troubleshooting - Camarilla Pivots
NinjaTrader
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Get funded firms 2023/2024 - Any recommendations or word …
61 thanks
Funded Trader platforms
39 thanks
NexusFi site changelog and issues/problem reporting
26 thanks
The Program
18 thanks
GFIs1 1 DAX trade per day journal
18 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: 29 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


© 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