Skip to content

Commit

Permalink
Update playground
Browse files Browse the repository at this point in the history
  • Loading branch information
anandanand84 committed Mar 20, 2017
1 parent 3213fa9 commit fcd82ac
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
4 changes: 4 additions & 0 deletions README.md
Expand Up @@ -35,6 +35,10 @@ or
sma({period : 5, values : [1,2,3,4,5,6,7,8,9], reversedInput : true});
```

# Playground

[Playground with code completion](https://anandanand84.github.io/ "Playground")

# Available Indicators

1. [Simple Moving Average (SMA)](https://tonicdev.com/anandaravindan/sma "SMA").
Expand Down
10 changes: 3 additions & 7 deletions testdocs.html
Expand Up @@ -25,13 +25,9 @@
allowNonTsExtensions: true
});
editor = monaco.editor.create(container, {
value: `var mainput = input('ma1', InputType.Source, 'close');
var fastPeriod = input('Fast Period', 'Number', 50);
var slowPeriod = input('Slow Period', 'Number', 200);
var sma50 = sma({period : fastPeriod , values: mainput});
plot('sma50',sma50);
var sma200 = sma({period : slowPeriod , values: mainput});
plot('sma200',sma200);
value: `//Try indicators and check console
let result = sma({period : 10 , values: [1,2,3,4,5,6,7,8,9]});
console.log(result)
`,
fontSize : 12,
emptySelectionClipboard:false,
Expand Down

0 comments on commit fcd82ac

Please sign in to comment.