AGet XTL Candle - AmiBroker | futures io social day trading
futures io futures trading


Notices

AGet XTL Candle
Updated: Views / Replies:2,171 / 7
Created: by amon Attachments:1

Welcome to futures io.

(If you already have an account, login at the top of the page)

futures io is the largest futures trading community on the planet, with over 100,000 members. At futures io, our goal has always been and always will be to create a friendly, positive, forward-thinking community where members can openly share and discuss everything the world of trading has to offer. The community is one of the friendliest you will find on any subject, with members going out of their way to help others. Some of the primary differences between futures io and other trading sites revolve around the standards of our community. Those standards include a code of conduct for our members, as well as extremely high standards that govern which partners we do business with, and which products or services we recommend to our members.

At futures io, our focus is on quality education. No hype, gimmicks, or secret sauce. The truth is: trading is hard. To succeed, you need to surround yourself with the right support system, educational content, and trading mentors Ė all of which you can find on futures io, utilizing our social trading environment.

With futures io, you can find honest trading reviews on brokers, trading rooms, indicator packages, trading strategies, and much more. Our trading review process is highly moderated to ensure that only genuine users are allowed, so you donít need to worry about fake reviews.

We are fundamentally different than most other trading sites:
  • We are here to help. Just let us know what you need.
  • We work extremely hard to keep things positive in our community.
  • We do not tolerate rude behavior, trolling, or vendors advertising in posts.
  • We firmly believe in and encourage sharing. The holy grail is within you, we can help you find it.
  • We expect our members to participate and become a part of the community. Help yourself by helping others.

You'll need to register in order to view the content of the threads and start contributing to our community.  It's free and simple.

-- Big Mike, Site Administrator

Reply
 
Thread Tools Search this Thread
 

AGet XTL Candle

  #1 (permalink)
Trading Apprentice
Bucharest Romania
 
Futures Experience: Intermediate
Platform: MetaTrader
Favorite Futures: Forex
 
Posts: 6 since Oct 2014
Thanks: 0 given, 18 received

AGet XTL Candle

XTL = eXpert Trend Locator. A beautiful code to identify the current trend.

Attached Files
Register to download File Type: txt AGet XTL Candle.txt (5.4 KB, 104 views)
Reply With Quote
The following user says Thank You to amon for this post:
 
  #2 (permalink)
Elite Member
Olivos, Buenos Aires, _Argentina
 
Futures Experience: Intermediate
Platform: ninjatrader
Favorite Futures: futures
 
Posts: 47 since Nov 2014
Thanks: 14 given, 2 received


amon View Post
XTL = eXpert Trend Locator. A beautiful code to identify the current trend.

thanks ..

There is a version for NinjaTrader?

Reply With Quote
 
  #3 (permalink)
Market Wizard
virginia
 
Futures Experience: Intermediate
Platform: ninja
Favorite Futures: ES
 
cory's Avatar
 
Posts: 5,715 since Jun 2009
Thanks: 741 given, 7,237 received
Forum Reputation: Legendary


looks about the same as some other ninja trend indicators
Download AGet XTL Candle For Amibroker (AFL)

Reply With Quote
 
  #4 (permalink)
Elite Member
Olivos, Buenos Aires, _Argentina
 
Futures Experience: Intermediate
Platform: ninjatrader
Favorite Futures: futures
 
Posts: 47 since Nov 2014
Thanks: 14 given, 2 received


cory View Post
looks about the same as some other ninja trend indicators
Download AGet XTL Candle For Amibroker (AFL)


this version is for AmiBroker ..
just looking for NinjaTrader.

thanks

Reply With Quote
 
  #5 (permalink)
Elite Member
Olivos, Buenos Aires, _Argentina
 
Futures Experience: Intermediate
Platform: ninjatrader
Favorite Futures: futures
 
Posts: 47 since Nov 2014
Thanks: 14 given, 2 received

this is not the formula of XTL.
XTL has originally bars filled or unfilled.
this indicator does not serve as XTL.

thanks

Reply With Quote
 
  #6 (permalink)
Membership Temporarily Revoked
Zurich/Switzerland
 
Futures Experience: Advanced
Platform: -
Favorite Futures: -
 
Posts: 79 since Oct 2014
Thanks: 0 given, 33 received

Do you mean the candles fill?

