This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "keyords and operators": [ | |
| "!=", | |
| "%", | |
| "%=", | |
| "*", | |
| "*=", | |
| "+", | |
| "+=", | |
| "-", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [{ | |
| "0": [ | |
| "\\b(\\w\\+.all)\\b" | |
| ] | |
| }, | |
| { | |
| "1": [ | |
| "(color)(\\.)(aqua|black|blue|fuchsia|gray|green|lime|maroon|navy|olive|orange|purple|red|silver|teal|white|yellow)" | |
| ] | |
| }, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?xml version="1.0" encoding="UTF-8"?> | |
| <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
| <plist version="1.0"> | |
| <dict> | |
| <key>comment</key> | |
| <string>Pinescript</string> | |
| <key>fileTypes</key> | |
| <array> | |
| <string>pine</string> | |
| <string>pinescript</string> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Pine Script™ language reference manual | |
| Language Operators | |
| != | |
| Not equal to. Applicable to expressions of any type. | |
| expr1 != expr2 | |
| RETURNS | |
| Boolean value, or series of boolean values. | |
| % |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import math | |
| def rgb_to_hsv(r, g, b): | |
| r = float(r) | |
| g = float(g) | |
| b = float(b) | |
| high = max(r, g, b) | |
| low = min(r, g, b) | |
| h, s, v = high, high, high |
NewerOlder