Go Back   Traders Laboratory > Trading Resources > Trading Indicators > Coding Forum

Coding Forum Collaborate, receive help, or discuss coding related issues.

Reply
Bookmarks
del.icio.us StumbleUpon Google Digg Facebook Furl Reddit Netscape

 
LinkBack Thread Tools Display Modes Language
  #1 (permalink)  
Old 06-20-2007, 06:58 PM
MrPaul's Avatar
MrPaul MrPaul is offline
Moderator

Trader Specs
 
Join Date: Sep 2006
Location: Texas
Posts: 390
Thanks: 29
Thanked 52 Times in 18 Posts
Send a message via AIM to MrPaul
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 Images
File Type: jpg example.jpg (13.7 KB, 39 views)

Reply With Quote
  #2 (permalink)  
Old 06-20-2007, 07:19 PM
ant's Avatar
ant ant is offline
Premium Trader

 
Join Date: Sep 2006
Posts: 293
Thanks: 0
Thanked 3 Times in 1 Post
Re: Simple Paintbar Request

MrPaul,

See how this works out for you.

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, 19 views)

Reply With Quote
  #3 (permalink)  
Old 06-20-2007, 07:38 PM
MrPaul's Avatar
MrPaul MrPaul is offline
Moderator

Trader Specs
 
Join Date: Sep 2006
Location: Texas
Posts: 390
Thanks: 29
Thanked 52 Times in 18 Posts
Send a message via AIM to MrPaul
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?

Reply With Quote
  #4 (permalink)  
Old 06-20-2007, 07:54 PM
ant's Avatar
ant ant is offline
Premium Trader

 
Join Date: Sep 2006
Posts: 293
Thanks: 0
Thanked 3 Times in 1 Post
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.

Reply With Quote
  #5 (permalink)  
Old 06-20-2007, 08:10 PM
MrPaul's Avatar
MrPaul MrPaul is offline
Moderator

Trader Specs
 
Join Date: Sep 2006
Location: Texas
Posts: 390
Thanks: 29
Thanked 52 Times in 18 Posts
Send a message via AIM to MrPaul
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

Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Volume Based Charts Request for HELP brownsfan019 E-mini Futures 49 02-06-2008 04:35 PM
Backtest Request TinGull Coding Forum 2 04-10-2007 07:33 PM
K.I.S.S. Keep It Simple Stupid! Soultrader Trading Articles 32 02-23-2007 12:44 PM
ER2 trading with simple MP strategy TinGull Market ProfileŽ 0 02-23-2007 08:53 AM
Simple = Smart?? pierre General Discussion 7 10-29-2006 11:25 AM


All times are GMT -4. The time now is 07:17 PM.

 


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59