Try this one

 
Code
_SECTION_BEGIN( "XTL" );
// https://futures.io/amibroker/33770-aget-xtl-candle.html
// mod. by prouser
BKcolor = ParamColor( "Outer panel color ", colorBlack );
SetChartBkColor( BKcolor );
SetChartBkGradientFill( BKcolor, BKcolor, colorBlack, Null, Null );
SetChartOptions( 0, chartShowDates | chartShowArrows | chartLogarithmic | chartWrapTitle );

GraphXSpace = 8;

tgt = 35;
a = CCI( 20 ) < -tgt;
b = CCI( 20 ) > tgt;
state = IIf( a > b, -1, IIf( a == b, 0, 1 ) );
statecolor1 = IIf( state == 0, GetChartBkColor(), 
              IIf( state == 1, colorDarkBlue, 
              IIf( state == -1, colorDarkRed, 0 ) ) );
statecolor2 = IIf( state == 0, GetChartBkColor(), 
              IIf( state == 1, colorBlue, 
              IIf( state == -1, colorRed, 0 ) ) );                         
//
//Plot(state, "", statecolor2, styleHistogram | styleOwnScale | styleNoLabel, Null, Null, 0, -10, 0 );
gps = GetPriceStyle();
SetBarFillColor( IIf( gps == styleCandle, statecolor1, statecolor2 ) );
Plot( C, "Close", statecolor2, styleNoTitle | GetPriceStyle(), Null, Null, xshift = 0, zshift = 0, width = -20 );
_N( Title = StrFormat( "{{NAME}} - {{INTERVAL}} {{DATE}} Open %g, Hi %g, Lo %g, Close %g (%.1f%%) Vol %1.0f {{VALUES}}",
                       O, H, L, C, SelectedValue( ROC( C, 1 ) ), V ) );
_SECTION_END();

_SECTION_BEGIN( "SwingN&&R" );
//Franck LAMOTTE - 01/2010
n1 = Param( "n1", 3, 2, 4, 1 );
n2 = Param( "n2", 4, 3, 7, 1 );

//SWING FORMULA//
function HiLo_HL( no ) {
    res = HHV( H, no );
    sup = LLV( L, no );
    avd = IIf( C > Ref( res, -1 ), 1, IIf( C < Ref( sup, -1 ), -1, 0 ) );
    avn = ValueWhen( avd != 0, avd, 1 );
    tsl = IIf( avn == 1, sup, res );
    return tsl;
}
Plot( HiLo_HL( n1 ), "HiLo_HL", colorYellow, styleStaircase );
Buy = Cross( C, HiLo_HL( n1 ) ) AND H > Ref( H, -1 ) AND L > Ref( L, -1 );
Sell = Cross( HiLo_HL( n1 ), C );
shape = Buy * shapeUpArrow + Sell * shapeDownArrow;

if( ParamToggle( "Shape System 1", "NO|YES", 0 ) ) {
    PlotShapes( shape, IIf( Buy, colorBrightGreen, colorRed ), 0, IIf( Buy, Low, High ) );
}
_SECTION_END();

_SECTION_BEGIN( "end 6&4" );
Type = ParamList( "Type", "Simple,Exponential,Double Exponential,Tripple Exponential,Wilders,Weighted" );
Periods = Param( "Periods", 6, 2, 300 );
Displacement = Param( "Displacement", 4, -50, 50 );

switch( type ) {
	case "Exponential":
		m1 = EMA( H, Periods );
		m2 = EMA( L, Periods );
		break;
	case "Double Exponential":
		m1 = DEMA( H, Periods );
		m2 = DEMA( L, Periods );
		break;
	case "Tripple Exponential":
		m1 = TEMA( H, Periods );
		m2 = TEMA( L, Periods );
		break;
	case "Wilders":
		m1 = Wilders( H, Periods );
		m2 = Wilders( L, Periods );
		break;
	case "Weighted":
		m1 = WMA( H, Periods );
		m2 = WMA( L, Periods );
		break;
	case "Simple":
	default:
		m1 = MA( H, Periods );
		m2 = MA( L, Periods );
		break;
}

Plot( m1, _DEFAULT_NAME(), ParamColor( "ColorTop", colorGreen ), ParamStyle( "Style" ), 0, 0, Displacement );
Plot( m2, _DEFAULT_NAME(), ParamColor( "ColorBottom", colorRed ), ParamStyle( "Style" ), 0, 0, Displacement );
PlotOHLC( m1, m1, m2, m2, "DMACloud", ParamColor( "ColorChannel", colorLightGrey ), styleCloud, Null, Null, Displacement, -10 );
// Uncomment line below to plot price if Indicator is not overlaid a Price chart
//Plot( C, "Close", colorBlack, styleCandle );
_SECTION_END();

