Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

The solution to the syntax error problem with the input "=" in Pine script code is to use the assignment operator ":=" instead of "=" in the input statement. This is because the "=" operator is used for comparisons, while ":=" is used for assignment in Pine script. So, the correct code would be:

//@version=4
study("My Script")

myInput = input(10, title="My Input")

This will assign the default value of 10 to the myInput variable and allow the user to modify it from the input dialog.