NexusFi: Find Your Edge


Home Menu

 





Custom Show Me in not working in Scanner


Discussion in TradeStation

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




 
Search this Thread

Custom Show Me in not working in Scanner

  #1 (permalink)
jb2080
San Diego, California
 
Posts: 8 since Jun 2021
Thanks Given: 10
Thanks Received: 0

Hi everybody,

I wrote a simple ShowMe. Intended for daily intervals, it shows when a stock is at a 2 month high and its range is higher than the previous 9 days' ranges.

Criteria( Range >= Highest(Range,9) and
HighD(0) >= HighestFC(High,39)

It works as expected but when I create a scanner to find all such stocks that meet the criteria today, I only get stocks that met the criteria yesterday. For example...



Here's my scan criteria. Any help would be greatly appreciated, thanks!


Reply With Quote

Can you help answer these questions
from other members on NexusFi?
The space time continuum and the dynamics of a financial …
Emini and Emicro Index
Deepmoney LLM
Elite Quantitative GenAI/LLM
Better Renko Gaps
The Elite Circle
ZombieSqueeze
Platforms and Indicators
NexusFi Journal Challenge - April 2024
Feedback and Announcements
 
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
GFIs1 1 DAX trade per day journal
18 thanks
The Program
18 thanks
  #2 (permalink)
 ABCTG   is a Vendor
 
Posts: 2,431 since Apr 2013
Thanks Given: 481
Thanks Received: 1,623

jb2080,

Radarscreen and Scanner will only load the minimum amount of data by default. Therefore, you have to specifically increase the amount of data to be loaded. According to your screenshot you set the number of additional bars to load to 0, but your code requires at least 38 bars before the current bar. Consequently you will not get any results with your settings and increasing the additional data to load should fix this.

Regards,

ABCTG


jb2080 View Post
Hi everybody,

I wrote a simple ShowMe. Intended for daily intervals, it shows when a stock is at a 2 month high and its range is higher than the previous 9 days' ranges.

Criteria( Range >= Highest(Range,9) and
HighD(0) >= HighestFC(High,39)

It works as expected but when I create a scanner to find all such stocks that meet the criteria today, I only get stocks that met the criteria yesterday. For example...



Here's my scan criteria. Any help would be greatly appreciated, thanks!



Follow me on Twitter Reply With Quote
  #3 (permalink)
jb2080
San Diego, California
 
Posts: 8 since Jun 2021
Thanks Given: 10
Thanks Received: 0


HI ABCTG, thanks for your help.

I just tried your suggestion after the close and I'm still having the same issue. These are the results after setting 'Load Additional Data' to '21'



Maybe I need to write the ShowMe differently?

Reply With Quote
  #4 (permalink)
 ABCTG   is a Vendor
 
Posts: 2,431 since Apr 2013
Thanks Given: 481
Thanks Received: 1,623

jb2080,

I would suggest starting with just the ShowMe without additional conditions to narrow things down.
Additionally you can give it a few more additional bars to test if that makes a difference.

You could also create your own indicator for the scanner, where you set the plot to 0 in case the condition is not present and otherwise use the Close. Then you can scan for the plot being <> 0 in the Scanner.

Alternatively I would suggest trying to scan for the alert to be true instead of using CustomSM.

Also keep in mind that the Scanner will only use closed bars which can explain why you get yesterday's results during the session, but this should change some time after the close.

Regards,

ABCTG


jb2080 View Post
HI ABCTG, thanks for your help.

I just tried your suggestion after the close and I'm still having the same issue. These are the results after setting 'Load Additional Data' to '21'

Attachment 313745

Maybe I need to write the ShowMe differently?


Follow me on Twitter Reply With Quote
Thanked by:
  #5 (permalink)
jb2080
San Diego, California
 
Posts: 8 since Jun 2021
Thanks Given: 10
Thanks Received: 0

Hi ABCTG,

I tried everything except writing an indicator version of the ShowMe. Your comment about about the Scanner only using closed bars helped me focus on the goal of the experiment. It's not an intraday strategy so I don''t need results right away.

The idea is:

Day 1: stock trades at a two-month high and does so with a range that's bigger than the previous nine daily ranges
Day 2: if stock trades above Day 1's high, then buy with a stop at Day 1's low.

I ran the scanner this morning before the open and got results for Day 1 (6/8/21)
It would be nice to have them yesterday after the close but that's ok. Now I'm going to try creating a Strategy for this.

Thanks ABCTG!

Reply With Quote




Last Updated on June 9, 2021


© 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