TradeStation
futures io


Categories Help    

TradeStation
TradeStation Downloads / TradeStation Indicators

Share TradeStation indicators, EasyLanguage indicators.


Sort by
Filter

Show full/short entries Entries
Kaufman AMA with Trend Change
This indicator is the Kaufman Adaptive Moving Average, a/k/a KAMA, but which changes color when the indicator changes direction. This is a direct descendant of the Mov Avg Adaptive indicator that comes with TradeStation.

I like single line indicators that change color when a trend changes, so this is my implementation of the KAMA with those attributes.

Indicator Name: Mov Avg Adaptive Color Change
Inputs: Same as a normal KAMA, plus:
  • UsePlotColoring >>> set to true for coloring; false to turn it off
  • UpTrendColor >>> self explanatory
  • DownTrendColor >>> self explanatory

Small Difference in Original Calculation:
I added the Round2Fraction function to the MAA calculation, to round to the nearest minimum move for the chart. This helps filter out minor fluctuations when the indicator is practically flat, that may show a change in trend that isn't there. I don't believe this fundamentally changes anything, from my observations.

Import the ELD and apply to a chart. You're all set!

I am posting a MultiCharts version in that section, as the syntax is slightly different.
 
Suggest other entries I might like
Details: Kaufman AMA with Trend Change


September 30th, 2020
Size: 14.23 KB
Downloaded: 94 times

Keywords: adaptive average kama kaufman moving
Kaufman Efficiency Ratio 5 *
Kaufman Efficiency Ratio converted from thinkscript to easylanguage. Lower indicator w radar screen and an upper paintbar.
 
Suggest other entries I might like
Details: Kaufman Efficiency Ratio


May 22nd, 2019
Size: 26.67 KB
Downloaded: 383 times

Keywords: efficiency kaufman ratio
Cumulative Tick and Tick Bars for TradeStation 5 *
Cumulative Tick and Tick Bars for Tradestation v1.0

Works on at least TradeStation 9.5 and later

Description:
Plots the Daily Cumulative Tick value. And Tick Bars (_HKCumTickCS) Plots the number of bars where the average tick was greater than a threshold value, less than a negative threshold value, or neutral.

Usage:
Create a $TICK tick chart and add indicator _DBCumTickSvr
Create another $TICK chart (any timeframe) and add indicator _DBCumTickClient and _HKCumTickCS.
Format the indicators and change the Style to Histogram and colors asChange the colors as desired.

Input Parameters:
_DBCumTickClient- CumDivisor is just a divisor of the total CumulativeTick value to make it more readable.
_HKCumTickCS- threshold is the value used to separate the up vs down vs neutral bars
 
Suggest other entries I might like
Details: Cumulative Tick and Tick Bars for TradeStation


September 16th, 2015
Size: 214.54 KB
Downloaded: 422 times
Any Range on Any Chart for TradeStation
Any Range Anywhere for TradeStation v1.0

Works on at least TradeStation 9.0 and later

Prerequisite: ADE and EL Collections need to be installed. If you dont have it installed, please get the setup executable from here and install it prior to running these indicators: https://community.tradestation.com/Discussions/Topic.aspx?Topic_ID=128732&SearchTerm=elcollections&txtExactMatch=

Description:
Plots the developing range (high-low) for a given time interval on any chart and allows this range to be plotted on any other chart.

Usage:
The ELD contains 2 indicators that rely on ADE and EL Collections to do their job.
  • AnyRangeAnywhere(S): This indicator can be plotted on any chart and it will plot the developing range based on the start and end times input specified by the user. At the same time, it will copy the range values in memory using ADE and EL Collections. (S) stands for "sender".
  • AnyRangeAnywhere(R): This indicator reads the range plotted by the indicator above and plots it on any other chart. (R) stands for "receiver".
The indicators allow the range to be named so that multiple ranges can be plotted differentiated by their unique names specified by the user.





Works on the following chart types:
  • AnyRangeAnywhere(R):
    • Time Only. It might work on the other chart types but it might be inaccurate.
  • AnyRangeAnywhere(S):
    • Any chart - time, tick, volume, range etc.

Input Parameters:
For session start times, use the bar time of the first bar in the session. This would vary depending upon the interval of the time chart. For instance, for CL, in a 1 min chart, the first RTH session start bar would be 801 whereas in a 5 minute chart, the first bar would be 805.
  • AnyRangeAnywhere(S):
    • ORStartTime- Time in HH24MM format (eg: 0800 for 8 AM and 1600 for 4 PM) specifying the range start
    • OREndTime- Time in HH24MM format (eg: 0800 for 8 AM and 1600 for 4 PM) specifying the range end
    • PlotEndTime- Time in HH24MM format (eg: 0800 for 8 AM and 1600 for 4 PM) specifying how long to plot the ranges in an intraday chart
    • ADEClassName- A unique name that identifies this range. When this indicator is plotted more than once, this input value must be unique to each plot
  • AnyRangeAnywhere(R):
    • ADEClassName- A unique name that identifies the range to plot. This should match (case-sensitive) to the value of this same input specified in the sender.
    • ADEInterval- Specify the data interval for the sender chart. If the sender chart is a 5 minute chart, specify 5.
    • ADESymbol- Specify the symbol of the sender chart or use the default if the symbols are the same. This option is there to allow calculating the range on a continuous contract symbol, for instance, and then plotting it on a specific contract month symbol.

Change Log:
  • 02/15/2014 - v1.0 - Initial Upload
 
Suggest other entries I might like
Details: Any Range on Any Chart for TradeStation


