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)
I have an indicator that begins calculating at a certain bar. It's a formula, not a line tool, but it has a starting point.
The problem is that there are hundreds, sometimes thousands, of bars on the screen, and its very annoying to have to tinker with the input value in order to get the indicator positioned right.
Does anybody know how to make a tradestation indicator, written in easy language, draggable?
Thanks.
Can you help answer these questions from other members on NexusFi?
I am not exactly sure what you have in mind, but you might want to look into the Commentary function or mouse clicks to trigger a calculation at a certain bar.
Good solution. Having the bar numbers show up in the analysis window takes most of the effort out of repositioning. Hope that's what you meant.
Thanks.
..........
To spell this out for anyone reading, I added the following to the indicator:
if CommentaryEnabled then begin
commentary(Value1) // value1 is the bar number
end;
Adding that lets me click on the bar I want to have its bar number pop up in the analysis commentary window, which lets me enter that value only once instead of hunting around.
..........
Tradestation's UI overall is quite horrible. Seems like it was designed around 1998. Their iPad app, on the other hand - brilliant. I know they have good people, doing something other than redesigning the application.
I was more thinking along the lines of eliminating the manual inputting completely, but if this works for you that's great. If you put in the barnumber manually, why not just feed it into the indicator directly?
Couldn't make it do that. In any case the procedure, which involves clicking the Commentary button on the toolbar before doing anything else, wouldn't specify which of the indicators to update with the click, if there should be more than one on the chart. They would all respond.
Look into the ChartingHost Class. This has a ChartElementClick event that is triggered every time the study detects a click on the chart and can be used to return various values.