Programing LUA question
Posted: Thu Mar 02, 2017 6:27 am
Hi,
What is the purpose of +1 in this line of programming, because sometimes they put it and other times not.
The purpose of first is to ensure the existence of data in a certain period?
Thanks
What is the purpose of +1 in this line of programming, because sometimes they put it and other times not.
The purpose of first is to ensure the existence of data in a certain period?
- Code: Select all
first= math.max(FastMA1.DATA:first(), SlowMA1.DATA:first())+1;
Thanks