Welcome to NexusFi: the best trading community on the planet, with over 150,000 members Sign Up Now for Free
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 for basic access, or support us by becoming an Elite Member -- see if you qualify for a discount below.
-- Big Mike, Site Administrator
(If you already have an account, login at the top of the page)
Hi Folks, I just joined forum. Looking forward to growing my experience with all of you. I'd scoured the web but have struggled to do these 2 things in TOS with thinkscript editor.
1. Plot chart of an adjustment factor/ buffer zone of say +.5% and - .5% around 2 separate mov. averages - a 13 period EMA and a special moving average defined as (O+H+L+2*C)/5. The adjustment factor could change (say be .7% or .8% instead of 0.5% so if it can be chosen/editable would be great). I've attached a picture to try to be clear. So it will chart 3 lines - moving avg line in middle and a green line above .5% and yellow line .5% below the MA. (see attached pic/drawing for clarity) .
2. Need to add 3 custom columns in say Watchlist (which will be used for trading strategy analysis)- 2 of those columns will be user entered by me- Col 1 =Qty, Col 2 =Purchase price and Col 3= run p/l- will be calculated as Col 1 * (last price- purchase price). I guess, TOS would keep updated last price with realtime quotes; and I should be able to fire alerts off of any of these 3 new custom columns?
Can you help answer these questions from other members on NexusFi?
The first part or making an indicator is pretty straightforward. The second one I don't think is possible to do with ToS. You might be better off using a spreadsheet for that.
Ah, I see. You said and so I misunderstood what you meant. Here's the updated code. You can toggle between the close or the specialFormula using the useSpecial in the settings page
it seems to work...I will chekc values later..so I guess the logic is if special is set to yes, then dont use exponential but use special, otherwise use EMA.
What perplexes me is that you only coded NO- so how did system get the yes option?