View Single Post
Old 01-09-2016, 05:30 AM   #153
mpl
Human being with feelings
 
mpl's Avatar
 
Join Date: Oct 2013
Location: Moscow, Russia
Posts: 3,984
Default

Difference beetween normal and expert mode.

Normal mode: formula string should be only executable function, like if you`ll add 'y=' it will be looks like normal equation.

Right
Quote:
x^2
(final cached function: y = x^2 return y) - OK to cache
Wrong
Quote:
if x>0.2 then y = 1 end
(final cached function: y = if x>0.2 then y = 1 end return y) - error compilation, synthax error
Expert mode: string executes as Lua code.

Right
Quote:
y= x^2
(final cached function: y= x^2 return y) - OK to cache
Right
Quote:
if x == 0.5 then y = x end
if x >= 0.5 then y = 1-x end
if x + 0.2 >= 0.1 then y = x*10 end


(final cached function:
if x == 0.5 then y = x end
if x >= 0.5 then y = 1-x end
if x + 0.2 >= 0.1 then y = x*10 end
return y
) - OK to cache
Wrong
Quote:
x^2
(final cached function: x^2 return y) - error compilation, "y" not found
-----------

Quote:
seems to not work now.
Ah, FixedLearn indicators you mean. Yeap, that should be fixed now (they not shown if map is empty). I also leave "musthave" erase config only for versions lower than 1.11. So it is looks safety to update from 1.11 to current versions.

Quote:
Is it more about screen updates versus focus?
it is more prevent user errors when compiling formula and proper storing/geting it from project file.

Last edited by mpl; 01-09-2016 at 05:47 AM.
mpl is offline   Reply With Quote