February 15th, 2014
Size: 62.88 KB
Downloaded: 509 times
ACD Daily Pivot
ACD Daily Pivot for TradeStation v1.0

Works on at least TradeStation 9.0 and later

Description:
Plots the ACD daily pivot. Allows the option of choosing either the ETH session or RTH session range.

Usage:
The indicator plots the daily pivot as described in Mark Fisher's book, The Logical Trader. Fisher's subscription service uses the RTH high and low to calculate the daily pivot along with the exchange close. This indicator does that and at the same time allows the option to use the ETH session high and low instead of the RTH session. The close used by the indicator is always the exchange close which is usually reset by the exchange, and is usually different than the last print for the session, between the ETH session close and the next ETH session open.

Works on the following chart types:
  • Time Only. It might work on the other chart types but it might be inaccurate.

Input Parameters:
For session start times, use the bar time of the first bar in the session. This would vary depending upon the interval of the time chart. For instance, for CL, in a 1 min chart, the first RTH session start bar would be 801 whereas in a 5 minute chart, the first bar would be 805. To get theoretically accurate values, the correct session start and end times must be specified.
  • ETHStart- Time in HH24MM format (eg: 0800 for 8 AM and 1600 for 4 PM) specifying the ETH session start
  • ETHEnd- Time in HH24MM format (eg: 0800 for 8 AM and 1600 for 4 PM) specifying the ETH session end
  • RTHStart- Time in HH24MM format (eg: 0800 for 8 AM and 1600 for 4 PM) specifying the RTH session start
  • RTHEnd- Time in HH24MM format (eg: 0800 for 8 AM and 1600 for 4 PM) specifying the RTH session end
  • UseETH_1OrRTH_2- Specify 1 to use ETH session or 2 to use RTH session
  • ShowPivotPoint- Specify True to show the daily pivot point (in addition to the range), False to hide it.

Change Log:
  • 02/15/2014 - v1.0 - Initial Upload
 
Suggest other entries I might like
Details: ACD Daily Pivot


February 15th, 2014
Size: 20.45 KB
Downloaded: 237 times
Cumulative Delta for TradeStation 5 *
Cumulative Delta for TradeStation v1.0

Works on at least TradeStation 9.0 and later

Description:
Plots the cumulative delta (orders lifting offers - orders hitting bids) in a sub graph below the main chart for most chart types in TradeStation.

Usage:
The indicator plots the difference between Upticks and Downticks for each bar in a Hi-Lo bartype fashion. The close of the previous bar is the open of the new bar. It does not draw the wicks, just the open and close. The code maintains the running Upticks-Downticks tally in a bar and plots the difference realtime for the last bar on chart if update intrabar option is checked. It allows the trader to specify pit open/close times and the option to reset (start from 0) the cumulative delta at either the pit open time or the pit close time or both. A zero line can be plotted if required. Also allows the user to specify an Alert limit such that when the delta goes over this limit, that CD bar can be colored with the Alert Color. The Up Color and Down Color can also be specified.

Works on the following chart types:
  • Time
  • Tick (using Trade Vol instead of Tick Count for chart volume)
  • Volume (using Trade Vol instead of Tick Count for chart volume)
  • Momentum
  • Range



Input Parameters:
  • PitOpen - Time in HH24MM format (eg: 0800 for 8 AM and 1600 for 4 PM)
  • PitClose - Time in HH24MM format (eg: 0800 for 8 AM and 1600 for 4 PM)
  • ResetAtPitOpen - True/False values only
  • ResetAtPitClose - True/False values only
  • PlotZeroLine - True/False values only
  • AlertBar - Numerical, positive value only. The code uses an absolute value before comparing.
  • AlertColor - Any TradeStation color like Magenta, Cyan, Yellow, White etc.
  • UpColor - Any TradeStation color like Magenta, Cyan, Yellow, White etc.
  • DownColor - Any TradeStation color like Magenta, Cyan, Yellow, White etc.

Change Log:
  • 12/26/2013 - v1.0 - Initial Upload
 
Suggest other entries I might like
Details: Cumulative Delta for TradeStation


December 26th, 2013
Size: 10.76 KB
Downloaded: 748 times
NYSE Volume (colorcoded by hour) 5 *
Here's a volume indicator I use for watching the volume trend on the NYSE. The chart is a 30-min chart of $TVOLC (Total volume on the NYSE). The bars are color coded by hour to make it easy to see when their is either an increase or decrease in volume from prior sessions. (This is Tradestation 9.1).
 
Suggest other entries I might like
Details: NYSE Volume (colorcoded by hour)


March 8th, 2013
Size: 12.01 KB
Downloaded: 201 times

Keywords: tradestation
Congress in Session
This Tradestation Show Me tells you days that Congress is in session. Contains data from Dec 1997 - Oct 26, 2012.

You may find this useful for the stock market, since there have been a few studies that show correlation between when Congress is in session and stock market performance (Congress in session tends to mean stocks go down).

Version 1.0
 
Suggest other entries I might like
Details: Congress in Session


October 28th, 2012
Size: 222.72 KB
Downloaded: 112 times
FOMC Text 4 *
Here is a way to see what days have been or are FOMC. This is updated through DEC 2012. I am using a function publicly available at the trade station forums.
 
Suggest other entries I might like
Details: FOMC Text


January 30th, 2012
Size: 14.18 KB
Downloaded: 196 times
Morning Gap
Ever want to quicky know what the morning gap is premarket or at the open? This Indicator will calculate it for you. The user can input the time of yesterdays close, time of open and an optional feature to show the premarket gap.
 
Suggest other entries I might like
Details: Morning Gap


January 30th, 2012
Size: 7.12 KB
Downloaded: 308 times

