EA semiauto TP:SL 1:1 (script dibantu oleh bro kuruh) ( EA dibantu oleh Ashlynne)

Live Forex Chart

Currency
Rates
EUR / USD
1.18517
USD / JPY
104.639
GBP / USD
1.33107
USD / CHF
0.91272
USD / CAD
1.30783
EUR / JPY
124.015
AUD / USD
0.73285

CG Sponsors




haudli

CG Top Poster Club
Platinum Member
Joined
Jul 15, 2009
Messages
47,313
Reaction score
442
Points
136
Solved by Ashlynne and Kuruh
terima kasih kerana membantu




Assalamualaikum,


Based pada tajuk , aku harap ada la rakan2 yg boleh share atau suggest EA yg mungkin ada utk aku guna kan dalam trading

EA nye berstatus semi auto dimana bile aku bukak order, ea tu akan automatik calculate price antara aku bukak order tu dengan price pada hi atau low candle sebelumnye utk jadikan nilai TP

dan juga EA ni akan automatik set sl pada hujung price candle sebelumnya..

\

based pada gambar, bile candle biru close je aku akan bukak post sell, ea semi auto yg sedia on tu, \

-akan calculate price dari garis biru hingga garis putih nilainya
-akan set sl kat garis putih
-akan set tp dengan nilai yg sama dari jarak garis biru dan putih


ea ni bila kite bukak post manual dan setelah on ea, dia akan set sl di low atau high candle sebelumnya dan tp adalah berkadar 1:1 dengan SL


takpe, ni direct download link EA..senang sikit terus boleh compile & guna.. :)

Ashlynne

Code:
[URL="http://www.sendspace.com/file/xzyduv"]http://www.sendspace.com/file/xzyduv[/URL]



 
Last edited:
Sponsored Post

haudli

CG Top Poster Club
Platinum Member
Joined
Jul 15, 2009
Messages
47,313
Reaction score
442
Points
136
pakai script je bro
tapi script kene set sl dan tp siap2,,

memandangkan trade di 5 minit,, kalau ade ea semi auto seperti yg dikehendaki, amatlah bagus
 

kuruh

Fun Poster
Joined
Jun 26, 2010
Messages
403
Reaction score
24
Points
25
tapi script kene set sl dan tp siap2,,

memandangkan trade di 5 minit,, kalau ade ea semi auto seperti yg dikehendaki, amatlah bagus
nak order actach je script buy/sell di chart

