Scanning crossing condition - ThinkOrSwim Programming | futures trading

Go Back

> Futures Trading, News, Charts and Platforms > Platforms and Indicators > ThinkOrSwim > ThinkOrSwim Programming

Scanning crossing condition
Started:July 15th, 2014 (04:57 AM) by Ardian1899 Views / Replies:282 / 0
Last Reply:July 15th, 2014 (04:57 AM) Attachments:1

Welcome to

Welcome, Guest!

This forum was established to help traders (especially futures traders) by openly sharing indicators, strategies, methods, trading journals and discussing the psychology of trading.

We are fundamentally different than most other trading forums:
  • We work extremely hard to keep things positive on our forums.
  • We do not tolerate rude behavior, trolling, or vendor advertising in posts.
  • We firmly believe in openness and encourage sharing. The holy grail is within you, it is not something tangible you can download.
  • We expect our members to participate and become a part of the community. Help yourself by helping others.

You'll need to register in order to view the content of the threads and start contributing to our community. It's free and simple, and we will never resell your private information.

-- Big Mike

Thread Tools Search this Thread

Scanning crossing condition

Old July 15th, 2014, 04:57 AM   #1 (permalink)
Trading Apprentice
Malang, East Java - Indonesia
Futures Experience: Intermediate
Platform: MetaTrader Thinkorswim
Favorite Futures: GBPUSD
Posts: 3 since Jul 2014
Thanks: 1 given, 1 received

Scanning crossing condition


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:

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
Scanning crossing condition-3-lines.png  
Reply With Quote

Reply > Futures Trading, News, Charts and Platforms > Platforms and Indicators > ThinkOrSwim > ThinkOrSwim Programming > Scanning crossing condition

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Upcoming Webinars and Events (4:30PM ET unless noted)

NinjaTrader 8: Programming Profitable Trading Edges w/Scott Hodson

Elite only

Anthony Drager: Executing on Intermarket Correlations & Order Flow, Part 2

Elite only

Adam Grimes: Five critically important keys to professional trading

Elite only

Machine Learning Concepts w/FIO member NJAMC

Elite only

MarketDelta Cloud Platform: Announcing new mobile features

Dec 1

NinjaTrader 8: Features and Enhancements

Dec 6

Similar Threads
Thread Thread Starter Forum Replies Last Post
Scanning for indicator changes across 2 bars 10handles TradeStation 9 May 4th, 2014 11:19 AM
link an exit condition to a particular entry condition vegtrip ThinkOrSwim 0 October 12th, 2013 08:49 AM
Multiple moving average crossing strategy parsamkk The Elite Circle 7 August 5th, 2013 09:07 AM
Marketanalyseralert setup for crossing the avg fossil NinjaTrader 0 December 11th, 2012 07:22 AM
Counter crossing the horizontal line doitagaitforme NinjaTrader Programming 12 May 3rd, 2012 07:08 PM

All times are GMT -4. The time now is 08:46 AM.

Copyright © 2016 by 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.
no new posts

Page generated 2016-10-27 in 0.06 seconds with 20 queries on phoenix via your IP