Keywords: gap morning premarket text
Support and Resistance 5 *
A Tradestation show me to mark the strongest and recent pivots. Then draw lines marking those areas.

The example is shown with my Double WMA. The indicator is not very helpful on its own but when considering trend and price movement it is interesting
 
Suggest other entries I might like
Details: Support and Resistance


January 14th, 2012
Size: 10.79 KB
Downloaded: 678 times

Keywords: resistance support
SuperTrend 4 *
//*** This is a tradestation version of the code Big Mike and Fat Tails have
uploaded here. I made several modifications as well. The sample
picture is inspired from BMT traders and many sharky templates.

//*** The sample picture contains Super trend and Double WMA Ultra Grad

Version 1: Modified Jan 2012 for tradestation ELD ***********
//**** added up dn color, added single or multi dot ***********
//**** added median price moving average logic
 
Suggest other entries I might like
Details: SuperTrend


January 14th, 2012
Size: 8.15 KB
Downloaded: 1185 times

Keywords: anasupertrend sar sharky supertrend
Moving Average Ultra Grad
This is a double weighted moving average that uses shorter term averages to gradually change the color of the indicator.
 
Suggest other entries I might like
Details: Moving Average Ultra Grad


January 7th, 2012
Size: 8.50 KB
Downloaded: 318 times

Keywords: average double moving trend weighted grad
Double Weighted Moving Average Color
Here is a double weighted moving average. The line changes color to show trend. Both MA lengths are selectable. Trend color is selectable. Version 1
 
Suggest other entries I might like
Details: Double Weighted Moving Average Color


January 7th, 2012
Size: 6.68 KB
Downloaded: 311 times

Keywords: average double moving trend weighted
VolVsRange
An indi for TradeStation designed to show high-volume bars
without having to devote a separate pane to an indi. It
marks them with the character in the variable vChar - "o" in
the picture.
It simply plots an ma of volume and marks bars which exceed
it by the value in the variable vadjust.
The bottom pane in the picture, which is a different but
similar indi, shows the principle.
Why the longest volume bar in that pane is not signalled by
VolVsRange I don't know - unless it's off the chart.

The code (let me know if there are errors in it - it was one
of my first tries) :

 
Code
{ Indicator } 

Inputs: 
UpColor(Black) , DnColor(Red) , vAvg.length(9) , vadjust(1.8) , VolAlert(false) , vChar("o"), offset(0.5) ; 

Variables: 
vol(0) , avgv (0) , volvlen(0) , barlength(0) ;

If BarType >= 2 then vol = Volume else vol = Ticks;    

vol = volume ;
barlength = H - L ;
if vol > 0 and barlength > 0 then 
   volvlen = vol / barlength 
else 
   volvlen = 0 ;

avgv = averageFc(volvlen, vAvg.length) ;

if volvlen > avgv * vadjust and O[1] > C[1] then 
  begin
    Value1 = Text_New(D,T, Low - Range * offset, vChar );        // down bar 
    Value2 = Text_SetColor(Value1,UpColor);
    If VolAlert = True then 
      begin
      Alert("VolvLen down ");
      End;
   End;

if volvlen > avgv * vadjust and C[1] >= O[1] then 
  begin
    Value1 = Text_New(D,T, High + Range * offset, vChar ) ;     //up bar 
    Value2 = Text_SetColor(Value1,UpColor);
    If VolAlert = True then 
      begin
        Alert("VolvLen up ");
      End;
  End;
 
Suggest other entries I might like
Details: VolVsRange


November 25th, 2011
Size: 8.11 KB
Downloaded: 263 times
InBarsOut v1
Attached is a paintbar indi for TradeStation to show Inside
and Outside bars - or rather TS' Engulfing and Harami bars.

The attached picture has inside bars light green & bright red,
outside bars dark green & red. It is just an example - not all
reversals are signaled as well as that !

To be able to use the windows colors specified in the code,
you have to install x11.eld from
https://jamstrategytrading.com/FreeStuff.htm
This allows access to many of Windows' standard colors by
name.
See also https://en.wikipedia.org/wiki/X11_color_names

As in the code, to specify a color, one then prepends
color.
to the color's name :
InDnColor(color.Red)
for instance.
If you're happy with TradeStation's range of colors, you can
remove every instance of
color.

The (amateur) code :

 
Code
{ Candlestick PaintBar }

inputs: Length( 14) , 
    InUpColor(color.Chartreuse) , InDnColor(color.Red) , 
    OutUpColor(color.DarkGreen) , OutDnColor(color.FireBrick) ,
    NmlUpColor(color.LightSeaGreen), NmlDnColor(color.LightSalmon) ,
variables: oBullishEngulfing( 0 ) , oBearishEngulfing( 0 ) , oBullishHarami(0) , oBearishHarami(0), barColor(blue) ;

Value1 = C_BullEng_BearEng( Length, oBullishEngulfing, oBearishEngulfing ) ;
Value2 = C_BullHar_BearHar( Length, oBullishHarami, oBearishHarami ) ;

    if oBullishEngulfing = 1 then barColor = OutUpColor  
    else if oBullishHarami = 1 then barColor = InUpColor   
    else if oBearishEngulfing = 1 then barColor = OutDnColor  
    else if oBearishHarami = 1 then barColor = InDnColor   
    else if Close > Open then barColor = NmlUpColor  
    else if Close < Open then barColor = NmlDnColor  ;

    PlotPaintBar( High, Low, "InsOuts", barColor ) ;
 
Suggest other entries I might like
Details: InBarsOut v1


November 25th, 2011
Size: 18.96 KB
Downloaded: 287 times

Keywords: bars inside outside
Pivot Points Show Me 4 *
This study will show pivot points on a chart using the standard tradestation pivot logic. It will show when there has been a Higher Low or Lower High. A filter can also be applied to print only the pivots that form in the direction of the surrent trend.
 
Suggest other entries I might like
Details: Pivot Points Show Me


October 27th, 2011
Size: 7.94 KB
Downloaded: 479 times

Keywords: high higher low lower pivot
Perrys Trading Platform, method 2, version 1 5 *
The detailed description is here: , post #72

This indicator is the easy language version. It will plot above a bar for indications to go long, below the bar for shorts. Select the style to be points, weight and color to whatever you like. The offset input value is for how far above/below the bar a plot should be, so use a small value like 0.0002 for 6E and a larger value for TF like 0.2. The debug input value can be toggled to view the state of the conditions in the commentary.
 
Suggest other entries I might like
Details: Perrys Trading Platform, method 2, version 1


November 24th, 2010
Size: 12.14 KB
Downloaded: 1484 times
Perrys Trading Platform, method 1, version 1 5 *
The detailed description is here: , post #71

This indicator is the easy language version. It will plot above a bar for indications to go long, below the bar for shorts. Select the style to be points, weight and color to whatever you like. The offset input value is for how far above/below the bar a plot should be, so use a small value like 0.0002 for 6E and a larger value for TF like 0.2. The debug input value can be toggled to view the state of the conditions in the commentary.
 
Suggest other entries I might like
Details: Perrys Trading Platform, method 1, version 1


November 24th, 2010
Size: 11.97 KB
Downloaded: 771 times
EasyLanguage Comprehensive Reference Guide 5 *
This pdf is a comprehensive reference guide for EasyLanguage. It is 292 pages long and provides details on every aspect of EasyLanguage, such as order creation, alerts, variables, arrays, drawing, and even accessing external DLL's.  
Suggest other entries I might like
Details: EasyLanguage Comprehensive Reference Guide


February 23rd, 2010
Size: 2.72 MB
Downloaded: 975 times

Keywords: book easylanguage
EasyLanguage Reserved Words and Functions 5 *
This is a reference of all reserved words and functions as of TradeStation 8.3.

The .pdf is 1272 pages long and quite detailed, and is fully searchable.
 
Suggest other entries I might like
Details: EasyLanguage Reserved Words and Functions


February 23rd, 2010
Size: 2.35 MB
Downloaded: 587 times

Keywords: book easylanguage
EasyLanguage Essentials Guide 5 *
This book has been designed with the beginning EasyLanguage programmer in mind. Although comprehensive, it is not designed to answer every question about EasyLanguage.

It is not a complete Reference, but it is close.
 
Suggest other entries I might like
Details: EasyLanguage Essentials Guide


February 23rd, 2010
Size: 1.93 MB
Downloaded: 702 times

Keywords: book easylanguage trade station
Getting started with EasyLanguage 5 *
The purpose of this book is to help you learn the basics of EasyLanguage and explain how to make use of this powerful language for creating your own trading strategies and analysis techniques using familiar terminology and simple logical statements.  
Suggest other entries I might like
Details: Getting started with EasyLanguage


February 23rd, 2010
Size: 1.34 MB
Downloaded: 717 times

Keywords: easylanguage book
CCL Bar Pack 5 *
CCL is abbreviation for 'Confirmed CLose'. Years ago I rejected indicators - which I now I have a more friendly relationship with btw- and went into bars. The only trading seminar I went to was by Kent Calhoun who developed his 5 vertical bar trading pattern, essentially a 3 bar swing with some rules, but from which he designed some very effective strategies.

I modified his pattern to feature a 'confirmed close' meaning that only if the close takes out the low of the #4 bar (in a forming high swing) is the pattern verified. Very simple. But not so easy to code. Once that was done, you have the ShowMe included which plots confirmed by close (ccl) swing highs and lows color coded such that higher highs and higher lows are bullish color (for me yellow), LL and LH bearish and a swing whose high or low penetrates a previous one but whose close does not confirm is red, i.e. neither bullish nor bearish and often indicative of trend exhaustion, new trend change etc.

Then there are some Fib levels from those swings.

Also a set that project targets.

There's another one somewhere that determines long term trends by keep track of 'Active Highs' and 'Active Lows', i.e. a low whose developing swing made a higher high is Active until it is penetrated or a higher active low is formed. The trend is up until an active low is penetrated. In this way a bull market is defined as higher highs, and a bear market is defined as lower lows in that a bear market only starts if an active low is penetrated and a bull if an active high is penetrated. If/when I find it I will post it here without further explanation.

Picture shows the attached files in action. Colors are garish by TS8 and Ninja standards but some might find the swing patterns of interest. TS8 users will find they can be made to look quite elegant.

Also, they can be helpful for developing wave and other calculations because the swing points can be referenced. That said, Ninja has a very good swing high/low function, although I must say that the confirmed close business does filter out many bad swings, but doesn't always need multiples of ATR's (and 5-10 bars) to determine them.
 
Suggest other entries I might like
Details: CCL Bar Pack


November 22nd, 2009
Size: 67.41 KB
Downloaded: 1048 times

Keywords: tradestation
Weekly Universal Seasonality Indicator V1. 5 *
I have worked with long terms seasonals for a while as part of developing a futures portfolio system - hopefully for institutional clients at some point.

Although never used for the system, it was an attempt to almost eliminate optimization by applying a universal seasonal indicator to every instrument. It actually works, and well, the results were not good enough for me and so although I use it as a visual indicator, it is not part of any entry rule algorithm.

