Ganjaran Bonus Forex Yang Terbesar Tidak Pernah Ditawarkan Sebelum ini ... BONUS TANPA SEBARANG DEPOSIT SEBANYAK $1500 DARI INSTAFOREX !!


Go Back   CariGold Forum > MAKE MONEY DISCUSSION > Forex > Forex Expert Advisors

Forex Expert Advisors This section discuss EAs and their techniques, how-to, and development of the systems.

Recommended Brokers

Forex Chart
Crypto Chart
CG Sponsors



Reply
 
Thread Tools
  #1  
Old 05-05-2019, 11:12 PM
DreamCatcher DreamCatcher is offline
CG Top Poster Club

DreamCatcher's Avatar
 
Trader Rating: (24)
Join Date: Jan 2008
Location: portalkini.com
Posts: 23,209
Thanks (Received): 416
Likes (Received): 381
Blog Entries: 3
Active Level
My Mood:
Default EA Belum Ada Nama - Tuned By Rizal Carigold

Den test buat coding guna etasoft punya software.. tapi try manual add blok martin manjang x jadi..

Sapa leh ejas code ni asal jd martin..

Kalau ok bole guna sama
To view links or images in this forum your post count must be 1 or greater. You currently have 0 posts.


PHP Code:
#property copyright   "https://facebook.com/kurama87"
#property version     "1.0"
#property link        "https://Facebook.com/kurama87"
#property description "Groups: https://
To view links or images in this forum your post count must be 1 or greater. You currently have 0 posts.
style="color: #0000BB">extern double BuyLots23 
0.01;
extern int BuyStoploss23 0;
extern int BuyTakeprofit23 15;
extern double SellLots22 0.01;
extern int SellStoploss22 0;
extern int SellTakeprofit22 15;


// local variables
double PipValue=1;    // this variable is here to support 5-digit brokers
bool Terminated false;
string LF "\n";  // use this in custom or utility blocks where you need line feeds
int NDigits 4;   // used mostly for NormalizeDouble in Flex type blocks
int ObjCount 0;  // count of all objects created on the chart, allows creation of objects with unique names
int current 0;   // current bar index, used by Cross Up, Cross Down and many other blocks
int varylots[101]; // used by Buy Order Varying, Sell Order Varying and similar

datetime BarTime15 0;
datetime BarTime20 0;
int Count16 0;