//+------------------------------------------------------------------+
//| buy script.mq4 |
//| Copyright 2013, MetaQuotes Software Corp. |
//| http://www.metaquotes.net |
//+------------------------------------------------------------------+
#property copyright "Copyright 2013, MetaQuotes Software Corp."
#property link "http://www.metaquotes.net"
extern double Lots=0.01;
//+------------------------------------------------------------------+
//| script program start function |
//+------------------------------------------------------------------+
int start()
{
//----
OrderSend(Symbol(),OP_BUY,Lots,Ask,3,iLow(NULL,0,1) ,iHigh(NULL,0,1),"Buy",1234,0,Green );
//----
return(0);
**
//+------------------------------------------------------------------+


//+------------------------------------------------------------------+
//| sell script.mq4 |
//| Copyright 2013, MetaQuotes Software Corp. |
//| http://www.metaquotes.net |
//+------------------------------------------------------------------+
#property copyright "Copyright 2013, MetaQuotes Software Corp."
#property link "http://www.metaquotes.net"
extern double Lots=0.01;
//+------------------------------------------------------------------+
//| script program start function |
//+------------------------------------------------------------------+
int start()
{
//----
OrderSend(Symbol(),OP_SELL,Lots,Bid,3,iHigh(NULL,0,1),iLow(NULL,0,1) ,"Sell",1234,0,Red);
//----
return(0);
**
//+------------------------------------------------------------------+
 
Last edited:

haudli

CG Top Poster Club
Platinum Member
Joined
Jul 15, 2009
Messages
47,313
Reaction score
442
Points
136
nak order actach je script buy/sell di chart

//+------------------------------------------------------------------+
//| buy script.mq4 |
//| Copyright 2013, MetaQuotes Software Corp. |
//| http://www.metaquotes.net |
//+------------------------------------------------------------------+
#property copyright "Copyright 2013, MetaQuotes Software Corp."
#property link "http://www.metaquotes.net"
extern double Lots=0.01;
//+------------------------------------------------------------------+
//| script program start function |
//+------------------------------------------------------------------+
int start()
{
//----
OrderSend(Symbol(),OP_BUY,Lots,Ask,3,iLow(NULL,0,1) ,iHigh(NULL,0,1),"Buy",1234,0,Green );
//----
return(0);
//**
//+------------------------------------------------------------------+


//+------------------------------------------------------------------+
//| sell script.mq4 |
//| Copyright 2013, MetaQuotes Software Corp. |
//| http://www.metaquotes.net |
//+------------------------------------------------------------------+
#property copyright "Copyright 2013, MetaQuotes Software Corp."
#property link "http://www.metaquotes.net"
extern double Lots=0.01;
//+------------------------------------------------------------------+
//| script program start function |
//+------------------------------------------------------------------+
int start()
{
//----
OrderSend(Symbol(),OP_SELL,Lots,Bid,3,iHigh(NULL,0,1),iLow(NULL,0,1) ,"Sell",1234,0,Red);
//----
return(0);
// **
//+------------------------------------------------------------------+
terbaik ni, tthanks bro,, maknanye mmg x payah nak ejas2 tp dan sl manual kan>?
 

Ichikinhyo

Freshie
Joined
Mar 28, 2013
Messages
28
Reaction score
0
Points
3
Salam Bro Boleh convert Script in Jadi EA tak???

//+------------------------------------------------------------------+
//| Figurelli Pivot.mq4 |
//| Rogerio Figurelli |
//| [email protected] |
//+------------------------------------------------------------------+
//| QuantaFinance |
//| http://www.quantafinance.com |
//+------------------------------------------------------------------+
//| Figurelli Pivot Indicator |
//| calculates pivot points using Bulls/Bears influence |
//+------------------------------------------------------------------+
#property copyright "QuantaFinance"
#property link "http://www.quantafinance.com"

// Version 2009-09-02

#property indicator_chart_window

#property indicator_buffers 7

#property indicator_color1 Green
#property indicator_color2 Blue
#property indicator_color3 Red
#property indicator_color4 Blue
#property indicator_color5 Red
#property indicator_color6 Blue
#property indicator_color7 Red

//---- input parameters

//---- buffers
double P_buffer[];
double S1_buffer[];
double R1_buffer[];
double S2_buffer[];
double R2_buffer[];
double S3_buffer[];
double R3_buffer[];

double P,S1,R1,S2,R2,S3,R3;
double periodHigh,periodLow;

//+------------------------------------------------------------------+
//| Custor indicator deinitialization function |
//+------------------------------------------------------------------+
int deinit() {
ObjectDelete("Pivot");
ObjectDelete("Sup1");
ObjectDelete("Res1");
ObjectDelete("Sup2");
ObjectDelete("Res2");
ObjectDelete("Sup3");
ObjectDelete("Res3");
return(0);
**
//+------------------------------------------------------------------+
//| Custom indicator initialization function |
//+------------------------------------------------------------------+
int init() {
SetIndexStyle(0,DRAW_LINE);
SetIndexStyle(1,DRAW_LINE);
SetIndexStyle(2,DRAW_LINE);
SetIndexStyle(3,DRAW_LINE);
SetIndexStyle(4,DRAW_LINE);
SetIndexStyle(5,DRAW_LINE);
SetIndexStyle(6,DRAW_LINE);
SetIndexBuffer(0,P_buffer);
SetIndexBuffer(1,S1_buffer);
SetIndexBuffer(2,R1_buffer);
SetIndexBuffer(3,S2_buffer);
SetIndexBuffer(4,R2_buffer);
SetIndexBuffer(5,S3_buffer);
SetIndexBuffer(6,R3_buffer);
IndicatorShortName("Figurelli Pivot");
SetIndexLabel(0,"Figurelli Pivot");
SetIndexDrawBegin(0,1);
return(0);
**
//+------------------------------------------------------------------+
//| Custom indicator iteration function |
//+------------------------------------------------------------------+
int start() {
int counted_bars=IndicatorCounted();
int limit;

if (counted_bars==0) {
if (Period()>240) return(-1);
ObjectCreate("Pivot",OBJ_TEXT,0,0,0);
ObjectSetText("Pivot"," Figurelli Pivot",10,"Arial",Green);
ObjectCreate("Sup1",OBJ_TEXT,0,0,0);
ObjectSetText("Sup1"," S1",10,"Arial",Blue);
ObjectCreate("Res1",OBJ_TEXT,0,0,0);
ObjectSetText("Res1"," R1",10,"Arial",Red);
ObjectCreate("Sup2",OBJ_TEXT,0,0,0);
ObjectSetText("Sup2"," S2",10,"Arial",Blue);
ObjectCreate("Res2",OBJ_TEXT,0,0,0);
ObjectSetText("Res2"," R2",10,"Arial",Red);
ObjectCreate("Sup3",OBJ_TEXT,0,0,0);
ObjectSetText("Sup3"," S3",10,"Arial",Blue);
ObjectCreate("Res3",OBJ_TEXT,0,0,0);
ObjectSetText("Res3"," R3",10,"Arial",Red);
**
if (counted_bars<0) return(-1);
limit=(Bars-counted_bars)-1;
for (int i=limit;i>=0;i--) {
if (High[i+1]>periodHigh) periodHigh=High[i+1];
if (Low[i+1]<periodLow) periodLow=Low[i+1];
if (TimeDay(Time)!=TimeDay(Time[i+1]) && TimeDayOfWeek(Time)>0) {
if (i>0) {
// ----------------------------------------------------
// Figurelli Pivot
// ----------------------------------------------------
if ((periodHigh-Close[i+1])>(Close[i+1]-periodLow)) {
P=(2*periodHigh+Close[i+1])/3;
R1=(1*P)+(periodHigh-(1*periodLow));
S1=(3*P)-((3*periodHigh)-periodLow);
R2=(2*P)+(periodHigh-(2*periodLow));
S2=(6*P)-((6*periodHigh)-periodLow);
R3=(3*P)+(periodHigh-(3*periodLow));
S3=(9*P)-((9*periodHigh)-periodLow);
**
else if ((periodHigh-Close[i+1])<(Close[i+1]-periodLow)) {
P=(2*periodLow+Close[i+1])/3;
R1=(3*P)+(periodHigh-(3*periodLow));
S1=(1*P)-((1*periodHigh)-periodLow);
R2=(6*P)+(periodHigh-(6*periodLow));
S2=(2*P)-((2*periodHigh)-periodLow);
R3=(9*P)+(periodHigh-(9*periodLow));
S3=(3*P)-((3*periodHigh)-periodLow);
**
else {
P=(periodHigh+periodLow+Close[i+1])/3;
R1=P+(periodHigh-periodLow);
S1=P-(periodHigh-periodLow);
R2=(2*P)+(periodHigh-(2*periodLow));
S2=(2*P)-((2*periodHigh)-periodLow);
R3=(3*P)+(periodHigh-(3*periodLow));
S3=(3*P)-((3*periodHigh)-periodLow);
**
**
// ----------------------------------------------------
ObjectMove("Pivot",0,Time,P);
ObjectMove("Sup1",0,Time,S1);
ObjectMove("Res1",0,Time,R1);
ObjectMove("Sup2",0,Time,S2);
ObjectMove("Res2",0,Time,R2);
ObjectMove("Sup3",0,Time,S3);
ObjectMove("Res3",0,Time,R3);
periodHigh=High;
periodLow=Low;
**
P_buffer=P;
S1_buffer=S1;
R1_buffer=R1;
S2_buffer=S2;
R2_buffer=R2;
S3_buffer=S3;
R3_buffer=R3;
**
return(0);
**
//+------------------------------------------------------------------+



open Buy = Market Above Pivot + Time to Buy
open Sell = Market Below Piviot + Time To Sell
TP
SL
 
Last edited:
Sponsored Post
Top
Log in Register