Ideally, this would be coded in arrays but I lack the skills to work with them in a context that combines text and numbers. Over my pay grade coding-wise!

In any case, it tracks the percentage move each week (this only works on weekly charts) and then puts them together in such a way that when an RSI of those values is plotted it instantly reveals whether or not there are regular or particular seasonal patterns.

In the picture attached you will see signals generated from a different seasonal system (part of my portfolio system) that has 59% successful trades going back over more then 20 years with 7% max drawdown. Not bad. But on the picture you can see the signals and compare how the indicator reads at the same time. As you can see, they are often in agreement. And this indicator will plot automatically on any weekly chart instantly revealing whether or not there are significant seasonal tendencies.

I suspect the same type of approach could be used for daily and intraday charts, albeit with the latter you might be looking for days-of-the-week, and/or hours of the day type behavior. Again, ability to code in arrays is key.

For those not using Tradestation, I paste in the code below.

Note on the picture: there is also an Equity indicator that shows current account balance from starting balance input, current trade P/L, current drawdown from maximum account high, and during DD's the histogram bars get progressively darker. It can also assume compounding in terms of the percentage drawdowns (i.e. of starting balance or the current balance after many years).

The ATR indicator shows either $$ or percentage of instrument ATR and also includes a money-management formula recommending nr. of contracts to trade.

If anyone wants either of these, let me know and I will gladly post them here.

PS. I am hoping some enterprising coder will want to translate this into Ninja script and/or use this as an kick starter to look into day-of-week or time-of-day type analysis. It's not rocket science, but you need to be good at coding arrays which I am not.

+++++++++++++++++++++

Pasted in Code

Indicator:
+++++++++++++++++++++


{***************************************
Written by: ccl-trading-systems.com
Description: Seasonal Indicator without Loop but using new Function
****************************************}
inputs: Rsilen(9),RunorNew(false),highline(70),lowline(30);
vars: runline(0),av(0),slow(0),count(0),slower(0),newrun(0),rsiline(0);

If currentbar >=43 then Begin

runline = VSeasRun2;
if (runline > 0 and runline[1] > 0) or (runline < 0 and runline[1] < 0) then newrun = runline + newrun[1] else newrun = runline;

If RunorNew then slow = averagefc(runline,3) else slow = averagefc(newrun,3);
rsiline = rsi(slow,rsilen);


vars: color(0);
Color = month(d); if color = 1 then color = darkgray;

Plot1 (highline,"hiline",lightgray);
Plot2(lowline,"lowline",lightgray);
Plot3 (50,"0line",color);
Plot4 (rsiline,"rsi-seas",color,color,1);


End; {current bar}

+++++++++++++++++++++++++++

Function:

+++++++++++++++++++++++++++

{***************************************
Written by: ccl-trading-systems.com
Description: Seasonal Indicator without Arrays, last 10 times attempt
****************************************}



vars: TDN(500),SDay(0);
vars:
TDNTot1(0),Count1(0),TDNAv1(0),
TDNTot2(0),Count2(0),TDNAv2(0),
TDNTot3(0),Count3(0),TDNAv3(0),
TDNTot4(0),Count4(0),TDNAv4(0),
TDNTot5(0),Count5(0),TDNAv5(0),
TDNTot6(0),Count6(0),TDNAv6(0),
TDNTot7(0),Count7(0),TDNAv7(0),
TDNTot8(0),Count8(0),TDNAv8(0),
TDNTot9(0),Count9(0),TDNAv9(0),
TDNTot10(0),Count10(0),TDNAv10(0),
TDNTot11(0),Count11(0),TDNAv11(0),
TDNTot12(0),Count12(0),TDNAv12(0),
TDNTot13(0),Count13(0),TDNAv13(0),
TDNTot14(0),Count14(0),TDNAv14(0),
TDNTot15(0),Count15(0),TDNAv15(0),
TDNTot16(0),Count16(0),TDNAv16(0),
TDNTot17(0),Count17(0),TDNAv17(0),
TDNTot18(0),Count18(0),TDNAv18(0),
TDNTot19(0),Count19(0),TDNAv19(0),
TDNTot20(0),Count20(0),TDNAv20(0),
TDNTot21(0),Count21(0),TDNAv21(0),
TDNTot22(0),Count22(0),TDNAv22(0),
TDNTot23(0),Count23(0),TDNAv23(0),
TDNTot24(0),Count24(0),TDNAv24(0),
TDNTot25(0),Count25(0),TDNAv25(0),
TDNTot26(0),Count26(0),TDNAv26(0),
TDNTot27(0),Count27(0),TDNAv27(0),
TDNTot28(0),Count28(0),TDNAv28(0),
TDNTot29(0),Count29(0),TDNAv29(0),
TDNTot30(0),Count30(0),TDNAv30(0),
TDNTot31(0),Count31(0),TDNAv31(0),
TDNTot32(0),Count32(0),TDNAv32(0),
TDNTot33(0),Count33(0),TDNAv33(0),
TDNTot34(0),Count34(0),TDNAv34(0),
TDNTot35(0),Count35(0),TDNAv35(0),
TDNTot36(0),Count36(0),TDNAv36(0),
TDNTot37(0),Count37(0),TDNAv37(0),
TDNTot38(0),Count38(0),TDNAv38(0),
TDNTot39(0),Count39(0),TDNAv39(0),
TDNTot40(0),Count40(0),TDNAv40(0),
TDNTot41(0),Count41(0),TDNAv41(0),
TDNTot42(0),Count42(0),TDNAv42(0),
TDNTot43(0),Count43(0),TDNAv43(0),
TDNTot44(0),Count44(0),TDNAv44(0),
TDNTot45(0),Count45(0),TDNAv45(0),
TDNTot46(0),Count46(0),TDNAv46(0),
TDNTot47(0),Count47(0),TDNAv47(0),
TDNTot48(0),Count48(0),TDNAv48(0),
TDNTot49(0),Count49(0),TDNAv49(0),
TDNTot50(0),Count50(0),TDNAv50(0),
TDNTot51(0),Count51(0),TDNAv51(0),
TDNTot52(0),Count52(0),TDNAv52(0),
TDNTot53(0),Count53(0),TDNAv53(0),
TDNTot54(0),Count54(0),TDNAv54(0);


