Forex
Google
New signals service!

Go Back   Forex Trading > Discussion Areas > Metatrader 4


Register in Forex TSD!
Trading Systems Leaders in this forum (automated trading systems) are winning more than 3000 pips in a month (30000$ investing one lot every time).
Click here to register and get more information

Reply
 
LinkBack (1) Thread Tools Display Modes
  1 links from elsewhere to this Post. Click to view. #1 (permalink)  
Old 01-24-2007, 04:02 AM
Junior Member
 
Join Date: Jan 2006
Posts: 5
shippy is on a distinguished road
Point and Figure Charts?

Anyone have a "Point and Figure" charts plugin?

It would require all the bells and whistles..

reversal size customization, box size customization, "high/low, or close"

etc.

Anyone know where to get something like this.. or is anyone willing to code this up?

Point and figure could be amazing for forex.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 01-24-2007, 05:29 PM
Junior Member
 
Join Date: Jan 2006
Posts: 5
shippy is on a distinguished road
bump

bump bump bump bump bump no one has this or wants to code it for everyone?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 01-24-2007, 06:18 PM
Senior Member
 
Join Date: Jan 2006
Posts: 1,084
omelette is on a distinguished road
Quote:
Originally Posted by shippy
bump bump bump bump bump no one has this or wants to code it for everyone?
I'm curious, how long do you suppose it would take to code an indicator that would do all you suggested - 1 hour, 2 hours, 3 hours...? My guess, it would take at least that long. And there you also have your answer - too time consuming! If you really want this coded, there are at least half a dozen coding experts on this forum who will do it for a price. In the meantime, check out the 'marketprofile' indicator.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 01-24-2007, 10:03 PM
apfx's Avatar
Junior Member
 
Join Date: Dec 2005
Posts: 18
apfx is on a distinguished road
Kagi Chart Code

This is the code for AmiBroker but I think it can be easily translated into MQL4:
__________________________________________________ __________
reverse = Param ("reverse %" ,0.1, 0.1, 1,0.1)/100;

// initialize first element

j = 0;
KC[j] = Close[0];
direction=0;
for( i = 1; i < BarCount-1; i++ )
{
// percent reversal requirement
if(direction[j]==0)
{
if( Close[i] <= KC[j]) //continue down
{
KC[j] = Close[i];
}
else
{
if( Close[i] >= KC[j]*(1 + Reverse)) //Change direction to up
{
j++;
direction[j] = 1;

KC[j] = Close[i];
}
}
}
else
{
if( Close[i] >= KC[j]) //Continue up
{
KC[j] = Close[i];
}
else
{
if( Close[i] <= KC[j]*(1 - Reverse)) //Change direction to down
{
j++;
direction[j]=0;
KC[j] = Close[i];
}
}
}
}
delta = BarCount - j-1; //shift the chart to the wright

kagi= Ref(kc,-delta);
direction = Ref(direction,-delta);

Color =39;// IIf(kagi>Ref(kagi,-1), colorGreen, colorRed);

Plot(kagi, "", Color, styleStaircase|1024 );

Last edited by apfx; 01-24-2007 at 10:14 PM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 01-24-2007, 10:12 PM
apfx's Avatar
Junior Member
 
Join Date: Dec 2005
Posts: 18
apfx is on a distinguished road
Point&Figure Code

This is AmBroker Formula language . in MQL4 you can not plot in PF style but you can plot it as bars/line.
_____________________________________________

decimals= LastValue(IIf(StrRight(Name(),3) == "JPY", 100, 10000));
Box = Param("Box", 10, 1, 100, 1) /decimals;


Revers = Param("Reverse", 3, 1, 5);




//--------------------------------------
j = 0;
PFL[0] = Box * ceil(Low[0]/Box) + Box;
PFH[0] = Box * floor(High[0]/Box);
direction = 0;
//----------------------------------------

for( i = 1; i < BarCount; i++ )
{
if(direction[j] == 0)
{
if(Low[i] <= PFL[j] - Box)
{
PFL[j] = Box * ceil(Low[i]/Box);
}
else
{
if(High[i] >= PFL[j] + Revers*Box)
{
j++;
direction[j] = 1;
PFH[j] = Box * floor(High[i]/Box);
PFL[j] = PFL[j - 1] + Box;

}
}
}
else
{
if(High[i] >= PFH[j] + Box)
{
PFH[j] = Box * floor(High[i]/Box);
}
else
{
if( Low[i] <= PFH[j] - Revers * Box )
{
j++;
direction[j] = 0;
PFH[j] = PFH[j - 1] - Box;
PFL[j] = Box * ceil(Low[i]/Box);

}
}
}
}
delta = BarCount - j -1;
direction = Ref(direction, - delta);
Hi = Ref(PFH, -delta) + Box/2;
Lo = Ref(PFL, -delta)- Box/2;
Cl = IIf(direction == 1, Hi, Lo);
Op = IIf(direction == 1, Cl - Box, Cl + Box);



