| New signals service! | |
|
|||||||
| 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 |
|
![]() |
|
|
LinkBack (1) | Thread Tools | Display Modes |
|
|||
|
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. |
|
|||
|
Quote:
|
|
||||
|
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); |
|
||||
|
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); |
|
|||
|
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 |
|
|||
|
correct, but you can simulate X and O with trend and ellipse objects
__________________
Charles Adriano --------------------------- sorry, sorry, sorry for my English... |
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|
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 |