Skip to content

Instantly share code, notes, and snippets.

@jtryan
jtryan / filebeat-cloudtrail-s3-elasticsearch.json
Created June 30, 2022 20:52 — forked from vindimy/filebeat-cloudtrail-s3-elasticsearch.json
Cloudformation file that sets up Filebeat/Cloudtrail Elasticsearch forwarding (Cloudtrail writes to S3 bucket)
{
"AWSTemplateFormatVersion": "2010-09-09",
"Description": "Elastic SIEM - Filebeat ingestion of Cloudtrail logs from S3",
"Parameters": {
"KeyPair": {
"Type": "AWS::EC2::KeyPair::KeyName",
"Default": "",
"Description": "Name of an existing EC2 KeyPair to enable SSH access"
},
@jtryan
jtryan / PriceAxisVolumeDelta.js
Created September 25, 2022 17:53 — forked from arlenner/PriceAxisVolumeDelta.js
Price Axis Volume Delta indicator for the Tradovate platform.
const predef = require("./tools/predef");
const { min, max, du, px, op } = require('./tools/graphics')
class PriceAxisDelta {
init() {
this.byPrice = {}
this.openDate = new Date()
if(this.props.startsYesterday) this.openDate.setTime(Date.now() - 1000*60*60*24)
this.openDate.setHours(this.props.marketOpenHours, this.props.marketOpenMinutes)
@jtryan
jtryan / yourCustomStrategy.js
Created September 25, 2022 17:53 — forked from arlenner/yourCustomStrategy.js
Tradovate Custom Strategy template.
const { Strategy, TdEvent } = require('../strategies/strategy')
class YourCustomStrategy extends Strategy {
constructor(params) {
super(params)
}
init(props) {
return {
//your initial state here!