If currentbar >=43 then Begin

If year(d)>(year(d))[1] then TDN = 0; TDN = TDN+1;


{SDay = (c-c[1])/c[1]*100 ;}
SDay = ((c-c[1])/c[1]) ;

If TDN = 1 then begin TDNTot1 = TDNTot1 + Sday; Count1 = Count1+1; TDNAv1 = TDNTot1/Count1; end;
If TDN = 2 then begin TDNTot2 = TDNTot2 + Sday; Count2 = Count2+1; TDNAv2 = TDNTot2/Count2; end;
If TDN = 3 then begin TDNTot3 = TDNTot3 + Sday; Count3 = Count3+1; TDNAv3 = TDNTot3/Count3; end;
If TDN = 4 then begin TDNTot4 = TDNTot4 + Sday; Count4 = Count4+1; TDNAv4 = TDNTot4/Count4; end;
If TDN = 5 then begin TDNTot5 = TDNTot5 + Sday; Count5 = Count5+1; TDNAv5 = TDNTot5/Count5; end;
If TDN = 6 then begin TDNTot6 = TDNTot6 + Sday; Count6 = Count6+1; TDNAv6 = TDNTot6/Count6; end;
If TDN = 7 then begin TDNTot7 = TDNTot7 + Sday; Count7 = Count7+1; TDNAv7 = TDNTot7/Count7; end;
If TDN = 8 then begin TDNTot8 = TDNTot8 + Sday; Count8 = Count8+1; TDNAv8 = TDNTot8/Count8; end;
If TDN = 9 then begin TDNTot9 = TDNTot9 + Sday; Count9 = Count9+1; TDNAv9 = TDNTot9/Count9; end;
If TDN = 10 then begin TDNTot10 = TDNTot10 + Sday; Count10 = Count10+1; TDNAv10 = TDNTot10/Count10; end;
If TDN = 11 then begin TDNTot11 = TDNTot11 + Sday; Count11 = Count11+1; TDNAv11 = TDNTot11/Count11; end;
If TDN = 12 then begin TDNTot12 = TDNTot12 + Sday; Count12 = Count12+1; TDNAv12 = TDNTot12/Count12; end;
If TDN = 13 then begin TDNTot13 = TDNTot13 + Sday; Count13 = Count13+1; TDNAv13 = TDNTot13/Count13; end;
If TDN = 14 then begin TDNTot14 = TDNTot14 + Sday; Count14 = Count14+1; TDNAv14 = TDNTot14/Count14; end;
If TDN = 15 then begin TDNTot15 = TDNTot15 + Sday; Count15 = Count15+1; TDNAv15 = TDNTot15/Count15; end;
If TDN = 16 then begin TDNTot16 = TDNTot16 + Sday; Count16 = Count16+1; TDNAv16 = TDNTot16/Count16; end;
If TDN = 17 then begin TDNTot17 = TDNTot17 + Sday; Count17 = Count17+1; TDNAv17 = TDNTot17/Count17; end;
If TDN = 29 then begin TDNTot18 = TDNTot18 + Sday; Count18 = Count18+1; TDNAv18 = TDNTot18/Count18; end;
If TDN = 29 then begin TDNTot19 = TDNTot19 + Sday; Count19 = Count19+1; TDNAv19 = TDNTot19/Count19; end;
If TDN = 20 then begin TDNTot20 = TDNTot20 + Sday; Count20 = Count20+1; TDNAv20 = TDNTot20/Count20; end;
If TDN = 21 then begin TDNTot21 = TDNTot21 + Sday; Count21 = Count21+1; TDNAv21 = TDNTot21/Count21; end;
If TDN = 22 then begin TDNTot22 = TDNTot22 + Sday; Count22 = Count22+1; TDNAv22 = TDNTot22/Count22; end;
If TDN = 23 then begin TDNTot23 = TDNTot23 + Sday; Count23 = Count23+1; TDNAv23 = TDNTot23/Count23; end;
If TDN = 24 then begin TDNTot24 = TDNTot24 + Sday; Count24 = Count24+1; TDNAv24 = TDNTot24/Count24; end;
If TDN = 25 then begin TDNTot25 = TDNTot25 + Sday; Count25 = Count25+1; TDNAv25 = TDNTot25/Count25; end;
If TDN = 26 then begin TDNTot26 = TDNTot26 + Sday; Count26 = Count26+1; TDNAv26 = TDNTot26/Count26; end;
If TDN = 27 then begin TDNTot27 = TDNTot27 + Sday; Count27 = Count27+1; TDNAv27 = TDNTot27/Count27; end;
If TDN = 28 then begin TDNTot28 = TDNTot28 + Sday; Count28 = Count28+1; TDNAv28 = TDNTot28/Count28; end;
If TDN = 29 then begin TDNTot29 = TDNTot29 + Sday; Count29 = Count29+1; TDNAv29 = TDNTot29/Count29; end;
If TDN = 30 then begin TDNTot30 = TDNTot30 + Sday; Count30 = Count30+1; TDNAv30 = TDNTot30/Count30; end;
If TDN = 31 then begin TDNTot31 = TDNTot31 + Sday; Count31 = Count31+1; TDNAv31 = TDNTot31/Count31; end;
If TDN = 32 then begin TDNTot32 = TDNTot32 + Sday; Count32 = Count32+1; TDNAv32 = TDNTot32/Count32; end;
If TDN = 33 then begin TDNTot33 = TDNTot33 + Sday; Count33 = Count33+1; TDNAv33 = TDNTot33/Count33; end;
If TDN = 34 then begin TDNTot34 = TDNTot34 + Sday; Count34 = Count34+1; TDNAv34 = TDNTot34/Count34; end;
If TDN = 35 then begin TDNTot35 = TDNTot35 + Sday; Count35 = Count35+1; TDNAv35 = TDNTot35/Count35; end;
If TDN = 36 then begin TDNTot36 = TDNTot36 + Sday; Count36 = Count36+1; TDNAv36 = TDNTot36/Count36; end;
If TDN = 37 then begin TDNTot37 = TDNTot37 + Sday; Count37 = Count37+1; TDNAv37 = TDNTot37/Count37; end;
If TDN = 38 then begin TDNTot38 = TDNTot38 + Sday; Count38 = Count38+1; TDNAv38 = TDNTot38/Count38; end;
If TDN = 39 then begin TDNTot39 = TDNTot39 + Sday; Count39 = Count39+1; TDNAv39 = TDNTot39/Count39; end;
If TDN = 40 then begin TDNTot40 = TDNTot40 + Sday; Count40 = Count40+1; TDNAv40 = TDNTot40/Count40; end;
If TDN = 41 then begin TDNTot41 = TDNTot41 + Sday; Count41 = Count41+1; TDNAv41 = TDNTot41/Count41; end;
If TDN = 42 then begin TDNTot42 = TDNTot42 + Sday; Count42 = Count42+1; TDNAv42 = TDNTot42/Count42; end;
If TDN = 43 then begin TDNTot43 = TDNTot43 + Sday; Count43 = Count43+1; TDNAv43 = TDNTot43/Count43; end;
If TDN = 44 then begin TDNTot44 = TDNTot44 + Sday; Count44 = Count44+1; TDNAv44 = TDNTot44/Count44; end;
If TDN = 45 then begin TDNTot45 = TDNTot45 + Sday; Count45 = Count45+1; TDNAv45 = TDNTot45/Count45; end;
If TDN = 46 then begin TDNTot46 = TDNTot46 + Sday; Count46 = Count46+1; TDNAv46 = TDNTot46/Count46; end;
If TDN = 47 then begin TDNTot47 = TDNTot47 + Sday; Count47 = Count47+1; TDNAv47 = TDNTot47/Count47; end;
If TDN = 48 then begin TDNTot48 = TDNTot48 + Sday; Count48 = Count48+1; TDNAv48 = TDNTot48/Count48; end;
If TDN = 49 then begin TDNTot49 = TDNTot49 + Sday; Count49 = Count49+1; TDNAv49 = TDNTot49/Count49; end;
If TDN = 50 then begin TDNTot50 = TDNTot50 + Sday; Count50 = Count50+1; TDNAv50 = TDNTot50/Count50; end;
If TDN = 51 then begin TDNTot51 = TDNTot51 + Sday; Count51 = Count51+1; TDNAv51 = TDNTot51/Count51; end;
If TDN = 52 then begin TDNTot52 = TDNTot52 + Sday; Count52 = Count52+1; TDNAv52 = TDNTot52/Count52; end;
If TDN = 53 then begin TDNTot53 = TDNTot53 + Sday; Count53 = Count53+1; TDNAv53 = TDNTot53/Count53; end;
If TDN = 54 then begin TDNTot54 = TDNTot54 + Sday; Count54 = Count54+1; TDNAv54 = TDNTot54/Count54; end;

