Skip to content

Commit fc02292

Browse files
authored
Merge branch 'main' into add-backadjustment
2 parents f5e8393 + f096176 commit fc02292

File tree

14 files changed

+607
-352
lines changed

14 files changed

+607
-352
lines changed

.eslintrc.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,5 +23,6 @@ module.exports = {
2323
'no-restricted-syntax': 'off',
2424
'no-await-in-loop': 'off',
2525
'no-continue': 'off',
26+
'guard-for-in': 'off',
2627
},
2728
};

.github/workflows/tests.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ name: Tests
22

33
on:
44
push:
5-
pull_request:
65
workflow_dispatch:
76
schedule:
87
- cron: '0 0 * * *'

examples/BuiltInIndicator.js

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,15 @@ const TradingView = require('../main');
44
* This example tests built-in indicators like volume-based indicators
55
*/
66

7-
const volumeProfile = new TradingView.BuiltInIndicator('VbPFixed@tv-basicstudies-139!');
7+
const volumeProfile = new TradingView.BuiltInIndicator('VbPFixed@tv-basicstudies-241!');
88

9-
if (!process.argv[2] && !['VbPFixed@tv-basicstudies-139!', 'Volume@tv-basicstudies-144'].includes(volumeProfile.type)) {
9+
const AUTHENTICATED_INDICATORS = [
10+
'VbPFixed@tv-basicstudies-241',
11+
'VbPFixed@tv-basicstudies-241!',
12+
'Volume@tv-basicstudies-241',
13+
];
14+
15+
if (!process.argv[2] && !AUTHENTICATED_INDICATORS.includes(volumeProfile.type)) {
1016
throw Error('Please specify your \'sessionid\' cookie');
1117
}
1218

examples/ReplayMode.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,6 @@ async function addIndicator(name, pineId, options = {}) {
9191
});
9292
}
9393

94-
addIndicator('Volume', 'Volume@tv-basicstudies-144');
94+
addIndicator('Volume', 'Volume@tv-basicstudies-241');
9595
addIndicator('EMA_50', 'STD;EMA', { Length: 50 });
9696
addIndicator('EMA_200', 'STD;EMA', { Length: 200 });

0 commit comments

Comments
 (0)