PROTECTED SOURCE SCRIPT

Keltner Worm Strategy [PrismBot] [Lite]

Atualizado
Included in this Keltner Worm Lite Strategy:

✔️ Tweak a multitude of specific settings (MA lengths, R:R, SL distance etc)

✔️ Enable advanced setup filters

✔️ Use money management and risk calculations

✔️ Draw trade info directly to chart (eg. SL size in percent, win rate etc)

✔️ Use various filters (eg. time filter, date filter, MA slope angle etc)

✔️ Manage risk per position when auto-trading forex through AutoView

✔️ Choose from various alert conditions! [Not in Lite]

✔️ Sync to any bot or algorithmic trading system

Some details about this strategy:

- it incorporates 2 strategies - Keltner Re-entry and Baseline MA Crossing
- it uses a take profit and stop loss level fixed
- there are up to 6 allowable "worms"
- the worm multipliers are exponential, so a value of 2 will mean that the 6th worm is multiplied by 6
- you can multiply the offset or the Keltner Channel default values
- You can enable alerts for order entry, take profit, and stop loss values
- You can easily enable and disable strategies using the checkbox.
- This strategy incorporates a risk to reward system where the user can select between ATR and Percent based stop losses and take profit targets. This means that the user has much better control over money management when utilizing this strategy and it doesn't require you to babysit the strategy to ensure it's entering and existing strategies in an ideal place.
Notas de Lançamento
Release Notes: v1.7.r13

Upgraded to Prism Core 1.7

Now includes Dollar Cost Averaging!

- rearranged code to make more sense
- cleaned up some redundant code and dead code
- Added win and loss streak counting
- better dividing up of the status box
- changed Global Trend to its own strategy
- changed "Main Strategy Settings" section to "Global Strategy Settings"
- fixed a bug in ADX Strategy calling ma function instead of rma
- updated long and short entry methods for better accuracy
- changed how the reversal RSI strategy is calculated (does not affect strict reversal)
- fixed date range not filtering
- ADDED option to change Overbought and Oversold RSI zones
- Changed MACD and ALLIGATOR strategy conditions
- fixed a bug that inverted the take profit and stop loss adjustments for averaging up or averaging down in DCA orders.

Note to all: this will be the last update for a while! happy trading!
Notas de Lançamento
Prism Core
v1.7.480
- Last bug I could find that was bothering me : fixed status box message for in a long or short trade
Notas de Lançamento
CHANGE LOG 1.7.r482
- Changed how cooldown is calculated by removing the barssince() from the 'if' scope for consistent calculation
- Renamed some parameters and functions for consistency
- Minor tweaks to strategies
- Hide DCA plotlines from Keltner Worm Strategy due to bloating issues
Notas de Lançamento
CHANGE LOG
- Changed the way the new entry prices are calculated for DCA orders, using the pre-determined values
rather than the close of the previous bar.
- Added an option to toggle the lookback function for every strategy that uses lookbacks
- Added option to disable stoplosses
- Changed how DCA plot lines are displayed to mitigate too many plots errors on Tradingview (and it just looks cleaner)
- Added an option to use Percent Based take profit targets
- Fixed a bug that was putting the "Show TV Values" setting in the wrong location of the settings menu
- Changed DCA calculation method
- Can now use up to 10 DCA orders
- Updated quantity calculations
- Added step scaling to DCA orders
- Restructuring to Status Box Code
Notas de Lançamento
CHANGE LOG
- Added new strategy EMA Cloud
- Updated the status box
Notas de Lançamento
CHANGE LOG
- Added option to change global trend source and type of moving average
- Minor bug fixes
Notas de Lançamento
CHANGE LOG
- Quick Bugfix for the status window
Notas de Lançamento
CHANGE LOG
- Major update to how RSI and MACD are calculated for consistency with other strategies
- Added Supertrend / Stochastic Strategy to Prism Core (See profile)
Notas de Lançamento
Prism Core Updated to 1.8
1.8.R499

