Skip to content

Instantly share code, notes, and snippets.

View modster's full-sized avatar
🧠

EM Greeff modster

🧠
View GitHub Profile

'{"direction":"stop","close":"{{close}}","time":"{{time}}"}'

strategy(title, shorttitle, overlay, format, precision, scale, pyramiding, calc_on_order_fills, calc_on_every_tick, max_bars_back, backtest_fill_limits_assumption, default_qty_type, default_qty_value, initial_capital, currency, slippage, commission_type, commission_value, process_orders_on_close, close_entries_rule)
@modster
modster / index.js
Created May 7, 2020 06:00
Exorts a function that responds to any HTTP request.
/**
* Responds to any HTTP request.
*
* @param {!express:Request} req HTTP request context.
* @param {!express:Response} res HTTP response context.
*/
exports.helloWorld = (req, res) => {
let message = req.query.message || req.body.message || 'Hello World!';
res.status(200).send(message);
};
@modster
modster / index.html
Last active November 19, 2020 20:27 — forked from solrevdev/index.html
Vue.js - gistpad - display local police info
<div id="app">
<h2>Police data for Oxfordshire</h2>
<p>Using data from <a href="https://data.police.uk/docs/method/crime-street/">https://data.police.uk/docs/method/crime-street/</a></p>
<p>Built using <a href="https://vuejs.org/">vue.js</a> and <a href="https://marketplace.visualstudio.com/items?itemName=vsls-contrib.gistfs">gistpad</a></p>
<p>Dataset source <a href="https://data.police.uk/api/crimes-street/all-crime?poly=51.85110973276099,%20-1.4057047320491165:51.86298424914946,%20-1.1282999468928665:51.71262569681858,%20-1.1241800738459915:51.70241375059155,%20-1.3905985308772415:51.850261433101906,%20-1.4043314410334915">https://data.police.uk/api/crimes-street/all-crime?poly=51.85110973276099,%20-1.4057047320491165:51.86298424914946,%20-1.1282999468928665:51.71262569681858,%20-1.1241800738459915:51.70241375059155,%20-1.3905985308772415:51.850261433101906,%20-1.4043314410334915</a></p>
<p>Sample data: <a href="sample.json">sample.json</a></p>
<button @click="clearData">Clear data<
@modster
modster / placeholders.md
Created February 6, 2021 07:51
TradingView Strategy Placeholders

{{strategy.position_size}} {{strategy.order.action}} {{strategy.order.contracts}} {{strategy.order.price}} {{strategy.order.id}} {{strategy.order.comment}} {{strategy.order.alert_message}} {{strategy.market_position}} {{strategy.market_position_size}} {{strategy.prev_market_position}}

@modster
modster / index.md
Last active February 7, 2021 10:54
pinescript

plotchar(series, title, char, location, color, transp, offset, text, textcolor, editable, size, show_last, display) → void plotchar

@modster
modster / MoonMiner.md
Created July 9, 2021 00:59
MoonMiner

‎‎​

@modster
modster / PlayExplosion.lua
Created September 21, 2021 03:00
Using Particles for Explosions
-- From:
-- https://developer.roblox.com/en-us/onboarding/using-particles-for-explosions/1#testing-particle-bursts
local trapObject = script.Parent
local particleEmitter = trapObject:FindFirstChild("Explosion")
local EMIT_AMOUNT= 30
local function killPlayer(otherPart)
local character = otherPart.Parent
@modster
modster / GetPlayerFromCharacter.lua
Last active September 21, 2021 03:56
Get Player from Character - Roblox
player.CharacterAdded:Connect(function(character)
onCharacterAdded(character, player)
end)
-- https://developer.roblox.com/en-us/onboarding/scoring-points/3
@modster
modster / KillPlayerOnTouchedEvent.lua
Created September 21, 2021 04:09
Kill Player on Touched Event
local lava = script.Parent
local function killPlayer(otherPart)
local partParent = otherPart.Parent
local humanoid = partParent:FindFirstChild("Humanoid")
if humanoid then
humanoid.Health = 0
end
end