WebBackground color is controlled by the ThinkScript function AssignBackgroundColor (); That function will use any argument you wish to assign different colors. Since you didn't specify what "how the stock is moving" mean to you here is a generic method. Your nearly unlimited in color selection since the function will accept RGB color values. WebthinkScript® provides a set of constants for colors. Here is the full list of the colors: BLACK BLUE CURRENT CYAN DARK_GRAY DARK_GREEN DARK_ORANGE DARK_RED DOWNTICK GRAY GREEN LIGHT_GRAY LIGHT_GREEN LIGHT_ORANGE LIGHT_RED LIME MAGENTA …
How to Add a Label in ThinkOrSwim (Beginner-Friendly) - YouTube
WebJun 18, 2024 · def MOMBULL=mom28>swingmomlow; Assignpricecolor (if swinghigh then (if MOMBEAR then color.red else color.white) else color.white); Assignpricecolor (if swinglow then ( if MOMBULL then … WebOct 5, 2024 · AddLabel (visible, # condition defining whether the label should appear; yes means always text, # text to display in label color # label color ); As a side note, #hint: .... displays a "helper" message for the code when you click the question mark in the selection list. Also, \n in the hint text places a "newline" character at that point. the nioght house
technical indicator - Understanding & Converting ThinkScripts ...
WebYou can achieve something similar using input & switch variables. As an example: input priceType = {default close, low, high}; def avgExample; switch (priceType) { case close: avgExample = ExpAverage (close, 8); case low: avgExample = ExpAverage (low, 8); case high: avgExample = ExpAverage (high, 8); } nsnullthoughts • 2 yr. ago WebFeb 14, 2024 · The 3 numbers after CreateColor is the RGB number. As a lucky strike extra, global colors are modifiable in the settings when you click on the gear box next to the study. Ruby: Webthat's a good start but would you know how to edit this so that when the distance between the 2 moving averages increases since the last candle, the green will be a lighter green; and then a darker green when the distance decreases. then instead of green, also have red for when it is negative, similar to like how the MACD is programmed i'd ... the niosh 5