Hi All. I'm new to Lua and indicator coding, but I have done some programming before.
I'm trying to code the DeMark TD Setup indicator described by Jason Perl in the book DeMark Indicators. The logic of it is very simple and I am not experiencing any problems there. I am experiencing problems with the display.
Can anyone please either tell me how, or direct me to a resource which explains how, to place discrete marks on the chart window? I would especially like to place numbers above or below the bars, but anything at all would be a step forward.
I noticed that the built-in indicator SAR places dots above and below the bars. It seems to use 'core.Dot' under the 'instance:addStream' method. It's just a little frustrating that 'core.Dot' is not mentioned at all in the list of 'core' functions in the Indicore SDK documentation. On the one hand it's great that the documentation is brief and to the point, but on the other hand I can't find how to do some seemingly simple things.
I have tried using the 'text_output:set(index, level, label)' method, with index being the bar number (e.g. 'source:size() - n'), level being a price just above or below the bar, and label being a literal string such as "1", but it hasn't put anything on a chart as yet. Again, the documentation tells me that this function exists but it does not give me any context regarding how and where Marketscope interacts with it.
I would greatly appreciate any help or suggestions.