NexusFi: Find Your Edge


Home Menu

 





Scanning crossing condition


Discussion in ThinkOrSwim

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




 
Search this Thread

Scanning crossing condition

  #1 (permalink)
Ardian1899
Malang, East Java - Indonesia
 
Posts: 3 since Jul 2014
Thanks Given: 1
Thanks Received: 1

Hello,

Perhaps the title is not really correct, but here is the explanation with screenshot.

There are 3 lines in the chart (attached), upline, downline and midline.

The green block is after the midline crossdown the downline. Even after the midline cross up the downline again but not crossing up the upline, then it's still green.

The blue block is after the midline crossup the upline. Even after the midline cross down the upnline again but not crossing down the downline, then it's still blue.

The color is only change to blue if the midline cross up the upline and change to green if the midline cross down the downline. Cross down the upline and cross up the downline is not counted.

Lets say blue means trend=10, green means trend=20

So we have:
Upline
Midline
Downline
trend

All we need is to determine the latest trend.
I draw 2 color blocks just for the explanation purpose. Is there any way to code it on thinkscript?

We can also check the bar number of each crosses and compare them, the latest bar will determine the latest trend. But I also don't know how to code that.

I've try to do it for a week without result. It'll be appreciated if anyone can help.

Thank you

Attached Thumbnails
Click image for larger version

Name:	3 lines.png
Views:	110
Size:	33.6 KB
ID:	150967  
Reply With Quote




Last Updated on July 15, 2014


© 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