Miscellaneous

128 scripts available

Finds the average, maximum, median, or minimum true range or percent true range. Supports specifying a fraction of the range to use. Supp...

Firetron 👁 1,621 💬 0 Apr 2021

RSI smoothed with MA Type, select SourcePrices with InputSourcePrice, Delay BuySignal.

Kobalt 👁 1,619 💬 3 Sep 2022

--Usage local oid = CheckOpenOrder(Load('oid', ''))

Strooth 👁 1,609 💬 0 Nov 2021

This example shows how you can read the contents of the orderbooks. NOTE: Orderbook data is real-time data and can not be backtested, on...

Stephan 👁 1,596 💬 0 Oct 2020

Here it is; the humble hunchback of the debugger: LOGGER. Logger is a simple class object, which brings depth to debugging. You can foll...

pshai 👁 1,586 💬 0 May 2021

Credits to Bunka, CZ... and everyone who made this possible... Converts user input USD value to coin amount So you don't have to. S...

Kobalt 👁 1,586 💬 0 Jun 2021

Creates a spread of orders. Custom Command Dependencies: None Test Script: if not Load('done', false) then local currentPric...

Firetron 👁 1,572 💬 0 Oct 2020

Finds the middle value of a table of values. If there is an even number of elements, takes the average of the 2 middle values. Custom Co...

Firetron 👁 1,570 💬 1 Mar 2021

Grabs a fractional range from an array, list, or table. Custom Command Dependencies: None Test code: if not Load('done', false)...

Firetron 👁 1,565 💬 0 Apr 2021

Simple command to remove value(s) from the array. Usage testample: local testArr1 = {'a', 'a', 'b', 'c',...

pshai 👁 1,555 💬 0 May 2020

Command to easily throw in your scripts which plots the balance monitor Can be called without any settings, the defaults should work wit...

Strooth 👁 1,555 💬 0 Apr 2021

Creates a group of inputs for debug options: fee, logging, plotting, reporting, verbose, verbosityInterval. Custom Command Dependencies:...

Firetron 👁 1,553 💬 0 Nov 2020

Logs a rule (horizontal line).

Firetron 👁 1,539 💬 0 Aug 2020

Returns the Fibonacci number at the specified index. Test Code: if not Load('done', false) then for i = 0, 30 do local fi...

Firetron 👁 1,536 💬 0 Nov 2020

Creates a spread of prices based on Keltner channels. Custom Command Dependencies: Firetron’s XTR Test Code: local LogList = function (...

Firetron 👁 1,535 💬 0 Jun 2021

A custom command you can easily add to any script to sync open positions with exchange on start for example. Tested working with Binance...

Strooth 👁 1,530 💬 1 Jun 2021

Calls a function on an interval, and remembers the previous result between the update intervals. Works the same as OptimizedForInterval/D...

Firetron 👁 1,530 💬 2 Jun 2021

PercPriceMoveSHORT Added suggestions to use with PercPriceMoveSHORT: 2x Inputs: -For setting desired Percentage -To create a Logs true /...

Kobalt 👁 1,525 💬 0 Jul 2020

This example shows how you can read the contents of the orderbooks in HaasScript. NOTE: Last trades is real-time data and can not be bac...

Stephan 👁 1,517 💬 0 Oct 2020

This is an example script to show how to send text messages to external sources like (in this case) Twitter. Please note: This script on...

Stephan 👁 1,516 💬 0 Nov 2020

Usage local positionid = CC_CheckPositionId(Load('positionid', NewGuid())) --- Run bot code, do blah, make teh profitz Save(&#...

Strooth 👁 1,509 💬 1 Nov 2021

Maximum Drawdown in a Custom Command format, made for educational purposes. The command uses GetBotProfit to get the peak and trough. NO...

pshai 👁 1,500 💬 0 Nov 2021

This is a command to easily control positions in unmanaged trading scripts and increment slots if needed. Simply load the command at th...

Strooth 👁 1,497 💬 0 Mar 2021

Pads a number with zero to have the specified number of digits like 04.200

Firetron 👁 1,485 💬 0 Aug 2020