vars: runline(0),runlineav(0);

If TDN = 1 then begin Runline = TDNAv1; runlineav = averagefc(tdnav1,10); end;
If TDN = 2 then begin Runline = TDNAv2; runlineav = averagefc(tdnav2,10);end;
If TDN = 3 then begin Runline = TDNAv3; runlineav = averagefc(tdnav3,10);end;
If TDN = 4 then begin Runline = TDNAv4; runlineav = averagefc(tdnav4,10);end;
If TDN = 5 then begin Runline = TDNAv5; runlineav = averagefc(tdnav5,10);end;
If TDN = 6 then begin Runline = TDNAv6; runlineav = averagefc(tdnav6,10);end;
If TDN = 7 then begin Runline = TDNAv7; runlineav = averagefc(tdnav7,10);end;
If TDN = 8 then begin Runline = TDNAv8; runlineav = averagefc(tdnav8,10);end;
If TDN = 9 then begin Runline = TDNAv9; runlineav = averagefc(tdnav9,10);end;
If TDN = 10 then begin Runline = TDNAv10; runlineav = averagefc(tdnav10,10); end;
If TDN = 11 then begin Runline = TDNAv11; runlineav = averagefc(tdnav11,10); end;
If TDN = 12 then begin Runline = TDNAv12; runlineav = averagefc(tdnav12,10); end;
If TDN = 13 then begin Runline = TDNAv13; runlineav = averagefc(tdnav13,10); end;
If TDN = 14 then begin Runline = TDNAv14; runlineav = averagefc(tdnav14,10); end;
If TDN = 15 then begin Runline = TDNAv15; runlineav = averagefc(tdnav15,10); end;
If TDN = 16 then begin Runline = TDNAv16; runlineav = averagefc(tdnav16,10); end;
If TDN = 17 then begin Runline = TDNAv17; runlineav = averagefc(tdnav17,10); end;
If TDN = 18 then begin Runline = TDNAv18; runlineav = averagefc(tdnav18,10); end;
If TDN = 19 then begin Runline = TDNAv19; runlineav = averagefc(tdnav19,10); end;
If TDN = 20 then begin Runline = TDNAv20; runlineav = averagefc(tdnav20,10); end;
If TDN = 21 then begin Runline = TDNAv21; runlineav = averagefc(tdnav21,10); end;
If TDN = 22 then begin Runline = TDNAv22; runlineav = averagefc(tdnav22,10); end;
If TDN = 23 then begin Runline = TDNAv23; runlineav = averagefc(tdnav23,10); end;
If TDN = 24 then begin Runline = TDNAv24; runlineav = averagefc(tdnav24,10); end;
If TDN = 25 then begin Runline = TDNAv25; runlineav = averagefc(tdnav25,10); end;
If TDN = 26 then begin Runline = TDNAv26; runlineav = averagefc(tdnav26,10); end;
If TDN = 27 then begin Runline = TDNAv27; runlineav = averagefc(tdnav27,10); end;
If TDN = 28 then begin Runline = TDNAv28; runlineav = averagefc(tdnav28,10); end;
If TDN = 29 then begin Runline = TDNAv29; runlineav = averagefc(tdnav29,10); end;
If TDN = 30 then begin Runline = TDNAv30; runlineav = averagefc(tdnav30,10); end;
If TDN = 31 then begin Runline = TDNAv31; runlineav = averagefc(tdnav31,10); end;
If TDN = 32 then begin Runline = TDNAv32; runlineav = averagefc(tdnav32,10); end;
If TDN = 33 then begin Runline = TDNAv33; runlineav = averagefc(tdnav33,10); end;
If TDN = 34 then begin Runline = TDNAv34; runlineav = averagefc(tdnav34,10); end;
If TDN = 35 then begin Runline = TDNAv35; runlineav = averagefc(tdnav35,10); end;
If TDN = 36 then begin Runline = TDNAv36; runlineav = averagefc(tdnav36,10); end;
If TDN = 37 then begin Runline = TDNAv37; runlineav = averagefc(tdnav37,10); end;
If TDN = 38 then begin Runline = TDNAv38; runlineav = averagefc(tdnav38,10); end;
If TDN = 39 then begin Runline = TDNAv39; runlineav = averagefc(tdnav39,10); end;
If TDN = 40 then begin Runline = TDNAv40; runlineav = averagefc(tdnav40,10); end;
If TDN = 41 then begin Runline = TDNAv41; runlineav = averagefc(tdnav41,10); end;
If TDN = 42 then begin Runline = TDNAv42; runlineav = averagefc(tdnav42,10); end;
If TDN = 43 then begin Runline = TDNAv43; runlineav = averagefc(tdnav43,10); end;
If TDN = 44 then begin Runline = TDNAv44; runlineav = averagefc(tdnav44,10); end;
If TDN = 45 then begin Runline = TDNAv45; runlineav = averagefc(tdnav45,10); end;
If TDN = 46 then begin Runline = TDNAv46; runlineav = averagefc(tdnav46,10); end;
If TDN = 47 then begin Runline = TDNAv47; runlineav = averagefc(tdnav47,10); end;
If TDN = 48 then begin Runline = TDNAv48; runlineav = averagefc(tdnav48,10); end;
If TDN = 49 then begin Runline = TDNAv49; runlineav = averagefc(tdnav49,10); end;
If TDN = 50 then begin Runline = TDNAv50; runlineav = averagefc(tdnav50,10); end;
If TDN = 51 then begin Runline = TDNAv51; runlineav = averagefc(tdnav51,10); end;
If TDN = 52 then begin Runline = TDNAv52; runlineav = averagefc(tdnav52,10); end;
If TDN = 53 then begin Runline = TDNAv53; runlineav = averagefc(tdnav53,10); end;
If TDN = 54 then begin Runline = TDNAv54; runlineav = averagefc(tdnav54,10); end;

