Skip to content

Instantly share code, notes, and snippets.

View C451's full-sized avatar

ChartMaster C451

  • Internet
View GitHub Profile
@C451
C451 / gist:362210179fd1c452b4907a8f3e04a252
Last active May 20, 2023 17:47
Converting TVJS overlay to NavyJs with ChatGPT-4 (approx). Prompt Template.
I need to convert trading-vue-js overlay to my new .navy language. Let me show how it should look:
```navyjs
// Navy ~ 0.1-lite
// <ds>Description</ds>
[OVERLAY name=OverlayName, ctx=Canvas, verion=1.0.0, author=GPT4]
// Define new props (types: number, string, boolean, object ...), e.g.:
prop('color', { type: 'color', def: '#31ce31' })
// Local Variables (those defined in data() function), e.g.:
@C451
C451 / Scripts.md
Last active October 20, 2020 08:17
Scripts: Early Adopter Guide

Scripts: Early Adopter Guide

What

TVJS Scripts is a time-series engine, similar to the tradingview's PINE script. Syntax is based on javascript, in the future it will be possible to make custom code constructions with regular expressions (extend the language).

State

At this moment it's an experimental feature, breaking changes are very likely.

@C451
C451 / Grin.vue
Last active January 21, 2022 23:26
Grin
<script>
// Grin
// Adds all necessary stuff for you.
import { Overlay } from 'trading-vue-js'
export default {
name: 'Grin',
mixins: [Overlay],
methods: {