Ceriwis  

Go Back   Ceriwis > DISKUSI > Forex

Forex Diskusi apapun tentang Forex disini.

Reply
 
Thread Tools
  #1  
Old 25th April 2016
MahgaiMoney's Avatar
MahgaiMoney MahgaiMoney is offline
Member Aktif
 
Join Date: Apr 2016
Posts: 236
Rep Power: 0
MahgaiMoney mempunyai hidup yang Normal
Default Help Bahasa Program MQL4 Kenapa OP saya rada2 aneh banget lotx... help ?

//+------------------------------------------------------------------+

//| Latihan EA-1.mq4 |

//| Heri Santoso |

//| |

//+------------------------------------------------------------------+



#property copyright "Heri Santoso"

#property link "http://www.ExnessForex.com"



extern string EA_Setting = "---------------------< EA Setting >---------------------";

static int TimeFrame = 0;

extern double Lots = 0.03;

extern int TakeProfit = 10;

extern int Stoploss = 5;

extern int Slippage = 10;

extern int Magic = 123456;



int TampilanChart;

int num;

double hore,profit,score;

int max,counter,maxo;

string b;

double koko;

int init()

{

hore = 0.03;

num=MathRand()%2+1;

profit=0;counter=0;

score=0;

max=0;

maxo=0;

//----

if(Digits==5)

{

TakeProfit=10*TakeProfit;

Stoploss = 10 * Stoploss;

Slippage = 100 * Slippage;

Print("Digits = ",Digits);

}



Comment("Install EA...");

if(!IsTesting())

{

if(!IsDllsAllowed())

{

Alert("Check \"AllowDLL Imports\" ON at menu Tools->Options->ExpertAdvisors!");

Print("Check \"AllowDLL Imports\" ON at menu Tools->Options->ExpertAdvisors!");

Comment("Warning: Check Parameter \"AllowDLL Imports\" ON menu Tools -> Options -> ExpertAdvisors!");

return (0);

}

}

//----

return(0);

}

//+------------------------------------------------------------------+

//| expert deinitialization function |

//+------------------------------------------------------------------+

int deinit()

{

return(0);

}

int start()

{

if (OrdersTotal()==0)

{

if(profit>=0)

{ score+=hore;

hore=0.03;

if(max>maxo)

{

maxo=max;

}

max=0;

b="menang";

}

else if(max>3)

{

hore=0.03;

max=0;

return(0);

}

else if(profit

Terkait:
    Reply With Quote
    Reply


    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


     


    All times are GMT +7. The time now is 05:36 PM.


    no new posts