Jump to content

Welcome to the new Traders Laboratory! Please bear with us as we finish the migration over the next few days. If you find any issues, want to leave feedback, get in touch with us, or offer suggestions please post to the Support forum here.

  • Welcome Guests

    Welcome. You are currently viewing the forum as a guest which does not give you access to all the great features at Traders Laboratory such as interacting with members, access to all forums, downloading attachments, and eligibility to win free giveaways. Registration is fast, simple and absolutely free. Create a FREE Traders Laboratory account here.

daedalus

Anyway to Plot an Indicator Value Without Actually Plotting It?

Recommended Posts

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...

 

//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.

 

attachment.php?attachmentid=10302&stc=1&d=1240615651

 

Possible?

1.png.ce3ca832acc4cba619f93ce19ddcc3ef.png

Edited by Soultrader

Share this post


Link to post
Share on other sites

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),"ADXVal",adxColor);

ADXV2.gif.870e79e7a58f09a92995b1e43d2c4dce.gif

ADXV3.gif.976c723c94778bf30e5c2292faf8ecbf.gif

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.