Pine Script Issues line 10: Syntax error at input 'end of line without line continuation' - syntax-error

I have been stumped on this issue for a little while. I am new to pine-script and I am hoping to get some insight on how to fix this line 10: Syntax error at input 'end of line without line continuation' I am getting.
I checked my tab spacing and nothing seems to work. Any help would be appreciated
tp =9
f(n) => 100-abs(50-n)*2
colorFill(v) =>
v>=95?http://color.new(http://color.red/,tp*0):
v>=90?http://color.new(http://color.red/,tp*1):
v>=85?http://color.new(http://color.red/,tp*2):
v>=80?http://color.new(http://color.red/,tp*3):
v>=75?http://color.new(http://color.red/,tp*4):
v>=70?http://color.new(http://color.red/,tp*5):
v>=65?http://color.new(http://color.red/,tp*6):
v>=60?http://color.new(http://color.red/,tp*7):
v>=55?http://color.new(http://color.red/,tp*8):
v>=50?http://color.new(http://color.red/,tp*9):
v>=45?http://color.new(http://color.red/,tp*9):
v>=40?http://color.new(http://color.red/,tp*8):
v>=35?http://color.new(http://color.red/q,tp*7):
v>=30?http://color.new(http://color.red/,tp*6):
v>=25?http://color.new(http://color.red/,tp*5):
v>=20?http://color.new(http://color.red/,tp*4):
v>=15?http://color.new(http://color.red/,tp*3):
v>=10?http://color.new(http://color.red/,tp*2):
v>=5?http://color.new(http://color.red/,tp*1):
http://color.new(http://color.red/,tp*0)

You had multiple non-syntax symbols in the code. Cleaned it up, now compiling.
tp =9
colorFill(v) =>
v>=95?color.new(color.red,tp*0):
v>=90?color.new(color.red,tp*1):
v>=85?color.new(color.red,tp*2):
v>=80?color.new(color.red,tp*3):
v>=75?color.new(color.red,tp*4):
v>=70?color.new(color.red,tp*5):
v>=65?color.new(color.red,tp*6):
v>=60?color.new(color.red,tp*7):
v>=55?color.new(color.red,tp*8):
v>=50?color.new(color.red,tp*9):
v>=45?color.new(color.red,tp*9):
v>=40?color.new(color.red,tp*8):
v>=35?color.new(color.red,tp*7):
v>=30?color.new(color.red,tp*6):
v>=25?color.new(color.red,tp*5):
v>=20?color.new(color.red,tp*4):
v>=15?color.new(color.red,tp*3):
v>=10?color.new(color.red,tp*2):
v>=5?color.new(color.red,tp*1):
color.new(color.red,tp*0)

Related

How to debug the error thrown by Doctrine

What ?
This is the error thrown by my doctrine when writing my query
[Semantical Error] line 0, col 971 near '(\n ': Error: Class '(' is not defined.
How can i detect the exact position where the error occurs in my doctrine style of writing, in short how to read this error ?
my Query pattern
$qb1 = $this->_em->createQueryBuilder();
$qb1->select('
count(case when (boolShit) then id end)
')
->from(someTable);
$qb1->getQuery()->getResult();
Assuming that you have Symfony2, you can debug it with using app_dev.php. If you do so, you are able to press plus button beneath the error output that you've shown. This pus button is on the end of the line starting with [QueryException].
If you'll find this magic "plus button" you will find the exact line of getting result (i.e. getResult(), getArrayResult()...)
Example output with "plus button":

Pig Filter Syntax error, unexpected symbol

inputData = LOAD '$input' AS (line:chararray);
statusLineFilter = FILTER smallData BY (line MATHCES '^.* AppWrite-Dispatcher: Status code: [0-9]+$');
This code, when I run it, yields this error: ERROR org.apache.pig.tools.grunt.Grunt - ERROR 1200: Syntax error, unexpected symbol at or near 'line'
The log file says the exact same thing. I'm at a loss, because the exact same syntax is working in other scripts I've written.
In order to avoid misspelling of key words I recommend you to use an IDE or a Text-Editor like emacs with the pig-mode.el which add syntax highlight ;)

Error in SQL-Oracle Code when raising value to the nth power - Need assistance

I'm running SQL code within Oracle and need help revising the below "Update" script. The below script gives me the error “missing equal sign” due to the " ^ " in the last line of the code that is meant to take the Table-B.ValueY value to the Table-A.ValueZ power. I tried changing the last line to a Power (x,y) formula, but that gives me "%s: invalid identifier" error. I also went so far as to change the code completely into a CREATE TABLE, but that just appears be caught in a loop and never finishes.
Any help is much appreciated.
Original code:
UPDATE Table-A
SET Column-X = 0
WHERE
TABLE-A.mid = TABLE-B.mid AND
TABLE-A.tdlinx = TABLE-B.tdlinx AND
TABLE-B.ValueY ^ TABLE-A.ValueZ > 0.1;
there is a POWER function
SELECT POWER(10,2) FROM DUAL;
yours should look similar to this:
POWER( TABLE-B.ValueY, TABLE-A.ValueZ ) > 0.1

GNUstep.csh file will not source

When I try the following in my GNUstep/Makefiles directory:
source GNUstep.csh
I receive the following output:
bash: GNUstep.csh: line 84: syntax error near unexpected token `"${GNUSTEP_USER_CONFIG_FILE}"'
bash: GNUstep.csh: line 84: ` switch ("${GNUSTEP_USER_CONFIG_FILE}")'
Obviously something is wrong, but I don't really know bash and from what I see nothing appears to be mislabled, unless there isn't supposed to be quotes around the variable or something.

error when trying to import ps file by grImport in R

I need to create a pdf file with several chart created by ggplot2 arranged in a A4 paper, and repeat it 20-30 times.
I export the ggplot2 chart into ps file, and try to PostScriptTrace it as instructed in grImport, but it just keep giving me error of Unrecoverable error, exit code 1.
I ignore the error and try to import and xml file generated into R object, give me another error:
attributes construct error
Couldn't find end of Start Tag text line 21
Premature end of data in tag picture line 3
Error: 1: attributes construct error
2: Couldn't find end of Start Tag text line 21
3: Premature end of data in tag picture line 3
What's wrong here?
Thanks!
If you have no time to deal with Sweave, you could also write a simple TeX document from R after generating the plots, which you could later compile to pdf.
E.g.:
ggsave(p, file=paste('filename', id, '.pdf'))
cat(paste('\\includegraphics{',
paste('filename', id, '.pdf'), '}', sep=''),
file='report.pdf')
Later, you could easily compile it to pdf with for example pdflatex.