PlotOHLC(Op, Hi, Lo, Cl,"", ParamColor("ChartColor",colorLightGrey), stylePointAndFigure|styleNoLabel);
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 01-24-2007, 10:19 PM
apfx's Avatar
Junior Member
 
Join Date: Dec 2005
Posts: 18
apfx is on a distinguished road
Three Line Break

This is the code I wrote for TLB in AFL .
__________________________________________________ ___________

break = Param("Break", 3, 1, 5, 1);

tc[0]= L[0];
to[0]=H[0];
Line[0]=H[0];

j=0;
direction= 0;
down[0]=0;
up[0]=0;
for (i=1; i<BarCount; i++)
{

if (direction ==0)
{

if( C[i] <tc[j] )
{
j++;
down[j] = down[j-1]+1;
up[j]=0;
tc[j] =C[i];
to[j]=tc[j-1];
if(down[j]<break)
Line[j] =to[j-1];
else
Line[j] = to[j-break+1] ;

}
else
{

if(C[i]>Line[j])
{
j++;
down[j]=0;
up[j] =up[j-1]+1;
direction =1;
tc[j] =C[i];
to[j]=to[j-1];
if(break>1)
Line[j] = tc[j-1];
else
Line[j] =to[j];


}
}
}
else
{

if( C[i] >tc[j] )
{
j++;
down[j]=0;
up[j] =up[j-1]+1;
tc[j] =C[i];
to[j]=tc[j-1];
if(up[j]<break) Line[j] = to[j-1];
else Line[j] = to[j-break+1];


}
else
{
if(C[i]<Line[j] )
{
j++;
up[j]=0;
down[j] = down[j-1]+1;
direction =0;
tc[j] =C[i];
to[j]=to[j-1];
if(break>1) Line[j] = tc[j-1];
else Line[j] =to[j];


}
}

}


}

delta = BarCount-1 - j;
Cl= Ref(tc,-delta);
Op =Ref(tO,-delta);

PlotOHLC(Op,Cl,Op,Cl,"",colorBlack, styleCandle);
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 01-25-2007, 02:30 AM
Member
 
Join Date: Nov 2005
Posts: 49
4xCoder is on a distinguished road
This looks like PnF, but thepage is in russian.
http://codebase.mql4.com/ru/679

Here's Renko http://codebase.mql4.com/ru/681

Here's Kagi http://codebase.mql4.com/ru/680
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 04-03-2008, 02:12 PM
Member
 
Join Date: Jan 2006
Posts: 30
DooMGuarD is on a distinguished road
Quote:
Originally Posted by apfx View Post
in MQL4 you can not plot in PF style but you can plot it as bars/line.
correct, but you can simulate X and O with trend and ellipse objects
__________________
Charles Adriano
---------------------------
sorry, sorry, sorry for my English...
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9 (permalink)  
Old 04-08-2008, 01:37 PM
boursicoton's Avatar
Junior Member
 
Join Date: Jul 2007
Location: FRANCE
Posts: 9
boursicoton is on a distinguished road
Smile points figures

isn't perfect...
Attached Files
File Type: ex4 PointsFigures.ex4 (6.0 KB, 124 views)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump

LinkBacks (?)
LinkBack to this Thread: http://www.forex-tsd.com/metatrader-4/5649-point-figure-charts.html
Posted By For Type Date
¡ÚForex¡ÛMetaTrader Part ­¸¡ÚCFD,&Futures¡Û - MetaTrader¤Þ¤È¤áWiki This thread Refback 12-08-2007 06:22 AM

Similar Threads
Thread Thread Starter Forum Replies Last Post
Point and Figure Charting for MT4 omrangassan Indicators - Metatrader 4 26 08-26-2008 03:54 PM
Point & Figure Alerts Tickwatcher Indicators - Metatrader 4 0 05-23-2007 12:10 PM
Point & Figure charts Marbo Indicators - Metatrader 4 1 02-14-2007 11:06 AM
Point and Figure charts hua Metatrader 4 2 04-03-2006 04:51 PM


All times are GMT. The time now is 02:51 AM.



Search Engine Friendly URLs by vBSEO 3.2.0 ©2008, Crawlability, Inc.