15-08-2005, 05:05 PM
|
#1
|
متداول جديد
تاريخ التسجيل: Jan 2004
المشاركات: 74
|
كيف يمكنني اضافة هذه المعادلة في الميتاستوك
السلام عليكم ورحمة الله وبركاته
الإخوة الاعزاء كيف يمكنني اضافة هذه المعادلة في الميتاستوك
ولكم جزيل الشكر
THL = IIf(H != L, H - L, 0.01);
BullOpen = (H - O)/THL;
BearOpen = (O - L)/THL;
BullClose = (C - L)/THL;
BearClose = (H - C)/THL;
BullOC =IIf(C > O, (C - O)/THL, 0);
BearOC =IIf(O > C, (O - C)/THL, 0);
BullReward = (BullOpen + BullClose + BullOC)/3;
BearReward = (BearOpen + BearClose + BearOC)/3;
BOP = BullReward - BearReward;
Period1 = 34;
SmoothBOP = EMA(BOP, Period1);
Period2 = 34;
SmootherBOP = TEMA(SmoothBOP, Period2);
Plot(SmoothBOP, "BOP " + Period1, colorDarkGreen, 1);
Plot(SmootherBOP, "", colorRed);
Plot(Ref(SmootherBOP, -2), "", colorBlue);
Plot(0.1, "", colorGreen);
Plot(0, "", colorBlack);
Plot(-0.1, "", colorBrown);
// ZTOP BUY AND SELL SYSTEM
Buy= Cross((SmoothBOP), (SmootherBOP)) AND (SmoothBOP)> -0.1 AND (SmoothBOP)< 0.1;
Sell= Cross((SmootherBOP),(SmoothBOP)) AND (SmoothBOP)> 0.1;
|
|
|