This is a sample template for a fully automated strategy which does the following:
1. Only enters between 10:15 AM and 3:15 PM (EST) (allows for second time frame as well)
2. Shuts down if PnL is more than $1,000 or less than -$300
3. Enters limit orders for long and short based on signal
4. Covers three time frames but will only have one active position open at a time
5. Cancels entry order if market moves four ticks away from limit order without filling
6. Sets an initial stop at 12 ticks, then changes to breakeven at +4 ticks and trails, tick by tick, from there
7. Scales out of half position at +4 ticks (1st profit target) and covers second half position at +8 ticks (2nd profit target)
UPDATE:
v.1.1 - 2/23/10
1. Fixed CancelOrder() code.
2. Added arrows and chart name plots (since plots will only show on main chart, this lets you know which time frame just took the trade).
February 9th, 2010
Size: 4.71 KB
Downloaded: 1614 times
328
dsraider
This is same as "MPValues" but works in Ninja 7. I don't know if it works in 6.5.
Wavey gave me the information that allowed me to update for v7.
The values it returns will change if you use it on different time frames. I usually use it on a 30m chart because that will give the same numbers that most people look at. I will transfer the lines to all my charts so that I can trade off these levels if I have confirmation from other indicators.
I circled several of the profitable trades that could have been taken. Of course they don't all work out!
You have to set the start time hour (session begin), start time minute (session begin) and session length.
This is a modified version of an existing indicator for which I've been unable to uncover the original programmer.
As best I can interpret the code, it paints UpBars/DownBars based on whether the current Median Price is greater than or less than the Median Price of the last six bars.
It also uses two additional colors to mark where the Up/Down trend is fading, which is based on comparing the LinRegSlope of the last 3 bars rising/falling.
The Neutral Bar is colored when the current bar Median Price is equal to the Median Price of the last six bars.
My modification only added the "Hollow Candle" effect to Up closing bars. I did not change any of the Trend decision making program logic.
Utilizes a number of indicators to mark turning points, pullbacks, pivots, and continuation entries.
Inputs:
BBPeriod - Bolinger Band Period Value (20)
BufferTicks - + Value above or - Value below bands to be considered a pierce (-0.3)
CCI Period - CCI Period Value (10)
NumStdDev - Bolinger Standard Deviations (1.9)
PeriodD - Stochastic Period D - Slower Line (5)
PeriodK - Stocastic Period K - Faster Line (3)
SMAPeriod - Simple Moving Average Period (50)
Smooth - Stochastic Smooting Value (2)
StochLong - Value of Low Extreme that has to be met before going long (20)
StochShort - Value of High Extreme that has to be met before going short (80)
UncertaintyBarNum - Number of bars that signal criteria have to be fully met (3)
UseBBSMALoc - Requires the bands to be above or below the SMA in the direction of the trade (False)
StoTType - Slope uses direction of Stochastic PeriodD line, PriceRelation uses the actual values of the Stochastic PeriodD line
TType - Slope uses direction of the SMA, PriceRelation requires price to be above or below the sma in the direction of the trade
UseRule1 - Checks the SMA/Price parameters are met
UseRule2 - Checks the Bolinger Band Pierce parameters are met
UseRule3 - Checks the BBSMALoc value parameters are met
UseRule4 - Checks the Stochastic parameters are met
UseRule5 - Checks for CCI coming off of extremes
UseRule6 - Checks for SMA2 parameters are met
* Bear Bar w/ Bull HA ; Low of HA covering Low of Bar
* Bull Bar w/ Bear HA ; High of HA covering High of Bar
This was inspired as a warning indicator of potential reversal from a methodology called RandyCandles that was popular many years ago. There is a long thread at another forum. Just Google RandyCandles - Information
Identifies double tops and bottoms with audio alerts.
Inputs.
NumBarsMax -- The maximum number of bars acceptable between a double top / bottom.
NumPlotsBarsMax - The maximum number of bars acceptable to plot once a double top / bottom is found
NumTicksMax - The maximum number of ticks acceptable to correlate a double top / bottom.
PatternType - Future expansion. leave at default for now.
SoundAlertDown - The audio alert played if a bottom is broken
SoundAlertUp - The audio alert played if a top is broken.
Strength - The swing strength to find a single top / bottom
UseAudioAlert - Audio alerts on / off?
UseChartMarket - Chart markers on / off?
This indicator draws user defined zones. The lower the opacity value, the more see thru the zone.
General Inputs
* AutoScale --> NinjaTrade autoscale feature as applied to all indicators.
* FontColor --> The color of the font which displays the region upper / lower values
* FontSize --> The size of the font which displays the region upper / lower values
* SpaceCount --> The amount of spaces between the end of the zone and the price text
Specific Inputs (ConstZone 1 - 9, A - E)
* CZ_Upper_zonenumber--> The upper bound of the region
* CZ_Lower_zonenumber --> The lower bound of the region
* CZ_Opacity_zonenumber --> The opacity of the region
* CZ_ShadeColor_zonenumber --> The color of the region
NinjaTrader 6.5: Not Sure - ZTrade101 - No errors in Output, but nothing happens
NinjaTrader 7.0: Some type of conflict on my system:Unknown- ZTrade101
Can someone else try it and report?
November 6th, 2013 03:09 PM cjab thanks, i think it's a nice addition to the "constant lines indi", unfortunately, i'm getting an error, probably due to
October 7th, 2015 08:08 PM AMcCullough Thank you! I've been using it for a few days and its really good! Would be nice for an alert option to ring going into
and out of oversold/overbought! Thanks again!
June 17th, 2014 10:14 AM spitrader1 good job
December 10th, 2011 11:30 AM rmael
October 4th, 2011 07:45 AM Rudy52 Great stochastics!
April 12th, 2011 01:54 AM beatniktrader Thanks, looks great
October 21st, 2010 07:52 AM Ryanb Looks nice, but somehow it imports in the latest NT 7 but i cannot turn it on at strategy`s as i cannot find the strateg
y.
is there a tip/trick?
August 26th, 2010 02:40 PM Jaap8242 Thanks
May 2nd, 2010 10:29 AM takhtar Looks very NICE!
Where do I download 'MultiColorSMA' Indicator?? Your guideance will be greatly appreciated.
January 17th, 2011 03:35 PM traderhas thanks to all the great traders at mikes who give so much.
February 6th, 2010 02:03 PM wavey MPValues are always handy ref - works for 7 if you just move the TickSize part from Initialize to first OnBarUpdate bar.
October 12th, 2010 10:35 PM ghman101 Thanks a million! Question, would it be hard to add the Initial Balance Period also? Something I use and would sure e
njoy. Thanks again, gh
April 5th, 2010 01:39 PM wavey Thanks for the update