v0.1.05 Introduction:
AskTheChart is an experimental AI-powered indicator that showcases the use of a large language model to enhance trading strategies and analysis using agents. Traders can interact with their charts by asking questions such as, 'What is the current trend?' They can give commands like 'Draw horizontal line at the $1500 level,' or instruct the agent to highlight an area on the chart. It's important to note that this is experimental and intended to complement, not replace, traditional trading analysis and strategies. Its main purpose is to demonstrate the potential applications of AI in trading.
How to Use:
AskTheChart adds an interactive button 🤖 on the chart toolbar. When clicked, it opens a chat window where you can ask questions or give commands. The AI agent understands your queries and responds accordingly. To configure the indicator, go to the indicator settings and enter the required OpenAI/Azure URL, API key, and Model. You can also set the maximum number of bars allowed for the agent context window.
We utilize ChatGPT functions for tool-switching, requiring the use of one of these Models.
gpt-3.5-turbo-0613
gpt-4-0613
0) Indicator settings
URL: https://api.openai.com/v1/chat/completions
API Key: Your OpenAI API key
Model: gpt-4-0613
If you are using Azure OpenAI, the model's name should match the one defined in your deployment, and the required model version is 0613
gpt-4
gpt-3.5-turbo
0) Indicator settings
URL: https://{name}-east-2.openai.azure.com/openai/deployments/gpt-4/chat/completions?api-version=2023-07-01-preview
API Key: Your OpenAI API key
Model: gpt-4
Cost Implications:
Please note that using AskTheChart involves making requests to the OpenAI API. These requests are subject to OpenAI's pricing structure, which means that usage of AskTheChart may incur costs. Users are responsible for these costs and should review OpenAI's pricing details before using this indicator.
Challenges:
There are numerous tools and libraries available for developing with LLMs. However, integrating them into NinjaScript without relying on DLLs is a significant challenge. NinjaScript employs C# 5.0, which is considered somewhat legacy and lacks many modern features. While it's possible to work around this limitation using compiled assemblies, I opted for an open-source approach to maintain accessibility.
Change Log:
NT8 AskTheChart by pixel @ nexusfi.com, Version 0.1.0, released 10/19/2023 NT8 8.1.1.7 64-bit
10/22/2023 v0.1.01 - Fix: model variable missing
10/22/2023 v0.1.02 - Removed duplicate declarations
11/14/2023 v0.1.03 - Removed delay for faster function calling
11/14/2023 v0.1.04 - Fix: error when using dynamic type
11/20/2023 v0.1.05 - Style: show api response errors in the chat
I'm eager to discover additional applications for LLMs in trading and explore their use in my own strategies, as well as in others. You can find the discussion here.
Hello, everyone! I hope you're all doing well. Although I've been a dedicated reader for a while, this is my first time contributing. I'm excited to share this AI indicator with you.
October 20th, 2023
Size: 20.09 KB
Downloaded: 451 times
2680
pixel
TickHunter is a very powerful trade bot or trade assistant that provides many features including a trade panel with several buttons useful for managing trades. Have you ever wanted to place a pending order 1 tick above or below the previous candle? Have you ever wanted to move your stop-loss to break-even and then automatically trail your stop-loss? With TickHunter, it's easy!
Button 1: AB.OFF (toggle auto break-even types - button color hot pink when active)
Button 2: Rev (reverse market position)
Button 3: Close/Flat (Close chart instrument pending and market orders while Flat will close all account market and pending orders)
Button 4: AC.OFF (toggle auto close types - button color hot pink when active)
Button 5: TP+ (take-profit plus moved take-profit away from market price)
Button 6: BE+ (break-even plus moves stop-loss to break-even initial ticks in position favor)
Button 7: SL+ (stop-loss plus moves stop-loss closer to market price)
Button 8: Pop+ (pop plus - opens buy stop order above price)
Button 9: Pop- (pop minus - opens sell stop order below price)
Button 10: Drop- (drop minus - opens sell limit order above price)
Button 11: Drop+ (drop plus - opens buy limit order below price)
Button 12: S.Off (trade signal filter for auto pilot - hidden by default)
Button 13: AP.Off (auto pilot - trade/token count - hidden by default)
Button 14: V(1) (toggle volume/contract options 1 through 5 - volume/contracts to use when using pop+/-, drop+/-, auto pilot)
TickHunter v1.467
Change Log
02/14/2024 v1.467 - Updated bogey target break even feature
01/24/2024 v1.464 - Added Ctrl + Shift + buy or sell button to open max volume number of contracts...fixed bug in full auto pilot not zeroing out when bogey target hit
12/17/2023 v1.458 - Improved close and reverse features when using "blended" instrument features
12/11/2023 v1.456 - Improved take profit handling in certain margin pressure and exchange rejection situations
10/13/2023 v1.452 - Fix in DayOverMaxLoss feature
10/12/2023 v1.451 - Improved auto break even KZ feature
10/11/2023 v1.449 - Improved trail KZ Dual & KZ features
10/09/2023 v1.448 - Added new auto breakeven option TKZ and auto close option AC.KZ
09/29/2023 v1.445 - Fixed issue with stoploss
09/24/2023 v1.442 - Added new auto breakeven option "trail mix"
08/03/2023 v1.438 - Added two additional snap locations
06/11/2023 v1.421 - Updated Pop+/- features
06/07/2023 v1.414 - Updated AutoPilot profiles
06/01/2023 v1.409 - Updated AutoPilot Profiles
05/24/2023 v1.403 - Fixed position average line issue
05/15/2023 v1.398 - Improved AutoPilot alerts
05/10/2023 v1.391 - Support for multiple workspaces
05/09/2023 v1.390 - Fixed position average line issue
05/07/2023 v1.388 - Improved AutoPilot profiles
05/05/2023 v1.385 - Improved stability
03/27/2023 v1.321 - Improved performance
03/15/2023 v1.314 - Fixed auto close feature
03/12/2023 v1.311 - Added 3 new auto close features...ZombieStacked... improved AutoAddOn feature
03/07/2023 v1.309 - Added more Snap locations and reorganized IntradayMarginDollars, PositionMaxVolume, and CommissionPerSide...removed legacy settings
03/04/2023 v1.305 - Rebuilt Auto AddOn feature
02/24/2023 v1.297 - Added trade alerts to AutoPilot Lite.
01/30/2023 v1.285 - Added Creeper & Zombie Flip + Trail to Auto Breakeven button
01/20/2023 v1.281 - Added support for next filtered setups in Auto Pilot Lite (APL.F(1))
01/15/2023 v1.280 - Added support for boget targets while in drawdown
01/12/2023 v1.278 - Added support for unlimited bogey targets
01/10/2023 v1.277 - Improved AutoAddOn feature to halt addons when stoploss has moved to break even
12/07/2022 v1.265 - Added Creeper Flip + Trail to auto break even
12/05/2022 v1.264 - Improved button and label layout - now includes take profit & bogey target info
10/23/2022 v1.257 - Optimization and bug fixes
10/12/2022 v1.253 - Improved HODL feature
10/11/2022 v1.250 - Added support for blended instruments and several other improvements
09/28/2022 v1.246 - Refactored ECATP and minor bug fixes
09/15/2022 v1.235 - Bug fixes for bogey targets & SnapPBLevel
08/30/2022 v1.232 - Bug fixes and ability to bypass intraday margin check
08/28/2022 v1.227 - Added Buy/Sell buttons, LimitAddOnVolumeToInProfit functionality, average line, and bug fixes
07/05/2022 v1.222 - Changed terms Day Over Max Profit/Daily Profit to Bogey Target
06/10/2022 v1.218 - DP button now auto advances. Fixed invalid stoploss issue
06/05/2022 v1.215 - Added smart Daily Profit multiples, fixed pop replay issue, and ECATP price line
06/02/2022 v1.212 - Added DayOverMaxLossProfitRatio to automatically adjust the DayOverMaxLoss line based on a ratio of the DayOverMaxProfitDollars
05/24/2022 v1.211 - Added support for 10 multiples of the Daily Max Profit Dollars.
05/11/2022 v1.210 - Added DP button. This is used to support multiples of the Daily Max Profit Dollars.
04/29/2022 v1.207 - Fixed auto pilot issue that may cause skipped entries
04/26/2022 v1.206 - Improved Auto Pilot feature to prevent trade/token entry after the follow through candle has been open for a moment
04/21/2022 v1.205 - Changed HODL to prevent auto close and no longer will move to break even.
03/30/2022 v1.203 - Added new auto break-even option: Auto Break-Even Trail Zombie Resume
03/27/2022 v1.202 - Added new stoploss snap types and ability to zero out Auto Pilot in one click
03/23/2022 v1.200 - Added Zombie Setup Auto Pilot feature
...
04/06/2021 v1.141 - Initial release
TickHunter Indicator Settings
1) Order Management Settings
* UseAutoPositionStopLoss: enable/disable automatic stop-loss based on initial stop-loss tick/atr multiplier settings
* UseAutoPositionTakeProfit: enable/disable automatic take-profit based on initial take-profit tick/atr multiplier settings
* AutoPositionCloseType: select auto close type
** EquityCloseAllTakeProfit: closes all market positions when profit level reached
** MovingAverage1Slope: close chart instrument position when EMA 1 slope changes
** MovingAverage1SlopeMinProfit: close chart instrument position when EMA 1 slope changes & AutoCloseMinProfitDollarsPerVolume
** MovingAverage2Slope: close chart instrument position when EMA 2 slope changes
** MovingAverage2SlopeMinProfit: close chart instrument position when EMA 2 slope changes & AutoCloseMinProfitDollarsPerVolume
** MovingAverage3Slope: close chart instrument position when EMA 3 slope changes
** MovingAverage3SlopeMinProfit: close chart instrument position when EMA 3 slope changes & AutoCloseMinProfitDollarsPerVolume
** ZombieSetupFlip: close chart instrument position when opposite Zombie setup bar closes
** ZombieSetupFlipMinProfitDollars: close chart instrument position when opposite Zombie setup bar closes & AutoCloseMinProfitDollarsPerVolume
* AutoPositionBreakEvenType: select auto break-even type
** AB.OFF: auto break-even disabled
** AB.OJ: auto break-even is active and will move the stop-loss to break even using trigger ticks and trigger ATR multiplier (whichever is larger)
** AB+TM3: auto break-even is active and after BE will trail the stop-loss using break-even moving average 3 (default 89-period EMA)
** AB+TM2: auto break-even is active and after BE will trail the stop-loss using break-even moving average 2 (default 21-period EMA)
** AB+TM1: auto break-even is active and after BE will trail the stop-loss using break-even moving average 1 (default 10-period EMA)
** AB+T5B: auto break-even is active and after BE will trail the stop-loss using the high or low of the 5 previous bars
** AB+T3B: auto break-even is active and after BE will trail the stop-loss using the high or low of the 3 previous bars
** AB+T2B: auto break-even is active and after BE will trail the stop-loss using the high or low of the 2 previous bars
** AB+T1B: auto break-even is active and after BE will trail the stop-loss using the high or low of the 1 previous bars
* StopLossInitialTicks: initial ticks for stop-loss
* StopLossInitialATRMultiplier: initial ticks for stop-loss based on average true range (atr)
* StopLossInitialSnapType: choose initial stop-loss snap bars initial ticks/atr - whichever is greater
* StopLossJumpTicks: ticks to jump when moving stop-loss closer to market price (holding down CTRL key and clicking SL+ button will move stop-loss to snap price of previous candle)
* StopLossInitialDollars: initial dollars for stop-loss
* StopLossInitialDollarsCombined: initial dollars for stop-loss + initial ticks + initial snap
* StopLossRefreshOnVolumeChange: recalculate stop-loss price after volume changes
* BreakEvenInitialTicks: initial ticks of profit for stop-loss when moved to break-even
* BreakEvenJumpTicks: ticks to jump in favor after stop-loss has moved to break-even
* BreakEvenTurboJumpTicks: ticks to jump in favor after stop-loss has moved to break-even (holding down CTRL key and clicking BE+ button wil activate turbo jump ticks)
* BreakEvenAutoTriggerTicks: after price moves in favor by trigger ticks then automatically move stop-loss to break-even
* BreakEvenAutoTriggerATRMultiplier: trigger ticks based on average true range (atr)
* TakeProfitInitialTicks: initial ticks for take-profit
* TakeProfitInitialATRMultiplier: initial ticks for take-profit based on average true range (atr)
* TakeProfitJumpTicks: ticks to jump when moving take-profit away from market price
* TakeProfitCtrlSLMultipler: holding ctrl while clicking TP+ will multiply the current stop-loss ticks by this value
* SnapPaddingTicks: padding ticks above high or below low of previous candle
* PopInitialTicks: initial ticks to open a pending buy/sell stop order above or below price
* PopInitialATRMultiplier: initial ticks to open a pending buy/sell stop order above or below price based on average true range (atr)
* PopJumpTicks: jump ticks to move a pending buy/sell stop order above or below price closer to market price
* UsePopAutoJumpToSnap: Enable/disable Pop auto jump feature. When enabled and Pop+/- buttons used, pending order will automatically keep jumping toward price until it reaches Snap price
* DropInitialTicks: initial ticks to open a pending buy/sell limit order below or above price
* DropInitialATRMultiplier: initial ticks to open a pending buy/sell limit order below or above price based on average true range (atr)
* DropJumpTicks: jump ticks to move a pending buy/sell limit order below or above price closer to market price
* UseDropAutoJumpToSnap: Enable/disable Drop auto jump feature. When enabled and Drop+/- buttons used, pending
* ATRPeriod: period for all atr multiplier features
2) Auto Close Settings
* AutoCloseMinProfitDollarsPerVolume: minimum dollars per volume profit level to reach before closing chart instrument position - used with MovingAverage#SlopeMinProfit
* AutoCloseAndTrailMA1Period: EMA 1 period - used with auto close button AC+M1S and auto break-even button AB+TM1 to trail stop-loss after break-even
* AutoCloseAndTrailMA2Period: EMA 2 period - used with auto close button AC+M2S and auto break-even button AB+TM2 to trail stop-loss after break-even
* AutoCloseAndTrailMA3Period: EMA 3 period - used with auto close button AC+M3S and auto break-even button AB+TM3 to trail stop-loss after break-even
* BogeyTargetBaseDollars: Set auto close bogey target base in dollars.
* DayOverMaxLossDollars: Set auto close daily max loss in dollars. Stoploss cannot be set past this level
* DayOverMaxLossBTBaseRatio: Automatically set DayOverMaxLossDollars based on a ratio of BogeyTargetBaseDollars. Only active when ratio is greater than zero and DayOverMaxLossDollars is set to zero and BogeyTargetBaseDollars is greater than zero.
* DayOverAccountBalanceFloorDollars: Set auto close account balance floor dollars.
* ECATakeProfitDollarsPerMicroVolume: dollars per volume profit level to reach before closing all market positions
* ECATakeProfitDollarsPerEminiVolume: dollars per volume profit level to reach before closing all market positions
* ECATakeProfitATRMultiplierPerVolume: ticks per volume profit level based on average true range (atr)
* ECAStopLossMaxDDInDollars: positon max drawdown in dollars before automatic close
* ECAStopLossEquityRemainingInDollars: close all positions when equity remaining in account at or below this level
3) Auto Entry Settings
* AutoEntryVolumeType: select auto entry volume type
** Option1: uses volume number from AutoEntryVolumeOption1
** Option2: uses volume number from AutoEntryVolumeOption2
** Option3: uses volume number from AutoEntryVolumeOption3
** Option4: uses volume number from AutoEntryVolumeOption4
** Option5: uses volume number from AutoEntryVolumeOption5
* AutoEntryVolumeOption1: volume/contracts to use when using drop+/- or pop+/-
* AutoEntryVolumeOption2: volume/contracts to use when using drop+/- or pop+/-
* AutoEntryVolumeOption3: volume/contracts to use when using drop+/- or pop+/-
* AutoEntryVolumeOption4: volume/contracts to use when using drop+/- or pop+/-
* AutoEntryVolumeOption5: volume/contracts to use when using drop+/- or pop+/-
If you would like to discuss the TickHunter Trade Bot indicator I would be happy to answer any questions.
* Features that have both ticks and an atr multiplier with the same feature name prefix will use the larger of the two settings. Setting any atr multiplier feature to zero will disable it.
** Configure only one instance of TickHunter per instrument. Running more than one instance of
TickHunter on the same instrument may cause unintended duplicate actions.
*** Recommend fully exploring TickHunter's features and settings on a simulation or playback account before using it on a live account.
Use TickHunter at your own risk. None of the authors, contributors, administrators, or anyone else connected with TickHunter, in any way whatsoever, can be responsible or held liable for using this trading tool. No warranty expressed or implied.
The Trend Magic indicator is an ATR-based trend line that uses CCI to control its upward and downward movement. It was once a popular indicator in the Forex trading world. When the CCI is greater than zero the line is only able to move upwards, and conversely, when the CCI is less than or equal to zero the line is only able to move downwards.
By default the line is colored based on the last direction it has moved. Enabling the CCI color mode will color the line based on if the CCI value is above or below zero.
Description:
Wide Range Body/Bar (WRB) Hidden Gap indicator by M. A. Perry of TheStrategyLab.com (wrbtrader on Futures.io)
Note, WRB can stand for either "Wide Range Body" or "Wide Range Bar", but they are separate items:
* Wide Range Bar interval represents the price area between the High and Low...often called the range of the interval.
* Wide Range Body interval represents the price area between the Close and Open...often called the body of the interval.
Only a small percentage of WRB Hidden GAP intervals qualify as a WRB Zone.
Following the instructions in chapter 2 in the WRB Analysis Free Study Guide. -M.A. Perry
Parameters:
* Lookback: Number of bars to evaluate for wide-ness (default = 3, Range: 3 to 20 max)
* WRBType: Look for wide-ness based on: body range, bar range, or both body and bar range (default = Body)
* GapType: If a hidden gap is found, draw rectangle around: BarRange, BodyRange, or GapRange (Default = GapRange)
From Chapter 1 of the Tutorial:
WRB Analysis is an analysis of changes in volatility and supply/demand. Simply, WRB helps traders to understand and exploit changes in volatility as a way to identify key price areas where there has been an important change in supply/demand between buyers and sellers prior to the appearance of any trade signals. Thus, WRB Analysis is primarily designed to improve the understanding of the price action prior to the appearance of any trade signal and improve the performance of a trade signal strategy. In addition, WRB Analysis is not a trade signal and it must be embedded (merged) within a trade signal strategy if you want to improve the performance of your trade signal strategies.
Included sound files for alerts (place in NT sound folder):
HiddenGapUp.wav
HiddenGapDown.wav
Notes:
* Version 1.0 of this indicator is based off chapters 1-3. I don't have the advanced section of this tutorial and any additional items from there are not included.
References:
* WRB Analysis Tutorials, M. A. Perry, 2014, chapters 1-3 (free download at TheStrategyLab.com).
* There are also chapters 4-12 which are for sale at TheStrategyLab.com (advanced section of tutorial).
May 27th, 2021
Size: 126.59 KB
Downloaded: 630 times
2381
TraderGB
This is a testing tool for NT 7 which I developed with Trading Coders (I paid for their help - https://www.tradingcoders.com/) for my personal use. It's primarily a scalping tool using a simple MACD cross. There are two additional indicators which are optional: a simple EMA and StepMAV71Sharky which was freely available. Thank you Sharky wherever you are.
It includes a profit target and stop loss. You can also test time of day and has an alert.
You can select to trade long, short or both. I generally test one side at a time. Even when I'm using it in live trading, I insert a long and a short side usually on separate charts and do not use "both". The signals are more accurate.
If someone wants to covert it for NT 8, that would be nice. Let me know if someone does the conversion.
I'm a scalper so I find it useful to test different scalping ideas.
Any questions or comments, please feel free to contact me.
February 12th, 2020
Size: 14.37 KB
Downloaded: 1393 times
2167
phantomtrader
This strategy allows you:
- convert market-replay(NRD) to CSV format (for each day separately)
- convert market-replay to NinjaTrader ticks import format (*.Last.txt, *.Ask.txt, *.Bid.txt)
How to use it:
1) Connect to Market Replay Connection
2) In strategy tab add MarketReplayDumpStrategy and select Contract you're trying to convert for example ES 09-19(make sure that you have any market replays for that contact). TimeFrame of strategy do not matter, same as DaysToLoad, but better select 1 day to load it faster.
3) Make sure folder from strategy settings exists
4) Enable the strategy and watch Output window
* Dump process can be multi-threaded, you can control that via MaxDegreeOfParallelism
* Creation of import data is single threaded since it is writing to one file
* Strategy will automatically detect life time of contact by expiration/rollover dates from NinjaTrader, and adds extra 3 days before and after
* Once conversion process is done strategy will disable itself
* When importing(Tools->Import->Historical Data) set "Time Zone of imported Data" to your NinjaTrader TimeZone(Tools->Options->General->Time Zone)
* Tested on 8.0.19.1 64-bit
November 25th, 2019
Size: 161.72 KB
Downloaded: 255 times
2121
logindejavu27
Version 2.2 March 8, 2020
The Multiple MA Cross indicator plots a fast and a slow moving average and colors the area between the two moving averages. Both the fast and the slow moving average may be selected from a collection of over 30 different moving averages.
The indicator is primarily designed as a trend filter to show whether the market is in an uptrend or in a downtrend. The indicator comes with two different trend definitions - cross and thrust. The trend is exposed as a double series and can be accessed via the NinjaTrader strategy builder or the market analyzer. Directly accessing the trend via the market analyzer requires a separately coded market analyzer column, which is not yet included with the install file.
Trend definition "MA Cross": The current trend changes to "uptrend" when the fast moving average crosses the slow moving average from below. The current trend changes to "downtrend" when the fast moving average crosses the slow moving average from above.
Trend definition "Thrust": The current trend changes from “downtrend” to “uptrend” with the first bullish thrust bar that plots above the upper moving average. A bullish thrust bar is a bar that closes above the prior bar’s high and has a larger range than the prior bar. The current trend changes from “uptrend” to “downtrend” with the first bearish thrust bar that plots below the lower moving average. A bearish thrust bar is a bar that closes below the prior bar’s low and has a larger range than the prior bar.
Moving averages available as fast and slow moving average:
- Adaptive Laguerre Filter
- ADXVMA
- Butterworth Filter
- DEMA
- Distant Coefficient Filter
- Double Weighted Moving Average (DWMA)
- Exponential Hull Moving Average (EHMA)
- EMA
- Gaussian Filter
- HMA
- Holt EMA
- Laguerre Filter
- LinReg
- Moving Mean TPO
- Moving Mean VWTPO
- Moving Median
- Moving Median TPO
- Moving Median VWTPO
- Range Weighted Moving Average (RWMA)
- Sine Weighted Moving Average (SWMA)
- SMA
- SuperSmoother
- TEMA
- Tillson T3
- TMA
- Triple Weighted Moving Average (TWMA)
- VWMA
- Wilder's Average
- WMA
- ZerolagHATEMA
- ZerolagTEMA
- ZLEMA
Applying the Multi MA Cross to indicators: The Multi MA Cross is designed to be applied to other indicators which may be selected as input series. However, some of the moving averages listed above will not support this feature. In case that a selected moving average does not support the feature the indicator will display an error message asking you to select a different moving average for the fast or the slow moving average. These are the moving averages that may not be selected when an indicator is chosen as input series: Mean TPO, Mean VWTPO, Median TPO, Median VWTPO, RWMA, VWMA, ZerolagHATEMA. These moving averages may only be applied to price.
Paint Bars: The MultipleMA Cross indicator comes with paint bars. The paint bars are colored according to the trend, where the trend maybe determined via the "MA Cross" or the "Thrust" option. The paint bars may be displayed without the indicator plots.
April 29th, 2024 03:04 AM SCALPERUK Has anyone managed to get this to work. I'm all set up but the agent responds with errors
February 28th, 2024 06:35 AM Darvish Is this working for anyone?
February 11th, 2024 10:16 AM slim_pikins Is there an API for Bard (now Gemini)>
December 9th, 2023 09:07 AM minicantrade Downloaded the indicator joined Azure api --and the indie doesnt even show up on my list so I am a little lost and have
no idea what I am doing some help would be good LOL thanks
November 30th, 2023 04:15 PM Realtimetrader Thanks