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

Reply
Old 04-24-2009, 08:27 PM   #1

daedalus's Avatar

Join Date: Jul 2007
Location: Omaha, NE
Posts: 627
Ignore this user

Thanks: 431
Thanked 546 Times in 225 Posts



Anyway to Plot an Indicator Value Without Actually Plotting It?

I got a little code that just colors a histogram green if the ADX < 20 and Red > 20 and plots a bar that color...

Here is the code...

Code:
//ADX Modified
    
inputs: Length(14), ADXCriteria(20);

variables: ADXValue(0), Flag(False);

//Begin ADX Code
ADXValue = ADX(Length);

if ADXValue < ADXCriteria then Flag = true 
    else Flag = false;

if Flag = true then Plot1(1,"ADX",green) 
    else Plot1(1,"ADX",red);
    
    
//Alert criteria
if OneAlert (condition11=true and condition11[1]=false)
    then Alert( "ADX Under 20" );
And it all works right dandy except i'd like to be able to look down at a given time and see what the ADXValue is... If its at 40 then I know I don't have to pay attention for awhile but if its at 21 then I should be looking for setups.

But is there anyway to get just the value i've circled to show up without actually plotting the line and screwing up the scaling on the indicator as it is?

If I plot ADXValue I get the value i'm looking for but I also have to plot a squiggly line I don't want to have to look at.



Possible?
Attached Thumbnails
Anyway to Plot an Indicator Value Without Actually Plotting It?-1.png  

Last edited by Soultrader; 04-25-2009 at 12:48 AM.
daedalus is offline  
Reply With Quote
Old 04-24-2009, 08:35 PM   #2

Tams's Avatar

Join Date: Sep 2008
Location: Geelong
Posts: 3,590
Ignore this user

Thanks: 2,027
Thanked 1,402 Times in 862 Posts



Re: Anyway to Plot an Indicator Value Without Actually Plotting It?

check out these links:

http://www.traderslaboratory.com/for...html#post62946
http://www.traderslaboratory.com/for...line-5769.html

just change ATR to ADX

Last edited by Tams; 04-24-2009 at 08:42 PM.
Tams is offline  
Reply With Quote
The Following User Says Thank You to Tams For This Useful Post:
daedalus (04-25-2009)
Old 04-24-2009, 08:59 PM   #3

suriNotes's Avatar

Status: Educational Partner
Join Date: Nov 2007
Location: Seattle, WA
Posts: 165
Ignore this user

Thanks: 8
Thanked 156 Times in 59 Posts



Re: Anyway to Plot an Indicator Value Without Actually Plotting It?

Hi,

There is a simple trick (in TS) using Plot commands...
If you convert the number to a String, it will plot the value in
StatusLine like in this chart and it will NOT plot line on chart...
(Add Analysis Technique display from Format Window for StatusLine)

Pl. see the code below and the chart images.

Regards,
Suri



//ADX Modified

inputs: Length(14), ADXCriteria(20);

variables: ADXValue(0), adxColor(0);

//Begin ADX Code
ADXValue = ADX(Length);

if ADXValue < ADXCriteria then
adxColor = DARKGREEN
else adxColor=RED;

Plot1("ADX: "+ numtoStr(ADXValue,2),"ADX Val",adxColor);
Attached Thumbnails
Anyway to Plot an Indicator Value Without Actually Plotting It?-adxv2.gif   Anyway to Plot an Indicator Value Without Actually Plotting It?-adxv3.gif  
suriNotes is offline  
Reply With Quote
The Following 2 Users Say Thank You to suriNotes For This Useful Post:
daedalus (04-25-2009), thrunner (04-24-2009)
Old 04-25-2009, 12:43 AM   #4

daedalus's Avatar

Join Date: Jul 2007
Location: Omaha, NE
Posts: 627
Ignore this user

Thanks: 431
Thanked 546 Times in 225 Posts



Re: Anyway to Plot an Indicator Value Without Actually Plotting It?

Suri that worked perfectly!!!! THANK YOU SOOOOO MUCH!

I just got done reading your book for a second time through yesterday! Great stuff the second time through as well!
daedalus is offline  
Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Making TS Plot Wider daedalus Coding Forum 14 04-23-2009 11:37 AM
Plotting Globex High and Low brownsfan019 Open E Cry 3 03-26-2009 07:38 AM
Can Someone Tell Me How to Get an Indicator to Stop Plotting shortski Coding Forum 31 02-08-2009 01:49 PM
Plotting Market Profile on TS dah7 Market Profile 9 03-16-2007 10:49 PM
How to plot MP using IB data feed? jj2005 Market Profile 0 03-14-2007 11:34 AM

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