- Added New ADX Strategies and major overhaul to calculations and fixed a calculation bug for rate of change
- Fixed a bug that was still showing incorrect values for some backtest data (wins and losses in a row)
- Changed the Multitimeframe Analysis to a specific timeframe rather than using a multiplier.
Notas de Lançamento
2.0 MAJOR VERSION
(2.0r501 Changelog)

Removed Support and Resistance Strategy
Added Higher High and Lower Low Strategy
Added Flow Mode
Removed Status Boxes and replaced with Tables
Changed how statuses are calculated for better accuracy of status signals
Overhauled long and short calculations and entry signals
Removed Strict Reversal from RSI, changed calculation method for Reversal strategy.
Notas de Lançamento
Update to 2.1.r505

- Minor tweaks to how alerts are sent.
- Tweaked Flow mode and renamed to Hedge mode. (see tooltip for more info)
- Fixed some emojis
- Added backtesting to Hedge Mode
Notas de Lançamento
CHANGE LOG

Prism Core version 2.2.r522

- Changed Methods for TP and SL calculations using strategy.position_avg_price
- Fixed bug with Take Profit alerts checkbox association
- Added ATR Stoploss / Take Profit Options
- Various code improvements
- Updated code to Pine Script version 5
- Added 2 more supertrends to Supertrend Lite strategy
- Removed Stochastic indicator from Advanced Strategy Builder
- Updated all Prism Core database calculations with version 5 updates
- Replaced Alligator Indicator with Triple EMA Strategy
- Updated Multitimeframe functions to look back 1 bar to prevent any concerns with repainting.
- Added MACD to Supertrend Strategy
- Added plotting option to Supertrends
- Changed methods for calculating new timeframes on some strategies for caution.
- Added method to ensure entries will not be taken when equity reaches 0 to prevent chart errors.
Notas de Lançamento
💎 Prism Core Update 💎
version '2.5.r553'

CHANGE LOG
- New method for executing orders. Orders execute with better accuracy
- New method for exiting orders. Take Profit and Stop Loss alerts will now trigger with precise price points in real time
- Previously orders would close at the start of the next bar, resulting in slippage and inaccurate backtest results for real time trading. This is no longer the case. Once a take profit or stop loss is triggered by the script, the trade will exit immediately. Backtest results are now 100% accurate to real time trading.
- Added method for calling the exact take profit and stop loss targets for JSON alert message outputs
- For profit targets use {{plot("Take Profit")}} in your alert message
- For stop losses use {{plot("Stop Loss")}} in your alert message
- These triggers can be used to output and send targets to bots or to external messaging apps like Discord and Telegram
- Removed extraneous code
- Additional Cleanups and improvements
- DCA simulation has been temporarily disabled pending a bug investigation and code rework
Notas de Lançamento
💎 Prism Core Update 💎
version 2.5.r612

CHANGE LOG
Added new RSI Strategy (RSI - MA and Strict RSI - MA) (see tooltip)
Added new option for RSI - MA to choose the type of moving average
Added color change to Total PnL for easier viewing if your strategy is in profit or loss overall
Disabled Triple EMA Strategy by default

For Keltner Worm - Fixed a bug causing short entries to be read as long entries.
Notas de Lançamento
💎 Prism Core Update 💎
version 2.7.r733

CHANGE LOG
Added Trailing Take Profit System
Notas de Lançamento
💎 PRISM CORE UPDATES 💎
VER 2.9.r303

New Features

- Added Prism Bot functionality (announcement of public bot will be made when it is available)
- Added plot line for the Trailing Take Profit Offset value for alerts.
- Added option to disable / enable Offset Labels
- Added new quantity calculation methods (Fixed dollar, fixed percent of equity, and risk based)
- Added ability to exit trades using trailing take profit trigger line - will exit based on the percentage of equity
- Added option to require price close below stop loss before triggering stop loss.
- Added Bollinger to RSI - MA
- Added option to adjust the MA length value independent of the RSI
- Added option to exit on 3 take profit triggers
- Added option for REALTIME trading. Will automatically clear backtesting. Useful for bots.
- Added option to change the Default Offset Label Color (def - gray)
- Added option to filter out 2 time sessions from trading.

General Updates

