Telegram Group & Telegram Channel
🌲 #newfeature
Changes to security()'s resolution= parameter.

The security() function was recently updated to accommodate an empty string or na as an argument to its resolution= parameter. In both cases, the chart's resolution (timeframe.period) will be used.

This will be handy in conjunction with the new "Same as Symbol" choice which is now part of the recent resolution widget's dropdown, which appears in the script's Inputs when you use:
r = input("D", type = input.resolution)


When users select "Same as Symbol" in the dropdown, the widget returns an empty string. As we had documented here, coders previously had to use special logic to process an empty string, as security() would throw an error if an empty string was used for the resolution. Now, we can forego the special logic and simply write:
r = input("D", type = input.resolution)
c = security(syminfo.tickerid, r, close)


Note that the default value we supply in the input() call must be one of the dropdown's choices (or an empty string for "Same as Symbol), otherwise "Same as Symbol" will be used in its place.



tg-me.com/PineCodersSquawkBox/42
Create:
Last Update:

🌲 #newfeature
Changes to security()'s resolution= parameter.

The security() function was recently updated to accommodate an empty string or na as an argument to its resolution= parameter. In both cases, the chart's resolution (timeframe.period) will be used.

This will be handy in conjunction with the new "Same as Symbol" choice which is now part of the recent resolution widget's dropdown, which appears in the script's Inputs when you use:

r = input("D", type = input.resolution)


When users select "Same as Symbol" in the dropdown, the widget returns an empty string. As we had documented here, coders previously had to use special logic to process an empty string, as security() would throw an error if an empty string was used for the resolution. Now, we can forego the special logic and simply write:
r = input("D", type = input.resolution)
c = security(syminfo.tickerid, r, close)


Note that the default value we supply in the input() call must be one of the dropdown's choices (or an empty string for "Same as Symbol), otherwise "Same as Symbol" will be used in its place.

BY PineCoders Squawk Box




Share with your friend now:
tg-me.com/PineCodersSquawkBox/42

View MORE
Open in Telegram


PineCoders Squawk Box Telegram | DID YOU KNOW?

Date: |

Find Channels On Telegram?

Telegram is an aspiring new messaging app that’s taking the world by storm. The app is free, fast, and claims to be one of the safest messengers around. It allows people to connect easily, without any boundaries.You can use channels on Telegram, which are similar to Facebook pages. If you’re wondering how to find channels on Telegram, you’re in the right place. Keep reading and you’ll find out how. Also, you’ll learn more about channels, creating channels yourself, and the difference between private and public Telegram channels.

Why Telegram?

Telegram has no known backdoors and, even though it is come in for criticism for using proprietary encryption methods instead of open-source ones, those have yet to be compromised. While no messaging app can guarantee a 100% impermeable defense against determined attackers, Telegram is vulnerabilities are few and either theoretical or based on spoof files fooling users into actively enabling an attack.

PineCoders Squawk Box from jp


Telegram PineCoders Squawk Box
FROM USA