Christmas EA

 

Hi All,

Traders need rest sometimes.

This EA is written only to draw a christmas tree on the chart.

At first, ,I foolishly tried to draw a turtle for Turtles' Breakout System.

But It's December now. So I decided to draw a christmas tree.

Maybe someone can improve (draw) Santa Claus or a reindeer or a snowman etc...

Have fun.

Latest 2009 version is available in post#16.

Old 2008 versions are available in post#14

Files:
 

Aww thats kinda sweet

Merry Christmas

 

I revised some codes so that you can manually set prices for the top and bottom of the tree.

It makes easy to change tree height taller or shorter and place it at the corner of the chart (not to obstruct your trade) .

I also added codes to draw it automatically at the center of the chart.

Replace extern variables to the following.

extern string PERIODExp = "<<>>";

extern bool AutoHeight = true;

extern int PERIOD = 100;

extern string CenterExp = "<<>>";

extern bool DrawTreeCenter = true;

extern string ManualHeightExp = "<<>>";

extern double TreeTop_Price = 1.3;

extern double TreeBottom_Price = 1.25;

extern string BarShiftExp = "<<>>";

extern int BarShift = 100;

[/PHP]

And replace the codes where EA defines Top and Bottom of the tree to the following.

[PHP]

double TreeTop = TreeTop_Price;

double TreeBottom = TreeBottom_Price;

if(AutoHeight)

{

TreeTop = Low[ PERIOD ];

TreeBottom = Close[0];

if(TreeTop < TreeBottom)

{

TreeTop = Close[0];

TreeBottom = High[ PERIOD ];

}

}

int Base = BarShift;

if(DrawTreeCenter) Base = WindowBarsPerChart()/2;

How to set tree height manually:

change AutoHeight to "false" and input prices for the top and bottom of the tree.

How to set Barshift (where to draw a tree) manually:

change DrawTreeCenter to "false" and input BarShift (shift from current bar).

 
latimeria:
Hi All,

Traders need rest sometimes.

This EA is written only to draw a christmas tree on the chart.

At first, ,I foolishly tried to draw a turtle for Turtles' Breakout System.

But It's December now. So I decided to draw a christmas tree.

Maybe someone can improve (draw) Santa Claus or a reindeer or a snowman etc...

Have fun.

Hi latimeria..

Very kind...

I'll be rich with this tree..

Thank u and merry Christmas to u to

 

Hi hellkas,

I'm glad you like it.

Let's be rich and happy.

 

Can you do this tree as a transparent tree?

 

Hi Bongo,

If you mean a kind of "layerd" image like using Photoshop, it's possible but will be fairly difficult to show color you want by mixing up limited colors.

And if you layer the same color, it become blackhole (no color is shown)...

 

hi

nice and creative idea guys

===================

Forex Indicators Collection

 

nice

So creative

 

Thanks mate

 
Reason: