NexusFi: Find Your Edge


Home Menu

 





Scan for Gap Up N Bars Ago


Discussion in ThinkOrSwim

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




 
Search this Thread
  #1 (permalink)
idenr
Philadelphia PA USA
 
Posts: 2 since Mar 2013
Thanks Given: 0
Thanks Received: 0

On the chance that someone is feeling generous I have the following question: I know that Gap Up is one of the pre-packaged thinkscript scan indicators. The question is: is it difficult to scan for a Gap Up happening N bars ago? I tried modifying the formula by putting in Low[6] to get the low six bars ago but thinkscript doesn't like that syntax. Is this an easy thing to do? Thanks in advance.


Reply With Quote

 
  #2 (permalink)
idenr
Philadelphia PA USA
 
Posts: 2 since Mar 2013
Thanks Given: 0
Thanks Received: 0

input price1 = low;
input percentage = 2.0;
input price2 = high;
def x = 1+percentage/100;
def term = x*price2[7];
plot scan = price1[6] >= term;


Reply With Quote




Last Updated on April 10, 2013


© 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