_SECTION_BEGIN( "Pivots" );
Version( 5.90 );

ppl = ParamToggle( "Plot Pivot Levels", "OFF|ON", 1 );

/* This code calculates the previous days high, low and close */
Hi = TimeFrameGetPrice( "H", inDaily, -1 );
Lo = TimeFrameGetPrice( "L", inDaily, -1 );
C1 = TimeFrameGetPrice( "C", inDaily, -1 );

/* This code calculates Daily Piovts */
rg = ( Hi - Lo );
bp = ( Hi + Lo + C1 ) / 3;
r1 = ( bp * 2 ) - Lo;
s1 = ( bp * 2 ) - Hi;
r2 = bp + r1 - s1;
s2 = bp - r1 + s1;
r3 = bp + r2 - s1;
s3 = bp - r2 + s1;
r4 = bp + r2 - s2;
s4 = bp - r2 + s2;

if( ppl ) {	
	Plot( bp, "", colorBlue, styleLine | styleLine | styleNoRescale );
	Plot( s1, "", colorRed, styleLine | styleNoRescale );
	//Plot(s2,"",colorRed,styleLine|styleNoRescale);
	//Plot(s3,"",colorRed,styleLine|styleNoRescale);
	//Plot(s4,"",colorRed,styleLine|styleNoRescale);
	Plot( r1, "", colorGreen, styleLine | styleNoRescale );
	//Plot(r2,"",colorGreen,styleLine|styleNoRescale);
	//Plot(r3,"",colorGreen,styleLine|styleNoRescale);
	//Plot(r4,"",colorGreen,styleLine|styleNoRescale);
	PlotTextSetFont( StrFormat( "PP: %g", bp ), "Arial", 8, xshift = BarCount + 2, LastValue(bp), colorBlue, colorDefault, yshift = -4 );
	PlotText( StrFormat( "R1: %g", r1 ), xshift, LastValue(r1), colorGreen, colorDefault, yshift );
	PlotText( StrFormat( "S1: %g", s1 ), xshift, LastValue(s1), colorRed, colorDefault, yshift );
	//PlotText(StrFormat( R2: %g", bp ), xshift, LastValue(r2), colorGreen, colorDefault, yshift );
	//PlotText(StrFormat( S2: %g", bp ), xshift, LastValue(s2), colorRed, colorDefault, yshift );
	//PlotText(StrFormat( R3: %g", bp ), xshift, LastValue(r3), colorGreen, colorDefault, yshift );
	//PlotText(StrFormat( S3: %g", bp ), xshift, LastValue(s3), colorRed, colorDefault, yshift );
	////PlotText(StrFormat( R4: %g", bp ), xshift, LastValue(r4), colorGreen, colorDefault, yshift );
	//PlotText(StrFormat( S4: %g", bp ), xshift, LastValue(s4), colorRed, colorDefault, yshift );
}
_SECTION_END();

Reply With Quote
The following user says Thank You to prouser for this post:
 
  #7 (permalink)
Elite Member
Olivos, Buenos Aires, _Argentina
 
Futures Experience: Intermediate
Platform: ninjatrader
Favorite Futures: futures
 
Posts: 47 since Nov 2014
Thanks: 14 given, 2 received


prouser View Post
Do you mean the candles fill?

Try this one

 
Code
_SECTION_BEGIN( "XTL" );
// https://futures.io/amibroker/33770-aget-xtl-candle.html
// mod. by prouser
BKcolor = ParamColor( "Outer panel color ", colorBlack );
SetChartBkColor( BKcolor );
SetChartBkGradientFill( BKcolor, BKcolor, colorBlack, Null, Null );
SetChartOptions( 0, chartShowDates | chartShowArrows | chartLogarithmic | chartWrapTitle );

GraphXSpace = 8;

tgt = 35;
a = CCI( 20 ) < -tgt;
b = CCI( 20 ) > tgt;
state = IIf( a > b, -1, IIf( a == b, 0, 1 ) );
statecolor1 = IIf( state == 0, GetChartBkColor(), 
              IIf( state == 1, colorDarkBlue, 
              IIf( state == -1, colorDarkRed, 0 ) ) );
