الله يرحم والديك اخي عندي سؤل ان قمت بعمل اكسبيرات للماكد ولكن اريد ان اعرف كيفية تعريف حجم اللوت و الستوب والهدف في الدلة start [PHP]#property copyright "Copyright 2013, MetaQuotes Software Corp."
#property link "http://www.metaquotes.net"
extern int StopLoss=20;
extern int TakeProfit=20;
extern double Lot=0.10;
extern int MagicNumber=15000;
//+------------------------------------------------------------------+
//| expert initialization function |
//+------------------------------------------------------------------+
int init()
{
//---- Open price
//----
return(0);
}
//+------------------------------------------------------------------+
//| expert deinitialization function |
//+------------------------------------------------------------------+
int deinit()
{
//----
return(0);
}
//+------------------------------------------------------------------+
//| expert start function |
//+------------------------------------------------------------------+
int start()
{
double m1,m2,m3,m4;
double SL,TP;
m1=iMACD("EURUSD",5,12,26,9,PRICE_CLOSE,MODE_SIGNA L,1);
m2=iMACD("EURUSD",5,12,26,9,PRICE_CLOSE,MODE_SIGNA L,0);
{
if(m2<0&&m1>0)
OrderSend(Symbol(),OP_BUY,Lot,Ask,33,TP,SL,"AYOOB" ,MagicNumber,0,Green);
}
if(m2>0&&m1<0){
OrderSend(Symbol(),OP_SELL,Lot,Bid,33,TP,SL,"AYOOB ",MagicNumber,0,Red);
}
}
//----
return(0);
[/PHP]