please help with a question about indicator not always showing up - futures io
futures io futures trading



please help with a question about indicator not always showing up


Discussion in ThinkOrSwim

Updated
    1. trending_up 928 views
    2. thumb_up 0 thanks given
    3. group 1 followers
    1. forum 0 posts
    2. attach_file 1 attachments




Welcome to futures io: the largest futures trading community on the planet, with well over 125,000 members
  • Genuine reviews from real traders, not fake reviews from stealth vendors
  • Quality education from leading professional traders
  • We are a friendly, helpful, and positive community
  • We do not tolerate rude behavior, trolling, or vendors advertising in posts
  • We are here to help, just let us know what you need
You'll need to register in order to view the content of the threads and start contributing to our community.  It's free and simple.

-- Big Mike, Site Administrator

(If you already have an account, login at the top of the page)

 
Search this Thread
 

please help with a question about indicator not always showing up

(login for full post details)
  #1 (permalink)
seattle wa/usa
 
 
Posts: 2 since Oct 2014
Thanks: 0 given, 0 received

Hi,
I am new to this trying to learn thinkscript. I have a indicator that I have set up and it seems to work fine when it does plot but when I am looking back I notice multiple points where all the conditions for the indicator were met and it did not plot for some reason can someone please help let me know what is going on?

This is for /ES on a 4500t chart.

i posted the script I am using and a picture of the chart with the spots circled where i think it should show up and does not.

Thanks in advance.

the script:

input FastMA = 20;
input SlowMA = 50;
input Leadlow= -0.95;
input Sinelow = -0.95;
input Stochlow = 20;
input leadhigh = 0.95;
input sinehigh = 0.95;
input stochhigh = 80;

# long conditions

Def uptrend = MovAvgExponential("length" = fastma) is greater than Movexponential("length" = slowma);
def stochlong = StochasticFull("k period" = 3, "d period" = 14)."fullk" <= stochlow;
def sinelong = MESASineWave("price" = open)."sine wave" < sinelow;
def leadlong = MESASineWave("price" = open)."lead wave" < leadlow;
def wavelong = sinelong or lead long;

# short conditions

def downtrend = MovAvgExponential("length" = Fastma) is less than Movexponential("length" = slowma);
def stochshort = StochasticFull("k period" = 3, "d period" = 14)."FullK" >= stochhigh;
def sineshort = MESASineWave("price" = open)."sine wave" > sinehigh;
def leadshort = MESASineWave("price" = open)."lead wave" > leadhigh;
def waveshort = sineshort or leadshort;

# plots

plot ArrowUp = if uptrend and stochlong and wavelong then 1 else double.nan;
plot ArrowDown = if downtrend and stochshort and waveshort then 1 else double.nan;

plot longstop = if arrowup then (close - 3) else Double.NaN;
plot longprofit = if arrowup then (close + 2) else Double.NaN;
plot shortstop = if arrowdown then (close + 3) else Double.NaN;
plot shortprofit = if arrowdown then (close - 2) else Double.NaN;

ArrowUp.SetPaintingStrategy(PaintingStrategy.BOOLEAN_ARROW_UP);
ArrowDown.SetPaintingStrategy(PaintingStrategy.BOOLEAN_ARROW_DOWN);
longstop.SetPaintingStrategy(PaintingStrategy.points);
shortstop.SetPaintingStrategy(PaintingStrategy.points);
shortprofit.SetPaintingStrategy(PaintingStrategy.points);
longprofit.SetPaintingStrategy(PaintingStrategy.points);

Attached Thumbnails
Click image for larger version

Name:	questionspots.jpg
Views:	76
Size:	515.9 KB
ID:	163673  
Reply With Quote


futures io Trading Community Platforms and Indicators ThinkOrSwim > please help with a question about indicator not always showing up


Last Updated on October 27, 2014


Upcoming Webinars and Events
 

NinjaTrader Indicator Challenge!

Ongoing
 

Battlestations! Show us your trading desk - $1,500 in prizes!

March
 

Importance of Finding Your Own Way w/Adam Grimes

Elite only
 

Journal Challenge w/Jigsaw

April
     



Copyright © 2021 by futures io, s.a., Av Ricardo J. Alfaro, Century Tower, Panama, +507 833-9432, info@futures.io
All information is for educational use only and is not investment advice.
There is a substantial risk of loss in trading commodity futures, stocks, options and foreign exchange products. Past performance is not indicative of future results.
no new posts