End; {current bar}

VSeasRun2 = runline;
 
Suggest other entries I might like
Details: Weekly Universal Seasonality Indicator V1.


November 22nd, 2009
Size: 18.38 KB
Downloaded: 652 times

Keywords: tradestation
Scalper 4 *
Just a tradestation version of the Ninja Scalper already available.

This is an indicator that looks for higher highs and lower lows. Inspired by John Carter's TTMScalper. Found on the NT forum. It's plotting price action based on higher highs, and lower lows.

References

https://www.tradethemarkets.com/products/item7.cfm

If, used on it's own, it will give a lot of false signals, therefore it is recommended to be used in conjunction with other stuff that fits your trading stile and that's confirming your set-up.
 
Suggest other entries I might like
Details: Scalper


November 14th, 2009
Size: 2.55 KB
Downloaded: 1568 times

Keywords: tradestation
Zero Lag MA 2 *
It looks like this is zero lag MA. Could somebody port to NT?
Sergei

from sam028: why ? It already exists.
 
Suggest other entries I might like
Details: Zero Lag MA


June 15th, 2009
Size: 11.67 KB
Downloaded: 456 times

Keywords: tradestation
 


 
Category
 



Copyright © 2021 by futures io, s.a., Av Ricardo J. Alfaro, Century Tower, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada), info@futures.io
All information is for educational use only and is not investment advice.
There is a substantial risk of loss in trading commodity futures, stocks, options and foreign exchange products. Past performance is not indicative of future results.