- Removed old code for faster loading
- Categorized Order Settings for quality of life / ease of use
- Changed Trailing Trigger line to Yellow so it stands out against the offset line.
- Overhaul to quantity calculation system

Bug Fixes

- Updated Strict DMI Strategy and bug fix
- Another fix to Win / Loss labels
- Fixed an issue preventing Trailing Take Profit Offset or Trigger values from being passed to alerts on entry.
- Fixes to Stop Loss requiring Close not working for other trailing types.
Notas de Lançamento
Minor Update

New Features

Added "Trailing Take Profit Trigger As Percent" plot placeholder option for alerts
Added 3 Placeholders for Exit Scaling Take Profit Targets "Scaling Exit A", "Scaling Exit B", and "Scaling Exit C"

General Updates

Changed how Ichimoku is calculated for better reliability
Updated TV Technicals Strategy (Advanced Strategy Builder)
Bug Fixes
Notas de Lançamento
💎 Prism Core Updates 💎
ver 2.9.r431

New Features

Added an input for a "Realtime Code" which allows you to input the bar on which to start real time trading, locking in this value for the strategy on browser refreshes. See tooltip.
Added a bunch of tooltips
Added option to use the Median Line of the pullback filter for long / short filtering. Unchecked, will allow pullbacks to be considered valid based on other strategy filters regardless of the median line and only consider if the close is inside the deviation area.
Added a bunch of tooltips

Removed Global Trend Strategy. Consolidated all features into Triple EMA Strategy (now Triple MA Strategy)
Removed some plots and fill areas to make room for the placeholders due to TV limitations

General Fixes

Prism Bot alert output updates and code cleanup.
Fixed a bug in the Pullback strategy.
Fixed a bug in the Triple EMA Strategy with 1 EMA Selected and using Over / Under filter


Addtional Updates

Renamed Triple EMA Strategy to Triple MA Strategy
Pullback Deviation behaves as a percent difference from the median line. This is for consistency between timeframes.
Rounded Percent value for Finandy / other bots that don't like decimals (Trailing Take Profit Offset As Percent)


Notas de Lançamento
💎 Prism Core Update 💎
ver 2.9.r674

New Features

- MUST TRY! Added Normalized / Smoothed MACD Strategy to Ultimate MACD Strategy
- Added option to incorporate leverage into quantity calculations
- Added placeholder for Quantity as a percentage of total equity on the account
{{plot("Qty As Percent")}}
(outputs in decimal format: 1.0 = 100%, 0.5 = 50%, etc.)
- Added Consolidation Zones Filter for Supertrend, MACD, and RSI Strategies
- Added option for a max ATR value in percent.
- Added option to send placeholder alerts for Scaling Exits as offset values from current entry price.

General Updates

- changed "Additional Profit Exits" to "Scaling Exits" (also renamed "Target X" to "Scaling Exit X")
- cleanup of some code
- Changed Alert Text input boxes into Text Areas (moved to bottom of strategy)

Bug Fixes

- Visual Bug: Changed ADX Table value to "Valid" when ADX is above crossing value and when using ADX Only
Notas de Lançamento
Hotfix: Fixed issue with ATR Max Stop %
Notas de Lançamento
2.9.r691

Bugfixes

Fixed an issue causing ATR Max % to calculate quantities incorrectly based on bad stop loss detections
Fixed an issue allowing strategies to enter higher trade quantities than the total equity on the account. Now, if the equity is less than the calculated value comes out to be, we will just use 100% of equity to enter.

Notas de Lançamento
💎 Prism Core Update 💎

CRITICAL UPDATE v2.9.r702

New Features:

- Added option to filter trades by days of the week. Selecting days of the week will disallow trading on those days.

Bug Fixes:

- Fixed an issue with Consolidation Zones causing broken trading setups

General Updates:

