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 am new to EasyLanguage so I apologize ahead of time if I missed something obvious. I read the programmer's guider and I have the language reference handy, however I seem to be having a hard time doing something very simple. I am trying to use the function LowD (which is a wrapper for OHLCPeriodsAgo) with a 15-minute interval RadarScreen. However, no matter what I do LowD always returns -1. The documentation indicates that this is a problem with not enough historical bars being available, and I have fiddled with the max bars back value and the "Load additional data for accumulative calculations" option, all to no avail. My code is VERY simple:
once( runOnce = false )
begin
Value1 = LowD(1);
Plot1( Value1 , "Last Low" , White , Black );
runOnce = true;
end
What am I missing here?
Can you help answer these questions from other members on NexusFi?
Best Threads (Most Thanked) in the last 7 days on NexusFi
A quick guess would be that at the time your code is executed, which will be on the first bar/tick,
LowD(1) doesn't have a value, yet.
What happens if you get rid of the "once" or if you replace it with "if CurrentBar = 2"?