Browse Scripts

399 scripts available

TWAP script with user defined intervals - first interval is to draw/plot/record TWAP values, second interval is the TWAP reset.

ajd1107 👁 1,383 💬 0 Nov 2022

[cmd] Unpack

stable

Should be part of LUA as standard however due to sandboxing it appears unavailable - usually comes from the C# side but recreated as comm...

Strooth 👁 1,381 💬 0 Nov 2021

Checks if the bot has any open positions.

Firetron 👁 1,377 💬 0 Aug 2020

Creates a group of inputs for Firetron's GetAmountSpread. Custom Command Dependencies: None Test code: if not Load('done', ...

Firetron 👁 1,376 💬 0 Dec 2020

PlotReference

stable

Plots a reference price dark grey [dotted]. behind main market or 50:50 horizontal price charts. (50:50 split is now false by default) [D...

Kobalt 👁 1,371 💬 0 Oct 2020

A simple command to get bots used position margin information.

pshai 👁 1,368 💬 2 May 2022

While the Hull Ribbon is great, and 2 Ribbons are better, at the end of the day it's still a moving average with no consideration for...

ajd1107 👁 1,363 💬 0 Jul 2022

This is an example of how to use the loop method 'for key in pairs' on a Lua Array, as well as how to construct an Array manually...

Strvinmarvin 👁 1,360 💬 0 Dec 2021

Formats a number to have two digits like 04.

Firetron 👁 1,360 💬 0 Jul 2020

This script implements a comprehensive trading safety mechanism that includes trailing stops, fallback protection, and break-even safety ...

tedo 👁 1,358 💬 0 Jun 2024

Dependency to revised tripple MA bot by Ratimbum

Rob 👁 1,357 💬 0 Jul 2021

This command plots a line that is interrupted, when you provide no values. It might be usefull, for instance, when you have a trailing s...

romdisc 👁 1,353 💬 1 Jul 2022

[CMD]GetColor

stable

A custom command for setting color in scripts which use multiple positions and is used in my mod of plot average enter price Default co...

Strooth 👁 1,350 💬 0 Mar 2021

A template to help you format your command code like the Firetron.

Firetron 👁 1,349 💬 1 Oct 2020

A leveraged scalper that uses Smoothed RSI (Special thanks to King-Pshay) to exit positions and simple MA cross to enter long. This bot d...

Rob 👁 1,341 💬 0 Jul 2021

ArrayFilter command that works with numbers and text too. Example of use: -- build test arrays local array1 = {} -- will contain GUID v...

pshai 👁 1,339 💬 0 Aug 2022

Hey fellas! This CC is based on the example I shared here: https://www.haasscripts.com/t/example-position-sizing-based-on-pre-determined...

pshai 👁 1,336 💬 1 Apr 2024

Based on the original Ehler's article on Fisher Transform: https://www.mesasoftware.com/papers/UsingTheFisherTransform.pdf This filte...

volodya 👁 1,336 💬 0 Dec 2022

Sorts a table using the merge sorting algorithm. Custom Command Dependencies: None Test Code: if not Load('done', false) then ...

Firetron 👁 1,336 💬 0 Mar 2021

Creates a spread of values that can be used for order amounts or prices. Custom Command Dependencies: Firetron’s Fib Test code: if not ...

Firetron 👁 1,336 💬 0 Feb 2021

Hey folks! In search of dynamic and counter-intuitive (but smart) trading strategies, I happened to create this. It's a bi!@$ to fin...

pshai 👁 1,331 💬 0 Mar 2024

Custom command for Chaikin Money Flow indicator

pshai 👁 1,327 💬 0 Apr 2021

Rework of the Plot exposure command, which is a bit easier on the eye and to understand, at least for me anyway. Hope others find useful ...

Strooth 👁 1,325 💬 0 Apr 2021

Creates a spread of amounts that can be used in orders. Custom Command Dependencies: Firetron’s Fib

Firetron 👁 1,312 💬 0 Dec 2020