sum gud afl components code

amitrandive

Well-Known Member
#11
guys anyone know how to extract the chandillier exit system from the turtle system,i want to plot that yellow line (from turtle system) on a plane chart,i tried by direct copying but there is condition for that line it will start from ur buying signal ,but on plane chart there is no buying signal :annoyed: ,so how to get the continous yellow line...:(
Found in Ami database

Code:
/* Chandelier Exit v2 */
/* by Geoff Mulhall */ 
/* Modified 1-Feb-2003 to take advantage of Ami 2.5 Param Functionality */
/* and to allow for Short Trades as well as Long Trades */
/* The Chandelier Exit is a Volatility based exit. */
/* Refer to http://www.traderclub.com/discus/board.html 
/* Bulletin 35 Trailing Stops - The Chandelier Exit for more detail */
/* Set Scaling to Automatic, Set Gridlines as follows Level 0 On, Show dates On,
Middle On */
/* Right Click anywhere in the Chart, Select Parameters to get the Param
Dialogue and move the slides to */
/* see the effect of changing ATRMultiplier ATRRange & HHVRange */ 
 
/* Plot the Chart */
//Title = "Chandelier"; 
GraphXSpace = 2;
/* Candle chart */ 
Plot(Close,"Close",1,1);
//Plot(WMA(Close,30),"Close WMA30",4,1);
/* Chandelier Exit */
/* Param( "ATRMultiplier", default, Min, Max, step ); */
ShortLongSwitch = Param( "Sht(0) Lng(1)",1,0,1,1); // Set to 0 for a Short
Trade, 1 for a Long Trade
HighCloseSwitch = Param( "C(0) H/L(1)",1,0,1,1); // Set to 0 to hang from the
close, 1 for High (Long) or Low (Short)
ATRMultiplier =3.0;// Param( "ATR Mult", 3.0, 1, 4, 0.1);
ATRRange =10; // Param( "ATR Rng", 10, 2, 30, 1);
HHVLLVRange =10;// Param( "HHVLLV Rng", 10, 2, 30, 1);
LongExitHungExHigh = HHV(High - AtrMultiplier * ATR(AtrRange),HHVLLVRange);
LongExitHungExClose = HHV(Close - AtrMultiplier * ATR(AtrRange),HHVLLVRange);
ShortExitHungExLow = LLV(Low + AtrMultiplier * ATR(AtrRange),HHVLLVRange);
ShortExitHungExClose = LLV(Close + AtrMultiplier * ATR(AtrRange),HHVLLVRange);
LongExit = IIf(HighCloseSwitch == 1, LongExitHungExHigh,LongExitHungExClose);
ShortExit = IIf(HighCloseSwitch == 1, ShortExitHungExLow,ShortExitHungExClose);
Exit1 = IIf(ShortLongSwitch == 1, LongExit, ShortExit);
Exit0 = shortExit;
Plot(Exit1,"Chandelier Green",colorBrightGreen,styleLine); 
Plot(Exit0,"Chandelier Red",colorRed,styleLine); 
G0 = Close;
G1 = Exit1;
G2 = Exit0;
Buy = Cross(G0,G1); // OR Cross(G0,G2);
//Cover = Cross(G0,G1); // OR Cross(G0,G2);
Sell = Cross(G2,G0); // OR Cross(G1,G0);
//Short = Sell ; //Cross(G2,G0); // OR Cross(G1,G0);
Short=Sell;
Cover=Buy;
Buy=ExRem(Buy,Sell); Sell=ExRem(Sell,Buy); Short=ExRem(Short,Cover);
Cover=ExRem(Cover,Short);
Equity(1);
B1 = (Buy * Close);
S1 = (Sell * Close);
B2= B1>S1;
S2= S1>B1;
Equity(1);
Buy1 = Buy;
Sell1 = Sell;
//////////////////////////////////////
//Plot(B1, "B1",5,6);
PlotShapes( IIf( Sell , shapeSmallDownTriangle/*+ "shapePositonAbove"*/,
shapeNone ), colorRed );
PlotShapes( IIf( Buy , shapeSmallUpTriangle/*+ "shapePositonAbove"*/, shapeNone
), colorBrightGreen ); 
Plot(10, /* defines the height of the ribbon in percent of pane width */"",IIf(
B2, colorBrightGreen, IIf( S2, colorRed, 0 )), /* choose
color*/styleOwnScale|styleArea|styleNoLabel, -0.5, 100 );
 

pareshR

Well-Known Member
#13
Hello Amit
please find bellow details for Tatasteel-I
Tatasteel-I

Date 05-Sep-2014, Time frame : 1 minute


1, " L Top " appear at chart 9:27 AM , price 511.3
but at chart " L Top " ploted 9.18 AM, Price 513.4

2, " H Bottom " apear at chart at 9.34a, price 514.4,
but at chart "H Bottom" ploted 9.28 am, price 512

3, " H Top " appear at chart 10.05am, price 512.3
but at chart " H Top" ploted 9.50am, price 515.1

thx
 

amsin21

Well-Known Member
#14
Hello Amit
please find bellow details for Tatasteel-I
Tatasteel-I

Date 05-Sep-2014, Time frame : 1 minute


1, " L Top " appear at chart 9:27 AM , price 511.3
but at chart " L Top " ploted 9.18 AM, Price 513.4

2, " H Bottom " apear at chart at 9.34a, price 514.4,
but at chart "H Bottom" ploted 9.28 am, price 512

3, " H Top " appear at chart 10.05am, price 512.3
but at chart " H Top" ploted 9.50am, price 515.1

thx
Images speaks more bro, attach screenshots for better understanding
 

pareshR

Well-Known Member
#15
Hello Amit
please find bellow details for Tatasteel-I
Tatasteel-I

Date 05-Sep-2014, Time frame : 1 minute


1, " L Top " appear at chart 9:27 AM , price 511.3
but at chart " L Top " ploted 9.18 AM, Price 513.4

2, " H Bottom " apear at chart at 9.34a, price 514.4,
but at chart "H Bottom" ploted 9.28 am, price 512

3, " H Top " appear at chart 10.05am, price 512.3
but at chart " H Top" ploted 9.50am, price 515.1

thx
on chart " plotting HH HL LH LL " delay, so not get proper entry n exit,
may b plotting timing problems,


pls help
 

bunti_k23

Well-Known Member
#20
this is bollinger band squeeze very lethal for breakouts......

Code:
/*
    Bollinger bands squeeze.
    By Vladimir Gaitanoff, 2005. support<at>vglib<dot>com
 
    This is a volatility indicator.
    It can be used to determine the periods of extremes of low volatility which usually followed by big moves.
    Indicator does not show direction of the trade, only timing.
    Some other aspects of technical/fundamental analysis should be employed for direction.
 
    There is a signal line with colored dots. Red dots indicate periods of low volatility (sqeeze).
    Green dots indicate periods of high volatility.
    Indicator line crosses above and below signal line. Time trades at historical extremes of low volatility.
 
    It can be used for scans, for instance, to find stepper stocks before big moves.
    The original author of the idea uses it for intraday trading.
 
    For confirmation look for sqeezes in two different time frames.
 
*/
 
Length = 8;
Price = EMA(Close, Length);
 
// Keltner
kLength = Length;
kN = 1.5;
kATR = ATR(kLength);
kUpper = Price + kN * kATR;
kLower = Price - kN * kATR;
 
// Bollinger
bbLength = Length;
bbN = 2;
bbStDevValues = StDev(Close, bbLength);
bbUpper = Price + bbN * bbStDevValues;
bbLower = Price - bbN * bbStDevValues;
 
IsSignal =
    bbUpper <= kUpper AND
    bbLower >= kLower;
 
Graph0 = 1;
Graph0Style = styleDots;
Graph0BarColor = IIf(IsSignal, colorRed, colorGreen);
 
Proportion = (kUpper - kLower) / (bbUpper - bbLower);
Graph1 = Proportion;
 
Title = "Next Move Signal. In squeeze: " + WriteVal(IsSignal, 1) + " Keltner/Bollinger: " + WriteVal(Proportion);
 

Similar threads