A community for trading strategies, indicators, and utilities developed with HaasScript.
Join for Free Browse Scripts
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.
EnableHighSpeedUpdates(true) -- KGB: -- use 1 active slots per side. once slot order is filled, activate next and take the placement from -- the band value in the moment of fill. place take-profit taking the average entry price into account. -- use either hard SL -- or re-activate slots -- or decrease take-profit distance as time goes on (should have setting to allow it to move to the lo...
DISCLAIMER: This script is EXPERIMENTAL and might not be fully functional. Use at your own RISK! Hey! Happened to look back into this bot and.. Well. Ideas just started to fly around, OK!? So anyway. This time the approach is different. And the bot can…
Log('Tip wallet ERC20/BSC: 0xaa28dE4372CA0a8BC36722886E9749f70DF32382') EnableHighSpeedUpdates(true) HideOrderSettings() HideTradeAmountSettings() -- Suggested time interval is 15 minutes. -- Always start with ALL Trade Settings options UN-TICKED to let the bot preparing values. -- Test with default values before changing anything to understand the bot. -- PAY ATTENTION to the log warning...
Hi guys! After years of learning and testing and coping with lockdown and other IRL stuff, here i am back with a new bot script for the community. Smokybot is a trend following bot that using MA and Oscillators. It also has budget management just…
-- Modified version of Phsai's amazing Simple Market Maker that intended -- ONLY FOR BINANCE FUTURES USDT/COIN HEDGE MODE ENABLED -- -- Consider donating to support our work! -- Phsai -- BTC : 1MTEdma4LgdN2hSadRppeZ6PxsyXQNuxS2 -- USDT: 0x2f052efde92ded10e05e00277f4a5cdfd9c280ca -- Smokyho -- BTC : 35KY1GPFtxKoJ6Bzri6sLYQPcmGZhHfRac -- USDT: 0x7720A90d0D1973eFcc258b9145...
This is a modified version of Phsai's amazing Simple Market Maker that intended ONLY FOR BINANCE FUTURES USDT/COIN & BYBIT FUTURES USDT with HEDGE MODE ENABLED with dynamic maximum open position and slot size. *Attention on Bybit; if you get order rejected that could be…
EnableHighSpeedUpdates(true) HideOrderSettings() HideTradeAmountSettings() SetFee(-0.02) -- for backtesting local report = GetTradingReport() --local los_pos = (report.losingPositions) local posPnL = GetPositionProfit(pezId) -- inputs local TOTAL_margin = Input('Total Bet Margin', 100, 'Total margin used of quote currency (e.g. USDT)', 'POSITIONS') local short = Inpu...
A little idea for a scalper, feel free to expand on this idea :) Updated: - unmanged trading - upper threshold added - entry order offset
-- [pshaiBot] Simple Market Maker 2.0 -- Author: pshai -- Mods by: smokyho -- FIX 1.0 EnableHighSpeedUpdates(true) HideOrderSettings() HideTradeAmountSettings() -- ======================================================================================================= -- == SMOKYHO MOD -- ==================================================================================================...
Modification of Phsai's SMM 2.0 ---Camarilla Levels--- Adding Camarilla levels for dynamic range based in daily, weekly or monthly intervals. When activated bot will only trade between the Third Support and Third Resistance and take action (if selected) at Fourth Support or Fourth Resistance. More…
-- Modified version of Phsai's amazing Simple Market Maker that intended -- ONLY FOR BINANCE FUTURES USDT/COIN HEDGE MODE ENABLED -- ---------------------------------------------------------------------------- --Log('Update 7') EnableHighSpeedUpdates(true) HideOrderSettings() HideTradeAmountSettings() -- inputs InputGroupHeader('Bot Settings') local okLong = Input('01. Allow...
Modification of SMMD V2.51. -FIX budget value option Additional method to set the budget balance. The value is NOT percentage but the fiat/coin amount you want to allocate for the bot. This option is not compounding profit into budget balance. If your wallet balance <…
-- original script by jdehorty on tradingview -- Author: DMcL EnableHighSpeedUpdates(true) DefineCommand('Nadaraya_Watson_Kernel_v2', 'Signals long or short when kernel changes bullish/bearish') OptimizedForInterval(0, function() -- Parameters local alpha = DefineParameter(NumberType, 'Alpha', 'NQK Alpha', true, 2) local h = DefineParameter(NumberType, 'Lookback Window', 'Look...
-- original indicator by jdehorty --
-- Author: Giankam DefineCommand('Trail_Blaze', 'Trail_Blaze') local atrLength = DefineParameter(NumberType, 'atrLength', 'atrLength', true, 8) local atrMult = DefineParameter(NumberType, 'atrMult', 'atrMult', true, 1) local tslPercent = DefineParameter(NumberType, 'Trailing %', 'Trailing %', true, 0) local triggerLength = DefineParameter(NumberType, 'triggerLength', 'triggerLengt...
The main set of features includes: Three independent trailing types each with their own +/- multipliers: - Standard % change - ATR (aka Supertrend) - IQR (inter-quartile range) These can be used in isolation or summed together. A subsequent pair of direction specific multipliers are…
-- original script by jdehorty on tradingview -- Author: DMcL EnableHighSpeedUpdates(true) DefineCommand('Nadaraya_Watson_Kernel', 'Signals long or short when kernel changes bullish/bearish') -- Parameters local alpha = DefineParameter(NumberType, 'Alpha', 'NQK Alpha', true, 2) local h = DefineParameter(NumberType, 'Lookback Window', 'Lookback Window', true, 44) local r = DefinePara...
I like it on 6h or 12h timeframe
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
DefineCommand("PTQpamt", "ProfitTrailer Quiet, Plotting, ROI, pamt, NO Inputs, 0, 0") local trailStartPrc = DefineParameter(NumberType, "trailStartPrc", "Profit level (as percentage) where the trailing starts.", true, 12, "Input") local trailDistPrc = DefineParameter(NumberType, "trailDistPrc", "Trailing distance (as percentage) from the highest recorded profit.", true, 3, "Input") local tra...
custom ProfitTrailing to log, log verbose, plot start, if logging only when position is not closed. dependency in:
-- Author: Kobalt DefineCommand("PTpExits", "last step to including Interim managed order placement--only add the result trigger, order specs..check inputOrderOptions integration A price-based ProfitTrailer implementation by Pshai TEST InterimManaged handle order placements inside--Loging--verbose logging") local ptqname = DefineParameter(StringType, "name", "Name to distinguish it from others i...
early test will further look into Firetron's OrderOptions this needs to be cleaner.. But Trailing, logging, plotting and fwd compatibillity should be better with the reduceOnly addition, to only use PlaceSellOrder, PlaceBuyOrder on Spot and on Leverage use PlaceShortOrder, PlaceLongOrder with isReduceOnly enabled to close,…
-- [pshaiCmd] Trailing Arm Stop-Loss (TASL) -- Author: pshai DefineCommand('TrailingArmStopLoss', 'Educational TASL') local percentage = DefineParameter(NumberType, 'percentage', 'Trailing distance in percentage', true, 1) local arm = DefineParameter(NumberType, 'arm', 'Activation distance in percentage', true, 0.2) local positionId = DefineParameter(StringType, 'positionId', 'Optional po...
A custom command implementation of the built-in TrailingArmStopLoss command for educational purposes.
-- 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.
DefineCommand('Volatility_Trader_Tools', '[Kobalt] Volatility_Trader_Tools (VOLTT) Keltner Channel based ATR Bands, StdDeviation BBands VWAP bands (the big 3) added ATR as oscillator to confirm the exhaustion points(reversal best dip, peak)') local pIsBt = DefineParameter(BooleanType, 'isBacktestt', '', true, true) local pPlotIndex = DefineParameter(NumberType, 'index to plot', 'For ATR sub ch...
Add MFA to Max Draw Down/MAE for back testing/reports What does MFE mean? MFE stands for Maximum Favorable Excursion. MFE marks the highest price during a long trade and the lowest price during a short trade. This shows you what the highest profit was during…
local zzz, ddd, rsi, a DefineCommand("o", "order helpers") function zzz() Log("this is from zzz") end function ddd(str) Log("this is from ddd"..str) end function rsi(prices, period, offset) local rsi_with_offset = RSI(prices, period) + offset return rsi_with_offset end a={} a.ddd = ddd a.zzz = zzz a.rsi = rsi DefineOutput(ListDynamicType, a)...
Update: see at the bottom for important note from pshai about using memory in CCs! I wanted to port some open-source scripts from TradingView to Haas and wanted to have a neat way of collection all the PineScript functions that I needed in 1 place.…