- Changed contact information
- Changed "Leverage / Margin Multiplier" to "Leverage On Exchange"
- If you set this value to your exact leverage on your exchange, this will be used to calculate if a position is possible, but will not multiply your risk or equity values in any way. This creates a more intuitive environment where "what you see is what you get". If you're risking 2% of your equity per trade, this doesn't change if you're using leverage or not in the strategy. The only thing the leverage will do is ensure a position *is possible* prior to entering. If the position would not be possible because the equity required to open the trade exceeds your equity times your leverage, instead, the strategy will cap the equity used to open the trade at 100% and no higher. This will ensure a bot will always be able to execute your trades even if you can't trade as much as you intended.
Notas de Lançamento
Bug fix to Leverage and Equity calculations
Notas de Lançamento
💎 Prism Core Update 💎
ver. 3.0.r124

New Features

- Finalized features for Prism Bot alpha launch
- Added Kinski Histogram Strategy (updated with additional ADX filter)
- Updated RSI Strategy to include an "Inverted Strict" option. Removed 50/50 method and Strict 50/50 as these can be achieved with Standard and Strict standard modes, making them redundant.
- Added functionality to allow trades to close on the same bar as entry. By default it is enabled when adding a strategy to the chart.
To enable this manually if your strategy is still on your chart, go to the
Settings -> Properties tab -> check "Recalculate > After Order is Filled"
- Added more titles for previously empty title inputs for better compatibility of DaviddTech Optimizer sharing
- Added new status table values for better information visibility of automated orders
- Added option to disable colored background of trades
- Added strategy modes (Hedge Mode, Normal Mode, Exit Early Mode, and Reversal Mode)
- Changed "Enable Long" and "Enable Short" to a simple dropdown "Trade Directions"
- Added new placeholder "Trailing Take Profit Offset As Percent". Useful for Finandy

General Fixes and Updates

- Fixed a bug that would keep showing the values of a stop / tp / entry of previous trade after the trade ended. (Table now shows NaN / or null value)
- Removed some outdated code
Notas de Lançamento
💎 Prism Core Update
ver. 3.0.r132

Fixed an issue causing placeholder values not to execute on new orders
Fixed an issue preventing calculations of Reversal Mode values on reversing trades for placeholders
Fixed an issue not showing Entry Price on status table
Notas de Lançamento
💎 Prism Core Update
ver. 3.0.r192

New Features
Added option for sending Trailing Offset Percent value based on Entry Price or Trailing Trigger Value
Added option for using High and Low values for stop losses
Added an Emergency Stop when using "Require Close Below Stop Loss"
Added additional input options on Kinski Histogram Strategy
Kinski Histogram
Added ADX, 3XMA, and RSI filters
Hooked Kinski ADX into native ADX system calculations

General Updates
Converted several strategy, quantity, alert, and other calculations into condensed functions for faster load times, and smaller file sizes. These updates should have no effect on the accuracy of trading. However, if you notice any bugs or mistakes in various confluence strategies, do let us know.

Bug Fixes
Fixed an issue showing negative price values and incorrect plotting of Scaling Exits
Fixed an issue sending NaN / Null values for Entry Price while in a trade
Fixed an issue preventing scaling exits from trailing with the main exit system
Fixed an issue causing ATR Max Stop % from changing stop losses when inactive
Notas de Lançamento
💎 Prism Core Update
ver. 3.1.r211

New Features
Added plot placeholder for Emergency Stop. When using emergency stop, the plotted placeholder is {{plot("ES Stop Loss")}}
Added fill area for Emergency Stop and plotted to chart
Added ability to adjust Supertrend factors by steps less than 1.
Added a Margin Call estimation. This is just an estimation and you should always check this calculation against your exchange maintenance margin requirements.
Added Open Interest filter (requires no setup) to RSI and TV Technicals Strategies

General Updates
When using risk based quantities and calculating risk per trade, your cap will now consider the leverage when capping the trade.
Updated strategy alert outputs for PrismBot

Bug Fixes
Reverted the MACD strategy to the old calculations due to concerns with the new functions not working as expected


Notas de Lançamento
💎 Prism Core Update
ver. 3.1.r217

MACD Updates
Added Histogram only filter option (just filters long and short direction using the histogram)
Fixed an issue with the MACD Strict Standard not getting precise crossover points

Added option to disable or enable Margin Call simulation
Notas de Lançamento
💎 Prism Core Update
ver. 3.1.r286

