Miscellaneous
128 scripts available
Firetron's FractionMiddle
stableFinds the middle value of a fractional portion of a table of values. Custom Command Dependencies: Firetron’s FractionGrab Firetron’s Med...
[pshaiCmd] ArrayFilter2
stableArrayFilter command that works with numbers and text too. Example of use: -- build test arrays local array1 = {} -- will contain GUID v...
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 and how...
[CMD]GetColor
stableA custom command for setting color in scripts which use multiple positions and is used in my mod of plot average enter price Default co...
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 ...
Another one for the rabbit hole, creating meta table like objects without the table commands. Use this framework to handle the recordin...
[cmd] ElapsedTime
stableGets the time of start to the time of finish of backtest for custom report on length. Usage CC_ElapsedTime(Time())
Any potential updates or changes can be found in HaasOnline Discord server. Here's my implementation for a switch-case system. Usage: ...
Firetron's GetAmountSpread
stableCreates a spread of amounts that can be used in orders. Custom Command Dependencies: Firetron’s Fib
[cmd] EventTime
stableGets the time of an event for custom reports. CC_EventTime(Time())
Firetron's BubbleSort
stableSorts a table using the bubble sorting algorithm. Custom Command Dependencies: None Test Code: if not Load('done', false) then local...
[pshaiCmd] StringJoinList
stableCustom command to concatenate list values into a single string.
The original High Speed Prices by Pshai - Mod by me to include bid, ask, avg high, avg low and some syntax changes.
[cmd] ListDistinct
stableFor use where ArrayDistinct() is not available.
Creates a settings objects for SuperInput. This is required when using SuperInput.
[cmd] ListToString
stableConvert List to String for Logging usually Usage - CC_ListToString({['a']={1,2,3,4},'d','g',1,4,8,3,'3','4',{1}, ok="AverageOrderbookS...
Here's one for the advanced scripters who will love this when they find it. Creating objects from an instance of a meta-class without th...
[pshaiCmd] PlaceAnyOrder
stableA handy custom command to (maybe) make it a little easier to place orders in VE.
Last version optimised for v4 [[The (InputButtons used) are NOT compatible with V3.]] -before merging with virtual actual order interim...
This simple snippet will help you when back testing your script/setting for SMM or any other bot that has size reduction setting. Now you...
[CMD] Get Order Direction
stableGets the order direction as a signal enum - signallong, siignalshort, signalexitlong, signalexitshort, signalbuy, signalsell Usage - l...
[pshaiCmd] ListToStringList
stableConverts a list of numbers to a list of strings. Example: local tests = 100 local t StartTimer() CC_ListToStringList(ClosePrices()) t ...
https://www.haasscripts.com/t/firetrons-command-template/ further refine is welcome The color mapping should get some thought, maybe dy...