HaasOnline’s purpose is to help more people gain control of their financial freedom as the new age of finance evolves. As a trusted partner to investors and a leading provider of financial technology, our customers look to us for the solutions they need when designing and executing on their most important trading strategies.
-- Simple Market Maker -- by pshai @ 2020 -- -- Introduction: -- This simple market maker makes the market! -- It doesn't stop, it has no limits (other than max. pos. size) -- and it's amazing. Get familiar with the bot before using it! -- I strongly suggest doing backtests and especially running it -- using a simulated account until you are confident that you know that -- this bot knows...
Simple Market Maker by pshai @ 2020 Introduction: This simple market maker makes the market! It doesn't stop, it has no limits (other than max. pos. size) and it's amazing. Get familiar with the bot before using it! I strongly suggest doing backtests and especially…
NobwRAGmBcCMAcAmADAGjATRgFm2sA6jPgBLHoDiArgJYAmMYA1gIYBmARgF4AqAdgGMAbAAUALjzoBbAM4BWAJ4cAonwAiYdDwUAHAKYwA7MmQBmdAGEA9lKks+dAHIspB6GB4AnFnT0AhKzFrPjEWGj49T00wYIiBMSso6HBqekYARQx0mU8ZAA9DHkQhAEE2CAApAC0AMRIAGSoiSys+OLEaVpkYYABddBEWb1cxSJhwZ1dGPTy9ASpR6O19GHMwAEkZACU9AEdaTz0GaDYWABsZPXRNknpfPhhTi6uNmRqaPTPjp8v0ErOzlYAO6OKgAx7nX5gNR6GQCTw0HQdVqMaIAZSoAHNMbDkQ9oMBTIhYIhUETYGgiWYySghDTYLAyaYTDTkKSqXJW...
[kob] HB 3.0: Ichimoku, MACD, VolumeRSI , CCI, - Used available cc and all the Easy ones. It's profitable right away so no need to look for settings...
-- [HaasOnline] Flash Crash Bot -- Author: pshai EnableHighSpeedUpdates(true) HideOrderSettings() HideTradeAmountSettings() --=================================================================== -- == Miscellaneous Usefulness -- deep clone an object function clone(original) local copy = {} for k, v in pairs(original) do if GetType(v) == A...
The FlashCrashBot recreated in HaasScript is here! Ugh.. Almost 1900 lines of code! It was a challenge to create this bot, I can tell you that... This bot differs from the original Custom Bot version, as it contains a bit more safeties, a StartControl and…
-- Module: Bot Template -- Name: Spot Bot (Base Bot) -- Author: romdisc -- Date: 04/09/2024 -- Update: 04/09/2024 -- Description -- =========== -- -- Implements a simple high speed bot for spot market trading -- -- Instantiation : local bot = CC_SpotBot('name of bot') -- -- implement these functions (all of them are optional): -- bot.inputs = function(bot_name) r...
Hi, once again me, HaHa. I like you to inspire your thinking what is possible with HaasScript. I like modularizing code as much as much as I can, as a Software Developer and so I do it with HaasScripts. I developed a Spot Market Trading…
-- [pshaiBot] Triangle-Arbitrage, PROOF-OF-CONCEPT -- Author: pshai --[[ -- WARNING, PLEASE READ -- This bot executes trades based on estimations and on the assumption that prices do not change when orders are sent out! Please do not use this bot for actual trading, unless you want to prove to yourself that this type of trading IS NOT profitable! ]] EnableHighSpe...
Hey fellas! Here is an actual trading tri-arb bot. However, I don't have much else to say than this: -- WARNING, PLEASE READ -- This bot executes trades based on estimations and on the assumption that prices do not change when orders are sent out!…
--If you would like to buy me a cup of coffee or diamond: --ENS: smokyho.eth EnableHighSpeedUpdates() HideTradeAmountSettings() -- Inputfields InputGroupHeader('Bot Settings') local startingBalance = Input('Starting Balance '..ProfitLabel(), 0) local startingAmount = Input('Starting exposure '..AmountLabel(), 1) local amountFactor = Input('Trade amount facto...
My modification for Haasonline's original Zone Recovery Bot for HEDGE trading mode. The bot use balance ratio as stop loss and not position size like the original bot. "Closing all positions when working balance (total used margin - total unrealized profit) / bot balance (starting…
-- [pshaiTool] Buy & Sell buttons -- Author: pshai if not init then EnableHighSpeedUpdates(true) HideTradeAmountSettings() HideOrderSettings() order_size_types = { 'Base', 'Quote', '% of Total Wallet', '% of Available Wallet', } lpid = NewGuid() spid = NewGuid() init = true end local order_size = Input('Ord...
From GPT: The [pshaiTool] Buy & Sell buttons script is an advanced trading tool designed to streamline the process of executing buy and sell orders directly from a trading platform interface. Created by pshai, this tool enhances user experience by providing a simplified, high-speed method…
-- Potentially very counter-intuitive trading strategy -- Author: pshai ma_len = Input('MA Length', 13) ma_type = InputMaTypes('MA Type', EmaType) bb_len = Input('BB Length', 3) bb_dev = Input('BB Deviation', 2) bb_type = InputMaTypes('BB Type', EmaType) bw_thres = Input('BBand Width Threshold %', 0.7) / 100 cci_len = Input('CCI Length', 50) cci_br = Input('CCI Base Range', 100) cci_ar...
Hey folks! In search of dynamic and counter-intuitive (but smart) trading strategies, I happened to create this. It's a bi!@$ to finetune... But it looks good on the charts. :pepeshrug: Let me know if you want to see a full bot using this strategy! ~May…
DefineCommand('VPCI_Signal', 'Signal generation using Volume Price Confirmation Indicator (VPCI) with Plots and Highlight Breaches') -- Define parameters and inputs local name = DefineParameter(StringType, 'name', 'Unique name of the indicator.', false, 'VPCI_Indicator', 'Text') local chartIndex = DefineParameter(NumberType, 'chartIndex', 'The index on which to chart', false, 6, 'Number') ...
Signal generation using Volume Price Confirmation Indicator (VPCI) with Plots and Highlight Breaches' Developed by Buff Dormeier, VPCI won 2007 Charles H Dow award by the MTA. VPCI plots the relationship between price trend and the volume, as either being in a state of confirmation…
DefineCommand("GetOrderbookImpact", "Calculates the impact on orderbook based on trade amount, returns the price impact in percentages.") local tradeAmount = DefineParameter(NumberType, 'tradeAmount', 'The trade amount to calculate with. Default is TradeAmount()', false, TradeAmount(), 'TradeAmount, MaxLongAmount, MaxShortAmount, LongAmount, ShortAmount') local isLong = DefineParameter(Boolean...
Found another one... Old script, never got published anywhere iinm. The command simply "Calculates the impact on orderbook based on trade amount, returns the price impact in percentages." Hope you find good use for it! ~pshai
NobwRAGmBcBsAsAGANGAmjATJlYDqMuAEoagOICuAlgCYz7wCMATgFIDmRAdgFYByXAMYAjAMoBOAEIBZGgGsAZgGcwqACoBPAA4BTGI0SJGqAMIB7ALYWAhlxp9rFvdDB8dANx3MAogA8qAC54gQAWADJmSiqmZlxcOoIBZsww4JS09GHwcgDSACKi1gCq7ADuEACOeewA8iZKAKwmsBSqYOZxCQFUsSrQwAC6qAAK1syOOgFeqa4T9Dq+CRRTbZq6MADMqACSSgBKOhXUzDp00ArWADZKOjtKRLQ0OlwwF9e3YLsAYlQ6l2dvG6oACCl0uZlKfAoYNeVyBYDyOiUgmYVC03Vi9Daogo7HYSIxL36G0wjEwyBJBgpOC2JMQsGpjGMGw2hmpiHJd...
StopLossCooldown OvercomeFeeCosts NoLoss set 0 what you don't use.
NobwRAGmBcBMAMAaMBNGBGByDqMlgAk9kBxAVwEsATGMAIQBsUAHAFQEUBJAaQAsqGAdgBiARwBa2XhXEBnWWGSsAnswCmMAGzx0yAMIB7ALZGAhgDsqAOVNGN0MABE1AMwrm1hkxZr6D5jwBjABcDACcYcHJqWl4CPW4CNVgAdwB5SwAvACMAVlMAK3Ng81MGRTBDALUQin8FaGAAXWQABVMw2zVgtQjocBs7WjUADxqyHoqVdRgAZmROWQAlNVFKMLUaaBcy2TUF2QJqKjVzGB2GPYPhCjUGLYursABBBgYDFKsyN/Pd/ac1LJAmEKMxgnUzg4KgBlMgAczhgPB/hgwFmsEwiHR6CQ6Pg8zxmixGN0s1m8FxCFgxPguRpAE4aQAWRBMgAc+NZH...
InsuredMH: StopLossCooldown + OvercomeDoubleFeeCosts
-- Author: pshai -- modification: tedo DefineCommand("ProfitTrailerFallbackProtectBE", "ProfitTrailerFallbackProtect (Quiet, Inputs, Start 1.5, Distance 0.5)") -- Define parameters local trailStartPrc = DefineParameter(NumberType, "trailStartPrc", "Profit level (as percentage) where the trailing starts.", false, 1.5, "Input") local trailDistPrc = DefineParameter(NumberType, "trailDistPrc"...
This script implements a comprehensive trading safety mechanism that includes trailing stops, fallback protection, and break-even safety features. The logic is designed to maximize profits while minimizing risks through well-defined parameters and conditions. Key Features: Trailing Stops: Begins trailing when a specified profit percentage (trailStartPrc)…
-- DefineCommand: Set up the command for stop-loss generation DefineCommand('AVSL_StopLoss', 'Stop loss generation using Anti-Volume logic with Plots') -- Define parameters and inputs local name = DefineParameter(StringType, 'name', 'Unique name of the indicator.', false, 'AVSL_Indicator', 'Text') local chartIndex = DefineParameter(NumberType, 'chartIndex', 'The index on which to chart VPCI'...
Experimental AVSL Stop-Loss Script This script implements an experimental Anti-Volume Stop-Loss (AVSL) mechanism using Anti-Volume logic with Volume Price Confirmation Indicator (VPCI) and Bollinger Bands. Key Features: VPCI Calculation: Utilizes VWHMA (Volume-Weighted Hull Moving Average) and HMA (Hull Moving Average) for volume and price confirmation.…
-- [pshaiCmd] Get Dynamic Trade Amount -- Author: pshai DefineCommand('GetDynamicTradeAmount', 'Get dynamic trade amount, margin or notional size based on inputs.') local acceptable_loss = DefineParameter( NumberType, 'acceptable_loss', 'The acceptable loss amount.', true, 100, 'Input' ) local entry_price = DefineParameter( ...
Hey fellas! This CC is based on the example I shared here: Usage: local acceptable_loss = 100 -- USDT local entry_price = CurrentPrice().ask -- we buy the ask price local stop_loss_price = SubPerc(entry_price) local trade_amount = CC_GetDynamicTradeAmount(acceptable_loss, entry_price, stop_loss_price) local margin_amount = CC_GetDynamicTradeAmount(acceptable_loss, entry_price, stop_loss_price,…
-- Author: romdisc DefineCommand('TimeUtils', 'Time Utils') local out = { trim = function(time, interval) return time - time % (interval * 60) end, set_deadline_from_now = function(name, adjustment) if adjustment == nil then adjustment = {} end Save('--deadline-'..name, AdjustTimestamp(adjustment)) end, is_deadline_reached = function(name) ...
I've come over a problem, I wanted to solve, that has to do with reaching deadlines in the future, like canceling a position or something the like. I have implemented a Custom Command library function and the corresponding code. (See below) Setting uses the same…
-- Switch-case implementation for HaasScript -- Author: pshai function switch(args) local t = args.select local rf = args.run_funcs or false for c, r in pairs(args.cases) do if t == c then if rf and GetType(r) == FunctionDataType then return r() end return r end end end...
Any potential updates or changes can be found in HaasOnline Discord server. Here's my implementation for a switch-case system. Usage: local c = ClosePrices() local len = 20 local indicator = 'sma' local values = switch({ select = indicator, run_funcs = true, cases = {…
-- Modified by Strvninmarvin on 2021-11-02 -- ============================================================================ -- Strvinmarvin's ReportMaxMargin -- -- Adds a custom report on your maximum margin used. -- -- * Note: Thanks to Firetron, for I have shamelessly ripped off his ReportMaxRiskPoint -- command and used the template and framework to make this. ...
Adds a custom report on your maximum margin used.