♥ 0 |
Hi Pete,
Marked as spam
|
Private answer
Well the first thing you need to do is make use of that input named "period". As it stands, that input variable is not used anywhere in your code. So I imagine your question is just that. Where the heck do you use that input value? Well you cannot use it in any of the code you have provided. You are trying to determine if a Doji is present using this special built-in function: isDoji(). Details are found here: http://toslc.thinkorswim.com/center/reference/thinkScript/Functions/Tech-Analysis/IsDoji.html There is no way to use that special function to read from the daily time frame within an intraday chart. That function only works for the time frame the chart is set to. So you must create your own method for measuring and checking for Doji's. In it's most basic (and strict) form, a Doji is indicated when the close is equal to the open. That special function permits the open and close to be "almost equal". Do we can do it this way:
This will get the open and close from the daily time frame. Then check to see if the previous day's open and close where equal. If so, the label will appear. Otherwise the label will not appear at all. Marked as spam
|
Please log in to post questions.