النتائج 1 إلى 2 من 2
الموضوع: سؤال فى استخدام قيمه الفيبو 61
- 17-05-2013, 07:06 PM #1
سؤال فى استخدام قيمه الفيبو 61
السلام عليكم ورحمه الله و بركاته
احاول تجربه صفقات على فريم ال5 دقائق
و كنت استخدم امر
كود PHP:myLength = MathAbs(Open[1]-Close[1]) ;
كود PHP:myLength = MathAbs(NormalizeDouble(iCustom(NULL,60,"Heiken Ashi", 2, 1), Digits)-NormalizeDouble(iCustom(NULL,60,"Heiken Ashi", 3, 1), Digits)) ;
EntryPoint = NormalizeDouble(Close[1]+myLength*0.618,Digits) ;
فاين الخطئ؟
- 17-05-2013, 08:05 PM #2
رد:سؤال فى استخدام قيمه الفيبو 61
و لقيت ناس بتستخدم اتنين فايبو واحد للصعود و التاني للهبوط
فهل لو حستخدم فيبو 61 فقط لازم اعرف هو صاعد ام هابط؟
كود PHP:int init()
{
//---- indicators
ObjectDelete("XIT_FIBO");
Comment("");
//----
return(0);
}
//+------------------------------------------------------------------+
//| Custom indicator deinitialization function |
//+------------------------------------------------------------------+
int deinit()
{
//----
ObjectDelete("XIT_FIBO");
Comment("");
//----
return(0);
}
//+------------------------------------------------------------------+
//| Custom indicator iteration function |
//+------------------------------------------------------------------+
int start()
{
//----
int fibHigh = iHighest(Symbol(),Period(),MODE_HIGH,WindowFirstVisibleBar()-1,1);
int fibLow = iLowest(Symbol(),Period(),MODE_LOW,WindowFirstVisibleBar()-1,1);
datetime highTime = Time[fibHigh];
datetime lowTime = Time[fibLow];
if(fibHigh>fibLow){
WindowRedraw();
ObjectCreate("XIT_FIBO",OBJ_FIBO,0,highTime,High[fibHigh],lowTime,Low[fibLow]);
color levelColor = Red;
}
else{
WindowRedraw();
ObjectCreate("XIT_FIBO",OBJ_FIBO,0,lowTime,Low[fibLow],highTime,High[fibHigh]);
levelColor = Green;
}
double fiboPrice1=ObjectGet("XIT_FIBO",OBJPROP_PRICE1);
double fiboPrice2=ObjectGet("XIT_FIBO",OBJPROP_PRICE2);
double fiboPriceDiff = fiboPrice2-fiboPrice1;
string fiboValue0 = DoubleToStr(fiboPrice2-fiboPriceDiff*0.0,Digits);
string fiboValue23 = DoubleToStr(fiboPrice2-fiboPriceDiff*0.236,Digits);
string fiboValue38 = DoubleToStr(fiboPrice2-fiboPriceDiff*0.382,Digits);
string fiboValue50 = DoubleToStr(fiboPrice2-fiboPriceDiff*0.50,Digits);
string fiboValue61 = DoubleToStr(fiboPrice2-fiboPriceDiff*0.618,Digits);
string fiboValue100 = DoubleToStr(fiboPrice2-fiboPriceDiff*1.0,Digits);
ObjectSet("XIT_FIBO",OBJPROP_FIBOLEVELS,6);
ObjectSet("XIT_FIBO",OBJPROP_FIRSTLEVEL+0,0.0);
ObjectSet("XIT_FIBO",OBJPROP_FIRSTLEVEL+1,0.236);
ObjectSet("XIT_FIBO",OBJPROP_FIRSTLEVEL+2,0.382);
ObjectSet("XIT_FIBO",OBJPROP_FIRSTLEVEL+3,0.50);
ObjectSet("XIT_FIBO",OBJPROP_FIRSTLEVEL+4,0.618);
ObjectSet("XIT_FIBO",OBJPROP_FIRSTLEVEL+5,1.0);
ObjectSet("XIT_FIBO",OBJPROP_LEVELCOLOR,levelColor);
ObjectSet("XIT_FIBO",OBJPROP_LEVELWIDTH,1);
ObjectSet("XIT_FIBO",OBJPROP_LEVELSTYLE,STYLE_DASHDOTDOT);
ObjectSetFiboDescription( "XIT_FIBO", 0,fiboValue0+" --> 0.0%");
ObjectSetFiboDescription( "XIT_FIBO", 1,fiboValue23+" --> 23.6%");
ObjectSetFiboDescription( "XIT_FIBO", 2,fiboValue38+" --> 38.2%");
ObjectSetFiboDescription( "XIT_FIBO", 3,fiboValue50+" --> 50.0%");
ObjectSetFiboDescription( "XIT_FIBO", 4,fiboValue61+" --> 61.8%");
ObjectSetFiboDescription( "XIT_FIBO", 5,fiboValue100+" --> 100.0%");
//----
return(0);
}
//+------------------------------------------------------------------+