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)
Greetings all, I have a function where within it I call the LinearRegValue function and save it to a variable, with the intention of course of saving the whole "series" of those values to that variable so I can access them as HLR[0], HLR[1], etc. Like so:
I was getting some puzzling results so I added PRINT statements in the function to see what was getting saved in variable HLR. Turns out the value in HLR[0] is fine and always matches exactly with LinearRegValue[0], but what gets saved in HLR[1] is always very *slightly* off from what is LinearRegValue[1]. For example:
It's a little bit weird... has anyone else ever encountered this? My function is set to "Auto-detect" and overall it returns a boolean value (ie. the value of "FilterResult").
Thanks!
Shawn
Can you help answer these questions from other members on NexusFi?
You'd have to dig into the LRV function to see what values it is using, but my guess is that is the LRV [1] calculation is using the current close, and not the previous close.
What do you get, for example, with this LRV(Close[1], hfx, 0) ? Does that return same value as HLR[1]?
And if you are saving LRV result in HLR, why do you need to use LRV(Close, hfx, 0)[1] at all? I would just use HLR[1], since that works correctly.
You'd have to dig into the LRV function to see what values it is using, but my guess is that is the LRV [1] calculation is using the current close, and not the previous close.
What do you get, for example, with this LRV(Close[1], hfx, 0) ? Does that return same value as HLR[1]?
And if you are saving LRV result in HLR, why do you need to use LRV(Close, hfx, 0)[1] at all? I would just use HLR[1], since that works correctly.
Thanks Kevin... I found the problem - I simply tried the "fast calculation" version of LinearRegValue (ie. LinearRegValueFC) and left everything else as is, and it worked perfect! Weird eh? Must be an indexing issue or something in the regular LinearRegValue...
Thanks Kevin... I found the problem - I simply tried the "fast calculation" version of LinearRegValue (ie. LinearRegValueFC) and left everything else as is, and it worked perfect! Weird eh? Must be an indexing issue or something in the regular LinearRegValue...
Thank You!
Shawn
Awesome!
How are you using Tradestation as a Canadian, since they do not allow accounts there anymore? Are you paying a monthly fee for the platform and data?