int init()
{
    
NDigits Digits;
    
    if (
falseObjectsDeleteAll();      // clear the chart
    
    
    
Comment("");    // clear the chart
    
return (0);
**

// Expert start
int start()
{
    if (
Bars 10)
    {
        
Comment("Not enough bars");
        return (
0);
    **
    if (
Terminated == true)
    {
        
Comment("EA Terminated.");
        return (
0);
    **
    
    
OnEveryTick12();
    return (
0);
**

void OnEveryTick12()
{
    
PipValue 1;
    if (
NDigits == || NDigits == 5PipValue 10;
    
    
TechnicalAnalysis17();
    
TechnicalAnalysis18();
    
PrintInfoToChart16();
    
**

void TechnicalAnalysis17()
{
    if (
Close[1] < iMA(NULLPERIOD_CURRENT,50,0,MODE_EMA,PRICE_CLOSE,current))
    {
        
IfOrderDoesNotExist13();
        
    **
**

void IfOrderDoesNotExist13()
{
    
bool exists false;
    for (
int i=OrdersTotal()-1>= 0i--)
    if (
OrderSelect(iSELECT_BY_POSMODE_TRADES))
    {
        if (
OrderType() == OP_BUY && OrderSymbol() == Symbol() && OrderMagicNumber() == 1)
        {
            
exists true;
        **
    **
    else
    {
        Print(
"OrderSelect() error - "ErrorDescription(GetLastError()));
    **
    
    if (
exists == false)
    {
        
IfOrderDoesNotExist14();
        
    **
**

void IfOrderDoesNotExist14()
{
    
bool exists false;
    for (
int i=OrdersTotal()-1>= 0i--)
    if (
OrderSelect(iSELECT_BY_POSMODE_TRADES))
    {
        if (
OrderType() == OP_SELL && OrderSymbol() == Symbol() && OrderMagicNumber() == 1)
        {
            
exists true;
        **
    **
    else
    {
        Print(
"OrderSelect() error - "ErrorDescription(GetLastError()));
    **
    
    if (
exists == false)
    {
        
OncePerBar15();
        
    **
**

void OncePerBar15()
{
    
    if (
BarTime15 Time[0])
    {
        
// we have a new bar opened
        
BarTime15 Time[0]; // keep the new bar open time
        
BuyOrder23();
        
    **
**

void BuyOrder23()
{
    
double SL Ask BuyStoploss23*PipValue*Point;
    if (
BuyStoploss23 == 0SL 0;
    
double TP Ask BuyTakeprofit23*PipValue*Point;
    if (
BuyTakeprofit23 == 0TP 0;
    
int ticket = -1;
    if (
true)
    
ticket OrderSend(Symbol(), OP_BUYBuyLots23Ask400"My Expert"10Blue);
    else
    
ticket OrderSend(Symbol(), OP_BUYBuyLots23Ask4SLTP"My Expert"10Blue);
    if (
ticket > -1)
    {
        if (
true)
        {
            
bool sel OrderSelect(ticketSELECT_BY_TICKET);
            
bool ret OrderModify(OrderTicket(), OrderOpenPrice(), SLTP0Blue);
            if (
ret == false)
            Print(
"OrderModify() error - "ErrorDescription(GetLastError()));
        **
            
    **
    else
    {
        Print(
"OrderSend() error - "ErrorDescription(GetLastError()));
    **
**

void TechnicalAnalysis18()
{
    if (
Open[1] > iMA(NULLPERIOD_CURRENT,50,0,MODE_EMA,PRICE_CLOSE,current))
    {
        
IfOrderDoesNotExist21();
        
    **
**

void IfOrderDoesNotExist21()
{
    
bool exists false;
    for (
int i=OrdersTotal()-1>= 0i--)
    if (
OrderSelect(iSELECT_BY_POSMODE_TRADES))
    {
        if (
OrderType() == OP_SELL && OrderSymbol() == Symbol() && OrderMagicNumber() == 2)
        {
            
exists true;
        **
    **
    else
    {
        Print(
"OrderSelect() error - "ErrorDescription(GetLastError()));
    **
    
    if (
exists == false)
    {
        
IfOrderDoesNotExist19();
        
    **
**

void IfOrderDoesNotExist19()
{
    
bool exists false;
    for (
int i=OrdersTotal()-1>= 0i--)
    if (
OrderSelect(iSELECT_BY_POSMODE_TRADES))
    {
        if (
OrderType() == OP_BUY && OrderSymbol() == Symbol() && OrderMagicNumber() == 2)
        {
            
exists true;
        **
    **
    else
    {
        Print(
"OrderSelect() error - "ErrorDescription(GetLastError()));
    **
    
    if (
exists == false)
    {
        
OncePerBar20();
        
    **
**

void OncePerBar20()
{
    
    if (
BarTime20 Time[0])
    {
        
// we have a new bar opened
        
BarTime20 Time[0]; // keep the new bar open time
        
SellOrder22();
        
    **
**

void SellOrder22()
{
    
double SL Bid SellStoploss22*PipValue*Point;
    if (
SellStoploss22 == 0SL 0;
    
double TP Bid SellTakeprofit22*PipValue*Point;
    if (
SellTakeprofit22 == 0TP 0;
    
int ticket = -1;
    if (
true)
    
ticket OrderSend(Symbol(), OP_SELLSellLots22Bid400"My Expert"20Red);
    else
    
ticket OrderSend(Symbol(), OP_SELLSellLots22Bid4SLTP"My Expert"20Red);
    if (
ticket > -1)
    {
        if (
true)
        {
            
bool sel OrderSelect(ticketSELECT_BY_TICKET);
            
bool ret OrderModify(OrderTicket(), OrderOpenPrice(), SLTP0Red);
            if (
ret == false)
            Print(
"OrderModify() error - "ErrorDescription(GetLastError()));
        **
            
    **
    else
    {
        Print(
"OrderSend() error - "ErrorDescription(GetLastError()));
    **
**

void PrintInfoToChart16()
{
    
string temp "Howdy\nExecuted : " Count16 "\n"
    
"Spread: " DoubleToStr(MarketInfo(Symbol(), MODE_SPREAD)/PipValue2)+ "\n"
    
"------------------------------------------------\n"
    
"ACCOUNT INFORMATION:\n"
    
"\n"
    
"Account Name:     " AccountName()+ "\n"
    
"Account Leverage:     " DoubleToStr(AccountLeverage(), 0)+ "\n"
    
"Account Balance:     " DoubleToStr(AccountBalance(), 2)+ "\n"
    
"Account Equity:     " DoubleToStr(AccountEquity(), 2)+ "\n"
    
"Free Margin:     " DoubleToStr(AccountFreeMargin(), 2)+ "\n"
    
"Used Margin:     " DoubleToStr(AccountMargin(), 2)+ "\n"
    
"------------------------------------------------\n";
    
Comment(temp);
    
Count16++;
    
**



int deinit()
{
    if (
falseObjectsDeleteAll();
    
    
    return (
0);
** 
Reply With Quote
Likes uyin liked this post
Paid Advertisement
  #2  
Old 18-05-2019, 10:17 PM
DreamCatcher DreamCatcher is offline
CG Top Poster Club

DreamCatcher's Avatar
 
Trader Rating: (24)
Join Date: Jan 2008
Location: portalkini.com
Posts: 23,209
Thanks (Received): 416
Likes (Received): 381
Blog Entries: 3
Active Level
My Mood:
Default

ok siap lagi satu ea martin berhemah yg dibuat oleh bro Rizal..

EA ni kalau tak silap den guna system Moving Average. Kalau candel dia duk bwh ma tu, sell, kalau duk atas dia buy.

Berbanding yg thread sebelah tu guna stoch.

Apa2 korang cuba dulu. Den tgh cari setting terbaik sebab baru dapat

Download link dibawah


To view links or images in this forum your post count must be 1 or greater. You currently have 0 posts.


Kalau ada bug ke apa roger kat sini. masih dalam beta mod
Reply With Quote
  #3  
Old 19-05-2019, 08:53 AM
kainlangsir kainlangsir is offline
Legendary Member

kainlangsir's Avatar
 
Trader Rating: (4)
Join Date: Jul 2006
Location: Umbrella Hills
Posts: 12,339
Thanks (Received): 39
Likes (Received): 179
Active Level
My Mood:
Default

Berapa setting MA tu boss
__________________
Ingin menjual I juta IQD. RM90/IQD. PM kalau berminat
Telegram: @fabregas1oo
Reply With Quote
  #4  
Old 19-05-2019, 03:28 PM
DreamCatcher DreamCatcher is offline
CG Top Poster Club

DreamCatcher's Avatar
 
Trader Rating: (24)
Join Date: Jan 2008
Location: portalkini.com
Posts: 23,209
Thanks (Received): 416
Likes (Received): 381
Blog Entries: 3
Active Level
My Mood:
Default

ea ni ada bug skit kat martin.. martin patut close all jd untung. ni terbalik. tunggu fix
Reply With Quote
  #5  
Old 03-06-2019, 04:20 PM
stillFX stillFX is offline
Super Active

 
Trader Rating: (0)
Join Date: Nov 2016
Posts: 5,043
Thanks (Received): 0
Likes (Received): 366
Active Level
Default

Quote:
ea ni ada bug skit kat martin.. martin patut close all jd untung. ni terbalik. tunggu fix
dh leh guna ke tuan?
To view links or images in this forum your post count must be 1 or greater. You currently have 0 posts.
Reply With Quote
  #6  
Old 03-06-2019, 04:24 PM
tomie tomie is offline
CG Hardcore

tomie's Avatar
 
Trader Rating: (31)
Join Date: Dec 2006
Location: Sedaka, Yan
Posts: 73,467
Thanks (Received): 7806
Likes (Received): 374
Blog Entries: 1
Active Level
My Mood:
Default

rizal yg mana ni?
otai jinli tu ke?
To view links or images in this forum your post count must be 1 or greater. You currently have 0 posts.

To view links or images in this forum your post count must be 1 or greater. You currently have 0 posts.
Reply With Quote
Sponsored Links
Reply

Thread Tools

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

AMP
Forum Jump