New Features

Added new functions to handle stop and profit level calculations for simplified structure of entry and exit
Added custom titles to Supertrend inputs for optimizer sharing
Added input for Normalize Period on N-MAC strategies
Added input for Offset of PrismBot entries

General Updates

Changed all profit and loss values to be to the nearest tick to prevent issues when automating trades with bots
Adapted more inputs / outputs for PrismBot alert systems
Moved "Realtime Code" table into the main bottom right table.
Rounded Margin Call value to minimum tick.
Updated ADX strategy to improve results for DMI inclusions.
Allowed "Date Range Filtering" to be used with PrismBot "Send Contracts" option, not just Realtime / Live trading.

Bug Fixes

Fixed an issue with negative scaling exit values not exiting properly
Fixed an issue causing Emergency Stop to continue plotting to the chart when Stop On Close is not activated but emergency stop is.
Fixed an issue causing take profit targets to not adjust to the stop level when using Risk Based take profits and using ATR Max Stop. Made this an optional parameter.
Removed Open Interest Indicator - it was causing issues with bar replays and I was unable to fix it.
Notas de Lançamento
💎 Prism Core Update
ver. 3.1.r292

New Features

• Added new tables to show the current PrismBot settings
• Added additional Entry Offset input to declare it as a percentage offset from entry or fixed dollar value [Prism Bot]
• Added 2 new strategies for Brain Trust (BTC 10m, and BTC 15m for Binance)
• Added Tick option for Entry Offset on Prism Bot alert system
• Added a check box to allow this feature to be clearly disabled or enabled

General Updates

• Split up the tables in the bottom right into 3 unique inputs so you can decide which ones you want to see and which you don't. (Orders, Bot Settings, and Strategy Settings)
• Consolidated quantity calculation types into a simpler input
• Changed some default order settings for better results

Bug Fixes

• Fixed an issue causing the error for Live Trading / Date Filtering to still appear even when Date Filtering is activated
• Fixed an issue showing MARGIN CALL on table even if Margin Call Simulations are turned off
Notas de Lançamento
💎 Prism Core Update
ver. 3.2.r305

New Features

• Made some changes / fixes to the Strict DMI (ADX Strategy) option
• Added new inputs to ADX / DMI
• Added DMI Channel Strategy to ADX Strategy
• Added all crossing possibilities to ADX Strategy

General Updates

• Changed the MACD input for deviation to a Min / Max value, useful for inverted MACD values.
• Added function to store MACD filter rules
• Included MACD filter rules in NMACD strategies for consistency

Bug Fixes

• Fixed an issue calculating minimum tick values incorrectly
Notas de Lançamento
💎 Prism Core Update
ver. 3.2.r310

New Features

• Added MA Stop type

General Updates

• Removed exchange restriction from Brain Trust Strategy auto mode

Bug Fixes

• Fixed an issue retaining message ID value for PrismBot alerts through to the end of a trade
Notas de Lançamento
💎 Prism Core Update
ver. 3.2.r314

New Features

• Added new Martingale risk adjustment system
⚠️ Use with great care! Read tooltips! ⚠️
• Added Volatility Based Quantity Executions

General Updates

• It is now possible to use decimal values in the RSI Overbought and Oversold values.

Bug Fixes

• Nothing to report!
Notas de Lançamento
💎 Prism Core Update | Hotfix
ver. 3.2.r317

New Features

• Added more information to win / loss labels (short / long and amount won or lost)

General Updates

• Risk amount gets shown now in the Quantity Calc section of the table (bottom right) when using Volatility Based risk

Bug Fixes

• Fixed an issue preventing PrismBot from receiving risk values when using Volatility Based quantity calculations
ADXAverage Directional Index (ADX)DCAdollarcostaverageKeltner Channels (KC)keltnerwormkeltnerwormstrategyRelative Strength Index (RSI)

Script protegido

Este script é publicado como de código fechado e você pode usá-lo livremente. Você pode favoritá-lo para utilizá-lo em um gráfico. Você não pode visualizar ou modificar seu código fonte.

Quer usar esse script no gráfico?


Também em:

Aviso legal