taufic
Legendary Member

- Messages
- 14,651
Paid Membership
- Joined
- Feb 6, 2008
- Messages
- 14,651
- Reaction score
- 697
- Points
- 161
salam ..
bro aiman, sy ada indi script kat bwh ni yg keluarkan signal untuk OP.
boleh tak bagi "auto" kan dia.. maksud, masuk trade mcm ea. automatik open trade ikut signal long atau short dan automatik closed trade tersebut bila opposite signal utk trade tersebut keluar. tanpa SL, TP atau TS. cuma codingkan lot size saja. tq
kemudian kita sama sama share dan test. sy guna manual, hasilnya agak baik cuma tak larat nak tgu depan pc!
//+------------------------------------------------------------------+
//| xyz.mq4 |
//| Copyright ©2008, [email protected] |
//+------------------------------------------------------------------+
#property copyright "Copyright © 2009, Fx Boom"
#property link "http://www.Fxboom.com/"
#property indicator_chart_window
#property indicator_buffers 2
#property indicator_color1 Red
#property indicator_color2 Aqua
extern int SignalGap = 10;
int dist=24;
double b1[];
double b2[];
int init() {
SetIndexStyle(0,DRAW_ARROW,STYLE_SOLID,1);
SetIndexStyle(1,DRAW_ARROW,STYLE_SOLID,1);
SetIndexArrow(1,233);
SetIndexArrow(0,234);
SetIndexBuffer(0,b1);
SetIndexBuffer(1,b2);
return(0);
}
int start() {
int counted_bars=IndicatorCounted();
int k,i,j,limit,hhb,llb;
if (counted_bars<0) return(-1);
if (counted_bars>0) counted_bars--;
limit=Bars-1;
if(counted_bars>=1) limit=Bars-counted_bars-1;
if (limit<0) limit=0;
for (i=limit;i>=0;i--) {
hhb = Highest(NULL,0,MODE_HIGH,dist,i-dist/2);
llb = Lowest(NULL,0,MODE_LOW,dist,i-dist/2);
if (i==hhb)
b1=High[hhb]+SignalGap*Point;
if (i==llb)
b2=Low[llb]-SignalGap*Point;
}
return(0);
}
macam best nie
ada repaint tak?