statecolor2 = IIf( state == 0, GetChartBkColor(), 
              IIf( state == 1, colorBlue, 
              IIf( state == -1, colorRed, 0 ) ) );                         
//
//Plot(state, "", statecolor2, styleHistogram | styleOwnScale | styleNoLabel, Null, Null, 0, -10, 0 );
gps = GetPriceStyle();
SetBarFillColor( IIf( gps == styleCandle, statecolor1, statecolor2 ) );
Plot( C, "Close", statecolor2, styleNoTitle | GetPriceStyle(), Null, Null, xshift = 0, zshift = 0, width = -20 );
_N( Title = StrFormat( "{{NAME}} - {{INTERVAL}} {{DATE}} Open %g, Hi %g, Lo %g, Close %g (%.1f%%) Vol %1.0f {{VALUES}}",
                       O, H, L, C, SelectedValue( ROC( C, 1 ) ), V ) );
_SECTION_END();

_SECTION_BEGIN( "SwingN&&R" );
//Franck LAMOTTE - 01/2010
n1 = Param( "n1", 3, 2, 4, 1 );
n2 = Param( "n2", 4, 3, 7, 1 );

//SWING FORMULA//
function HiLo_HL( no ) {
    res = HHV( H, no );
    sup = LLV( L, no );
    avd = IIf( C > Ref( res, -1 ), 1, IIf( C < Ref( sup, -1 ), -1, 0 ) );
    avn = ValueWhen( avd != 0, avd, 1 );
    tsl = IIf( avn == 1, sup, res );
    return tsl;
}
Plot( HiLo_HL( n1 ), "HiLo_HL", colorYellow, styleStaircase );
Buy = Cross( C, HiLo_HL( n1 ) ) AND H > Ref( H, -1 ) AND L > Ref( L, -1 );
Sell = Cross( HiLo_HL( n1 ), C );
shape = Buy * shapeUpArrow + Sell * shapeDownArrow;

if( ParamToggle( "Shape System 1", "NO|YES", 0 ) ) {
    PlotShapes( shape, IIf( Buy, colorBrightGreen, colorRed ), 0, IIf( Buy, Low, High ) );
}
_SECTION_END();

_SECTION_BEGIN( "end 6&4" );
Type = ParamList( "Type", "Simple,Exponential,Double Exponential,Tripple Exponential,Wilders,Weighted" );
Periods = Param( "Periods", 6, 2, 300 );
Displacement = Param( "Displacement", 4, -50, 50 );

switch( type ) {
	case "Exponential":
		m1 = EMA( H, Periods );
		m2 = EMA( L, Periods );
		break;
	case "Double Exponential":
		m1 = DEMA( H, Periods );
		m2 = DEMA( L, Periods );
		break;
	case "Tripple Exponential":
		m1 = TEMA( H, Periods );
		m2 = TEMA( L, Periods );
		break;
	case "Wilders":
		m1 = Wilders( H, Periods );
		m2 = Wilders( L, Periods );
		break;
	case "Weighted":
		m1 = WMA( H, Periods );
		m2 = WMA( L, Periods );
		break;
	case "Simple":
	default:
		m1 = MA( H, Periods );
		m2 = MA( L, Periods );
		break;
}

Plot( m1, _DEFAULT_NAME(), ParamColor( "ColorTop", colorGreen ), ParamStyle( "Style" ), 0, 0, Displacement );
Plot( m2, _DEFAULT_NAME(), ParamColor( "ColorBottom", colorRed ), ParamStyle( "Style" ), 0, 0, Displacement );
PlotOHLC( m1, m1, m2, m2, "DMACloud", ParamColor( "ColorChannel", colorLightGrey ), styleCloud, Null, Null, Displacement, -10 );
// Uncomment line below to plot price if Indicator is not overlaid a Price chart
//Plot( C, "Close", colorBlack, styleCandle );
_SECTION_END();

_SECTION_BEGIN( "Pivots" );
Version( 5.90 );

ppl = ParamToggle( "Plot Pivot Levels", "OFF|ON", 1 );

/* This code calculates the previous days high, low and close */
Hi = TimeFrameGetPrice( "H", inDaily, -1 );
Lo = TimeFrameGetPrice( "L", inDaily, -1 );
C1 = TimeFrameGetPrice( "C", inDaily, -1 );

