WebYou could use ThinkScript: def barCount = IF !IsNaN (close) THEN IF IsNaN (barCount [1]) THEN 1 ELSE barCount [1] + 1 ELSE barCount [1]; AddLabel (yes, "BarCount: " + barCount); neckerpete • 2 yr. ago brilliant, thanks! Moses-Mc • 2 yr. ago Is it easier to use just BarNumber () in AddLabel function? neckerpete • 2 yr. ago
Thinkscript - An Introductory Guide - AlgoTrading101 Blog
WebFeb 26, 2024 · 1 Answer Sorted by: 0 The equivalent for thinkScript's BarNumber () is Pine-Script's bar_index. thinkScript and Pine-Script both use a loop that represents the trading period range in effect. The BarNumber/bar_index value represents each measurement period that is being calculated through the loop. WebJul 5, 2024 · Hello, I'm trying the below to check if price is between 2 values but this is returning all values without necessarily matching the condition. Can you please help? … disney mulan costume for kids
Thinkscript - An Introductory Guide - AlgoTrading101 Blog
WebApr 22, 2024 · This is the piece we need to bridge between the lengths and the angle. Once we do the opposite side length / adjacent side length and get the answer, we can then do the following to get the angle: On the calculator: find the trigonometry functions, then find and select Tan^-1. This will return the angle. WebHere is a little thinkscript you can use: input EntryPrice = 123.45; input ExitPrice =543.21; plot Buy = EntryPrice; plot Sell = ExitPrice; This will put two horizontal lines across your plots, one at $123.45, the other at $543.21. It's not fancy, or dynamic. So if you switch the graph to a different position, these numbers will have to be ... WebApr 3, 2024 · The easiest way to do so is to add an input selector which adds as a toggle switch to either display clouds or not. Here is an example code that displays cloud between two dates, run this on a daily aggregation. To turn the cloud off, go into the user interface and set the input selector to the variable "showCloud" to no. Code: cow storybots