http://www14.0zz0.com/2017/09/28/02/947834410.png
Printable View
Ternary Operator ?:
اختصار ماذا؟
http://www11.0zz0.com/2017/09/28/20/788595550.png
هي نفسهاكود PHP:
double true_range = (High==Low)?0:(Close-Open)/(High-Low);
كود PHP:
double true_range;
if(High==Low)true_range=0;
else true_range=(Close-Open)/(High-Low);
ENUM_CHART_POSITION
ااريد برمجيا وبشكل مبااشرشمعةا الدقيقة 2017.08.10 15:30 في منتصف التشارت لفريم 1 دقيقة؟
هل استخدم
CHART_BEGIN
ام استخدم
CHART_CURRENT_POS
ام استخدم
CHART_END
http://www3.0zz0.com/2017/09/29/03/175894291.png
CHART_END
https://charts.mql5.com/16/291/audch...trades-plc.pngكود PHP:
string D_TIME="2017.08.01 14:30";
int F5=iBarShift(NULL,PERIOD_M1,StrToTime(D_TIME),false);
ChartNavigate(0,CHART_END,-F5+candles*3);
__FUNCTION__
ماذا سيطبع الكود ااسفل؟؟
ج: OnTickكود PHP:
void OnTick()
{
Print(__FUNCTION__);
}
فالماكرو __FUNCTION__ قيمتها دائما ااسم الدالة التي هي بداخلها
بقية الماكروز
http://www4.0zz0.com/2017/09/29/05/542149986.png
__FUNCSIG__ ماهو فرقها عن __FUNCTION__ ؟؟
ماذا تعني النجمة * في الككود اسفل
كود PHP:
class CItem
{
int m_id;
string m_comment;
CItem* m_next;
public:
CItem() { m_id=0; m_comment=NULL; m_next=NULL; }
~CItem() { Print("Destructor of ",m_id,
(CheckPointer(GetPointer(this))==POINTER_DYNAMIC)?
"dynamic":"non-dynamic"); }
void Initialize(int id,string comm) { m_id=id; m_comment=comm; }
void PrintMe() { Print(__FUNCTION__,":",m_id,m_comment); }
int Identifier() { return(m_id); }
CItem* Next() {return(m_next); }
void Next(CItem *item) { m_next=item; }
};
ج:Pointer
What are Pointers?
A pointer is a variable whose value is the address of another variable.
asterisk * is being used to designate a variable as a pointer
كود PHP:
int *ip; // pointer to an integer
double *dp; // pointer to a double
float *fp; // pointer to a float
char *ch // pointer to character
The actual data type of the value of all pointers, whether integer, float, character, or otherwise, is the same, a long hexadecimal number that represents a memory address.
References vs Pointers