/* This code calculates Daily Piovts */
rg = ( Hi - Lo );
bp = ( Hi + Lo + C1 ) / 3;
r1 = ( bp * 2 ) - Lo;
s1 = ( bp * 2 ) - Hi;
r2 = bp + r1 - s1;
s2 = bp - r1 + s1;
r3 = bp + r2 - s1;
s3 = bp - r2 + s1;
r4 = bp + r2 - s2;
s4 = bp - r2 + s2;

if( ppl ) {	
	Plot( bp, "", colorBlue, styleLine | styleLine | styleNoRescale );
	Plot( s1, "", colorRed, styleLine | styleNoRescale );
	//Plot(s2,"",colorRed,styleLine|styleNoRescale);
	//Plot(s3,"",colorRed,styleLine|styleNoRescale);
	//Plot(s4,"",colorRed,styleLine|styleNoRescale);
	Plot( r1, "", colorGreen, styleLine | styleNoRescale );
	//Plot(r2,"",colorGreen,styleLine|styleNoRescale);
	//Plot(r3,"",colorGreen,styleLine|styleNoRescale);
	//Plot(r4,"",colorGreen,styleLine|styleNoRescale);
	PlotTextSetFont( StrFormat( "PP: %g", bp ), "Arial", 8, xshift = BarCount + 2, LastValue(bp), colorBlue, colorDefault, yshift = -4 );
	PlotText( StrFormat( "R1: %g", r1 ), xshift, LastValue(r1), colorGreen, colorDefault, yshift );
	PlotText( StrFormat( "S1: %g", s1 ), xshift, LastValue(s1), colorRed, colorDefault, yshift );
	//PlotText(StrFormat( R2: %g", bp ), xshift, LastValue(r2), colorGreen, colorDefault, yshift );
	//PlotText(StrFormat( S2: %g", bp ), xshift, LastValue(s2), colorRed, colorDefault, yshift );
	//PlotText(StrFormat( R3: %g", bp ), xshift, LastValue(r3), colorGreen, colorDefault, yshift );
	//PlotText(StrFormat( S3: %g", bp ), xshift, LastValue(s3), colorRed, colorDefault, yshift );
	////PlotText(StrFormat( R4: %g", bp ), xshift, LastValue(r4), colorGreen, colorDefault, yshift );
	//PlotText(StrFormat( S4: %g", bp ), xshift, LastValue(s4), colorRed, colorDefault, yshift );
}
_SECTION_END();

Hello, I need to NinjaTrader ..
You've tried it?

thanks

Reply With Quote
 
  #8 (permalink)
Membership Temporarily Revoked
Zurich/Switzerland
 
Futures Experience: Advanced
Platform: -
Favorite Futures: -
 
Posts: 79 since Oct 2014
Thanks: 0 given, 33 received

I don't use NT myself.
And to my knowledge it is AmiBroker section here.
You might try here https://futures.io/ninjatrader/

Reply With Quote

Reply



futures io > > > > AGet XTL Candle




Upcoming Webinars and Events (4:30PM ET unless noted)
 

Fundraiser: Feeding Families in Need (ends Dec 17)

December
 

Battlestations! Show us your trading desks w/GFF Brokers ($750 in Prizes)

January
     

Similar Threads
Thread Thread Starter Forum Replies Last Post
Candle scanners? jeske Trading Reviews and Vendors 1 November 9th, 2013 10:15 PM
Remove candle outlines? keymoo Sierra Chart 3 May 27th, 2012 10:34 AM
Candle times keymoo NinjaTrader 2 March 29th, 2012 06:27 PM
Candle size indicator PedroMAN NinjaTrader 4 August 14th, 2011 06:27 PM
coding to put range of candle beneath each candle anniebee321 NinjaTrader 13 June 18th, 2010 05:20 PM


Tags
afl, amibroker, barcount, cci, code, dow, ema, futures, hilo, indicator, indicators, ninjatrader, ohlc, pivots, swing, trend, tsl, values, valuewhen

All times are GMT -4. The time now is 12:06 AM. (this page content is cached, log in for real-time version)

Copyright © 2018 by futures io, s.a., Av Ricardo J. Alfaro, Century Tower, Panama, +507 833-9432, 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.
no new posts
Page generated 2018-12-13 in 0.12 seconds with 15 queries on phoenix