Welcome to the Traders Laboratory Forums.
Coding Forum Collaborate, receive help, or discuss coding related issues.

Reply
Old 06-20-2007, 06:58 PM   #1

MrPaul's Avatar

Join Date: Sep 2006
Location: Texas
Posts: 373
Ignore this user

Thanks: 28
Thanked 65 Times in 23 Posts

Simple Paintbar Request

Hey,

Can anyone here help me out, I'm quite illiterate when it comes to tradestation's easylanguage. But I can download an ELD file quite efficiently

With this in mind can anyone build pr point the way to an indicator that will display a yellow color for bars that form on 35,000-60,000 contract volume, and a light blue, for bars that form on over 60,000?

Also using only HLC bars not OHLC.


I've included a really crude drawing to help clarify


Thanks everyone

-Paul
Attached Thumbnails
Simple Paintbar Request-example.jpg  
MrPaul is offline  
Reply With Quote
Old 06-20-2007, 07:19 PM   #2
ant

ant's Avatar

Join Date: Sep 2006
Location: USA
Posts: 421
Ignore this user

Thanks: 22
Thanked 314 Times in 81 Posts

Re: Simple Paintbar Request

MrPaul,

See how this works out for you.

Code:
Input: 
	LowVol(35000), 
	HiVol(60000),
	LightVolColor(Yellow), 
	HiVolColor(Blue);

Variables:
	MyVol(0);

MyVol = IFF(BarType > 1, Volume, Ticks);

if MyVol >= LowVol and MyVol <= HiVol then
begin
	PlotPaintBar (High, Low, Open, Close, "VolThreshold", LightVolColor, Default, 1);
end ;	

if MyVol > HiVol then
begin
	PlotPaintBar (High, Low, Open, Close, "VolThreshold", HiVolColor, Default, 1);
end ;
Attached Files
File Type: eld VOLTHRESHOLD.ELD (3.7 KB, 27 views)
ant is offline  
Reply With Quote
Old 06-20-2007, 07:38 PM   #3

MrPaul's Avatar

Join Date: Sep 2006
Location: Texas
Posts: 373
Ignore this user

Thanks: 28
Thanked 65 Times in 23 Posts

Re: Simple Paintbar Request

Ant,

Thanks for the super fast response! Its exactly what I needed...

Is there any way that I could get it to not plot the open dash? Just the HLC?
MrPaul is offline  
Reply With Quote
Old 06-20-2007, 07:54 PM   #4
ant

ant's Avatar

Join Date: Sep 2006
Location: USA
Posts: 421
Ignore this user

Thanks: 22
Thanked 314 Times in 81 Posts

Re: Simple Paintbar Request

MrPaul, you can remove the Open and Close parameters in the PlotPaintBar() function call, but then the Close won't be colored. I think tradestation can only do OHLC or HL, but not HLC. I'll do a quick check in the TS forum and if I find anything I will post it here.
ant is offline  
Reply With Quote
Old 06-20-2007, 08:10 PM   #5

MrPaul's Avatar

Join Date: Sep 2006
Location: Texas
Posts: 373
Ignore this user

Thanks: 28
Thanked 65 Times in 23 Posts

Re: Simple Paintbar Request

Ant,

No worries taking the open and close out worked out just fine. I dont mind the close being a different color
MrPaul 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
ER2 trading with simple MP strategy TinGull Market Profile 1 03-17-2012 02:41 PM
K.I.S.S. Keep It Simple Stupid! Soultrader Trading Articles 36 04-27-2009 11:20 PM
Volume Based Charts Request for HELP brownsfan019 E-mini Futures Trading Laboratory 51 12-19-2008 04:07 PM
Backtest Request TinGull Coding Forum 2 04-10-2007 07:33 PM
Simple = Smart?? pierre General Discussion 7 10-29-2006 11:25 AM

All times are GMT -4. The time now is 11:22 AM.
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
CS to VB integration by DeskLancer
©2006-2011 Traders Laboratory, All Rights Reserved.