Welcome to the Traders Laboratory.

Coding Forum Collaborate, receive help, or discuss indicators and other coding-related topics

Reply
Old 12-11-2015, 08:21 PM   #1

Join Date: Dec 2015
Posts: 1
Ignore this user

Thanks: 0
Thanked 0 Times in 0 Posts

Watch List Opening Range Code

add this code to your watch list so see when a stock is above the 5 min opening range

Code:
def mybarcount = RoundUp(SecondsFromTime(0930) / 300, 0);
def orHigh = GetValue(high, mybarcount);
def orLow = GetValue(low, mybarcount);

plot signal = if close > orHigh then 1 else if close < orLow then -1 else 0;
AssignBackgroundColor(if signal == 1 then Color.Uptick else if signal == -1 then Color.Downtick else Color.DARK_GRAY);
signal.AssignValueColor(if signal == 1 then Color.Uptick else if signal == -1 then Color.Downtick else Color.DARK_GRAY);
mwmarket is offline  
Reply With Quote

Reply

Thread Tools
Display Modes Help Others By Rating This Thread
Help Others By Rating This Thread:

Similar Threads
Thread Thread Starter Forum Replies Last Post
Hello My Name is Allen and This is My Swing Watch List EatSleepTrade Introduce Yourself 0 05-18-2015 01:35 AM
HPS Watch List Review and HPS Stocks for Week of August 12th daytradingradio Swing Trading and Position Trading 0 08-09-2013 07:17 PM
Different Types of Technical Indicators: A Traderís Watch List tmbaru The Markets 8 05-24-2013 09:22 AM
SPY Opening Range Volume Vs Days Range darthtrader Technical Analysis 3 04-17-2008 11:54 AM
Watch The Current Range Soultrader Day Trading and Scalping 1 05-23-2007 03:09 AM

All times are GMT -4. The time now is 01:46 PM.
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
CS to VB integration by DeskLancer
©2006-2011 Traders Laboratory, All Rights Reserved.