النتائج 1 إلى 3 من 3
  1. #1
    الصورة الرمزية yamin2000
    yamin2000 غير متواجد حالياً عضو نشيط
    تاريخ التسجيل
    Oct 2007
    الإقامة
    السعودية
    المشاركات
    1,044

    افتراضي اضافة تنبية الي موشر ال round numbers

    السلام عليكم
    هل يمكن اضافة تنبية للموشر عن وصول السعر بقيمة معينة للسعر

    اضغط على الصورة لعرض أكبر

الاســـم:	Capture2.jpg
المشاهدات:	66
الحجـــم:	103.5 كيلوبايت
الرقم:	517928

    SweetSpotsGOLD_TRO_MODIFIED_VERSION.mq4

    //| SweetSpots.mq4 |//| |
    //| |
    //+------------------------------------------------------------------+
    //| SweetSpotsGOLD_TRO_MODIFIED_VERSION |
    //| MODIFIED BY AVERY T. HORTON, JR. AKA [email protected] |
    //| I am NOT the ORIGINAL author
    // and I am not claiming authorship of this indicator.
    // All I did was modify it. I hope you find my modifications useful.|
    //| |
    //+------------------------------------------------------------------+



    #property copyright "Copyright Shimodax"
    #property link "http://www.strategybuilderfx.com"


    #property indicator_chart_window
    //+------------------------------------------------------------------+


    /* Introduction:


    This indicator shows lines at sweet spots (50 and 100
    pips levels). It is recommended to turn off the grid.

    Enjoy!


    Markus
    */


    extern bool TURN_OFF = false ;
    extern bool AutoAdjust = true;
    extern bool Show_Labels = true ;
    extern int ShiftLabel = 2 ;


    extern int NumLinesAboveBelow = 100;
    extern int SweetSpotMainLevels = 100;


    extern color LineColorMain= Yellow;
    extern int LineStyleMain= STYLE_DOT;


    extern bool ShowSubLevels= true;
    extern int sublevels= 10;


    extern color LineColorSub= Yellow;
    extern int LineStyleSub= STYLE_DOT;




    string symbol, tChartPeriod, tShortName, pricelabel ;
    int digits, period, digits2, mult = 1 ;
    double point ;

    //+------------------------------------------------------------------+
    int init()
    {
    period = Period() ;
    symbol = Symbol() ;
    digits = Digits ;
    point = Point ;

    if(digits == 5 || digits == 3) { mult = 10; digits = digits - 1 ; point = point * 10 ; }

    if(AutoAdjust && period > PERIOD_H1 && period < PERIOD_MN1) { mult = mult * 10; }
    if(AutoAdjust && period == PERIOD_MN1) { mult = mult * 100; }

    SweetSpotMainLevels = SweetSpotMainLevels * mult;

    sublevels = sublevels * mult;

    deinit();

    return(0);
    }


    //+------------------------------------------------------------------+
    int deinit()
    {
    int obj_total= ObjectsTotal();

    for (int i= obj_total; i>=0; i--) {
    string name= ObjectName(i);

    if (StringSubstr(name,0,11)=="[SweetSpot]")
    ObjectDelete(name);
    }
    TRO();
    return(0);
    }

    //+------------------------------------------------------------------+
    int start()
    {
    if( TURN_OFF ) { return(0) ; }


    static datetime timelastupdate= 0;
    static datetime lasttimeframe= 0;


    // no need to update these buggers too often
    if (CurTime()-timelastupdate < 600 && Period()==lasttimeframe)
    return (0);

    deinit(); // delete all previous lines

    int i, ssp1, style, ssp, thickness; //sublevels= 50;
    double ds1;
    color linecolor;

    if (!ShowSubLevels)
    sublevels*= 2;

    ssp1= Bid / Point;
    ssp1= ssp1 - ssp1%sublevels;


    for (i= -NumLinesAboveBelow; i<NumLinesAboveBelow; i++)
    {

    ssp= ssp1+(i*sublevels);

    if (ssp%SweetSpotMainLevels==0)
    {
    style= LineStyleMain;
    linecolor= LineColorMain;
    }
    else
    {
    style= LineStyleSub;
    linecolor= LineColorSub;
    }

    thickness= 1;

    if (ssp%(SweetSpotMainLevels*10)==0)
    {
    thickness= 2;
    }


    if (ssp%(SweetSpotMainLevels*100)==0)
    {
    thickness= 3;
    }

    ds1= ssp*Point;
    SetLevel(DoubleToStr(ds1,Digits), ds1, linecolor, style, thickness, Time[10]);
    }


    return(0);
    }




    //+------------------------------------------------------------------+
    //| Helper |
    //+------------------------------------------------------------------+
    void SetLevel(string text, double level, color col1, int linestyle, int thickness, datetime startofday)
    {


    string linename= "[SweetSpot] " + text + " Line" + pricelabel;


    // create or move the horizontal line
    if (ObjectFind(linename) != 0) {
    ObjectCreate(linename, OBJ_TREND, 0, Time[0], level, Time[1], level, 0, 0);


    // ObjectCreate(linename, OBJ_HLINE, 0, 0, level);

    ObjectSet(linename, OBJPROP_STYLE, linestyle);
    ObjectSet(linename, OBJPROP_COLOR, col1);
    ObjectSet(linename, OBJPROP_WIDTH, thickness);


    ObjectSet(linename, OBJPROP_RAY, true);
    ObjectSet(linename, OBJPROP_BACK, True);
    }
    else {
    ObjectMove(linename, 0, Time[0], level);
    }



    if(Show_Labels)
    {


    string Obj0002 = linename+"linelbl" ;

    ObjectDelete(Obj0002);

    if(ObjectFind(Obj0002) != 0)
    {
    ObjectCreate(Obj0002,OBJ_ARROW,0,Time[0],level);
    ObjectSet(Obj0002,OBJPROP_ARROWCODE,SYMBOL_RIGHTPR ICE);
    ObjectSet(Obj0002,OBJPROP_COLOR,col1);
    }
    else
    {
    ObjectMove(Obj0002,0,Time[0],level);
    }


    } // if

    }




    //+------------------------------------------------------------------+
    void TRO()
    {

    string tObjName03 = "TROTAG" ;
    ObjectCreate(tObjName03, OBJ_LABEL, 0, 0, 0);//HiLow LABEL
    ObjectSetText(tObjName03, CharToStr(78) , 12 , "Wingdings", DimGray );
    ObjectSet(tObjName03, OBJPROP_CORNER, 3);
    ObjectSet(tObjName03, OBJPROP_XDISTANCE, 5 );
    ObjectSet(tObjName03, OBJPROP_YDISTANCE, 5 );
    }
    //+------------------------------------------------------------------+

  2. #2
    الصورة الرمزية yamin2000
    yamin2000 غير متواجد حالياً عضو نشيط
    تاريخ التسجيل
    Oct 2007
    الإقامة
    السعودية
    المشاركات
    1,044

    افتراضي

    يوجد موشر لمستر دوار شبية لة لكن الموشر المطلوب طريقة حسابة تتناسب مع طريقتي فى التداول

    //+------------------------------------------------------------------+ //| |
    //| |
    //| www.arabictrader.com/vb |
    //| |
    //| [email protected] |
    //+------------------------------------------------------------------+

    #property copyright "MR.dollar "
    #property link "[email protected]"


    #property indicator_chart_window


    extern color HighLineColor=Red;
    extern color CenterLineColor=Blue;
    extern color LowLineColor=Red;
    extern int DistanceBetweenLines=40;
    extern int NumberOfLines=10;
    extern bool DrawHighLines=true;
    extern bool DrawLowLines=true;
    extern double CenterLinePrice=0;
    extern int CenterLineTF=0;
    extern int Width=1;
    extern int NameNumber=1;
    extern string S1=" Alert Settings";
    extern bool AllowAlert=true;
    extern int CandleAlert=1;
    double point;
    int digits;
    int i;
    datetime Time0;
    int init() {
    if(Digits<4)
    {
    point=0.01;
    digits=2;
    }
    else
    {
    point=0.0001;
    digits=4;
    }
    return(0);
    }


    int deinit() {

    ObjectsDeleteAll(0,OBJ_HLINE);

    Comment("");
    return(0);
    }


    //+------------------------------------------------------------------+
    int start() {
    if(Width>5||Width<1)Width=1;
    Comment("Programmed by MR.dollar"+"\n"+"\n"+"أ£أ¤أٹأڈأ¬ أ‡أ،أ£أٹأڈأ‡أ¦أ، أ‡أ،أڑأ‘أˆأ*"+"\n"+"www.arabictrader.com/vb");

    double HLine,LLine;
    if(CenterLinePrice==0){
    CenterLinePrice=iClose(NULL,CenterLineTF,1);}
    draw("CenterLine"+1+"["+NameNumber+"]",CenterLinePrice,CenterLineColor);
    if(DrawHighLines){
    for(i=1;i<=NumberOfLines;i++){
    HLine=CenterLinePrice+(DistanceBetweenLines*Point* i);
    draw("High"+i+"["+NameNumber+"]",HLine,LowLineColor);
    }
    }
    if(DrawLowLines){
    for(i=1;i<=NumberOfLines;i++){
    LLine=CenterLinePrice-(DistanceBetweenLines*Point*i);
    draw("Low"+i+"["+NameNumber+"]",LLine,HighLineColor);
    }
    }
    if(AllowAlert){
    alert("High");
    alert("Low");
    alert("CenterLine");
    }


    return(0);

    }
    void draw(string name, double price,color _Color)
    {
    if(ObjectFind(name) != 0)
    {
    ObjectCreate(name, OBJ_HLINE, 0, 0,price);
    ObjectSet(name, OBJPROP_COLOR, _Color);
    ObjectSet(name, OBJPROP_STYLE, STYLE_SOLID);
    ObjectSet(name, OBJPROP_WIDTH, Width);
    }
    if(ObjectGet(name,OBJPROP_PRICE1)!=price)
    {ObjectDelete(name);}
    }
    void alert(string name){
    for(i=1;i<=NumberOfLines;i++){
    if(ObjectFind(name+i+"["+NameNumber+"]")!=-1){
    double b=ObjectGet(name+i+"["+NameNumber+"]",OBJPROP_PRICE1);
    if(((Open[CandleAlert]<=b&&Close[CandleAlert]>b)||(Open[CandleAlert]>=b&&Close[CandleAlert]<b))&&Time0!=Time[0]){
    PlaySound("Alert.wav");
    Alert("Line Break at : ",Symbol()," Period: ",Period());
    Time0=Time[0];}
    }
    }
    }
    //+------------------------------------------------------------------+

  3. #3
    الصورة الرمزية yamin2000
    yamin2000 غير متواجد حالياً عضو نشيط
    تاريخ التسجيل
    Oct 2007
    الإقامة
    السعودية
    المشاركات
    1,044

    افتراضي

    وجدت موشر فى منتدي اجنبي


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17