هذه اكواد ومشكور اخانا اطلس؟ dahel

الموضوع في 'السوق السعودي للأوراق الماليه' بواسطة lopa, بتاريخ ‏3 يونيو 2007.

  1. lopa

    lopa عضو جديد

    التسجيل:
    ‏8 يونيو 2004
    المشاركات:
    326
    عدد الإعجابات:
    0
    مكان الإقامة:
    جده
    هذه اكواد dahel
    تروح عند edit formula وتضيف الكود وهذا موقع المعادلات على الايمي

    الصوره
    [​IMG]
    وعلى الميتا
    المشكل ان الميتا ما يستوعب المعادلات الكبيره متل الميتا
    موشر dahel بيجي على الميتاستوك بسهوله لكن وجوده بالايمي افضل

    وهذه معادلته

    /*******************************************************
    Candlestick Commentary
    Load this file into the Commentary Option of the Analysis tab. Green arrows indicate bullish candles.
    Red arrows indicate bearish candles. Scroll down the commentary for comments.
    This is a work in progress. Thanks to all on this forum whose code I may have incorporated into this file. Comments are from Steve Nison "Japanese Candlestick Charting Techniques" and the LitWick web site.
    **********************************************************/

    /*Body Colors*/
    whiteBody=C>=O;
    blackBody=O>C;

    /*Body Size*/
    smallBodyMaximum=0.0025;//less than 0.25%
    LargeBodyMinimum=0.01;//greater than 1.0%
    smallBody=(O>=C*(1-smallBodyMaximum) AND whiteBody)
    OR (C>=O*(1-smallBodyMaximum) AND blackBody);
    largeBody=(C>=O*(1+largeBodyMinimum) AND whiteBody)
    OR C<=O*(1-largeBodyMinimum) AND blackBody;
    mediumBody=NOT LargeBody AND NOT smallBody;
    identicalBodies=abs(abs(Ref(O,-1)-Ref(C,-1))-abs(O-C)) <
    abs(O-C)*smallBodyMaximum;
    realBodySize=abs(O-C);


    /*Shadows*/
    smallUpperShadow=(whiteBody AND H<=C*(1+smallBodyMaximum))
    OR (blackBody AND H<=O*(1+smallBodyMaximum));
    smallLowerShadow=(whiteBody AND L>=O*(1-smallBodyMaximum))
    OR (blackBody AND L>=C*(1-smallBodyMaximum));
    largeUpperShadow=(whiteBody AND H>=C*(1+largeBodyMinimum))
    OR (blackBody AND H>=O*(1+largeBodyMinimum));
    largeLowerShadow=(whiteBody AND L<=O*(1-largeBodyMinimum))
    OR (blackBody AND L<=C*(1-largeBodyMinimum));

    /*Gaps*/
    upGap= IIf(Ref(blackBody,-1)AND whiteBody AND O>Ref(O,-1),1,
    IIf(Ref(blackbody,-1) AND blackBody AND C>Ref(O,-1),1,
    IIf(Ref(whiteBody,-1) AND whiteBody AND O>Ref(C,-1),1,
    IIf(Ref(whiteBody,-1) AND blackBody AND C>Ref(C,-1),1,0))));

    downGap=IIf(Ref(blackBody,-1)AND whiteBody AND C<Ref(C,-1),1,
    IIf(Ref(blackbody,-1) AND blackBody AND O<Ref(C,-1),1,
    IIf(Ref(whiteBody,-1) AND whiteBody AND C<Ref(O,-1),1,
    IIf(Ref(whiteBody,-1) AND blackBody AND O<Ref(O,-1),1,0))));


    /*Candle Definitions*/
    spinningTop=mediumBody;
    doji=CdDoji(threshold=0.05);/*abs(C-O) <= (C*smallBodyMaximum) OR
    (abs(O-C)<=((H-L)*0.1));*/
    dojiStar=doji AND (upgap OR downgap)AND Ref(LargeBody,-1);
    marabuzu=LargeBody AND smallUpperShadow AND smallLowerShadow;

    shootingStar=/*(NOT largeBody AND smallLowerShadow AND LargeUpperShadow) OR*/
    smallLowerShadow AND NOT doji AND
    ((blackBody AND abs(O-H)>2*realBodySize) OR
    (whiteBody AND abs(H-C)>2*realBodySize));

    Hammer=smallUpperShadow AND NOT doji AND
    ((blackBody AND abs(C-L)>2*realBodySize) OR
    (whiteBody AND abs(L-O)>2*realBodySize));

    tweezerTop=abs(H-Ref(H,-1))<=H*0.0025;
    tweezerBottom=abs(L-Ref(L,-1))<=L*0.0025;
    engulfing=
    IIf(blackBody AND Ref(blackbody,-1) AND C<Ref(C,-1) AND O>Ref(O,-1),1,
    IIf(blackBody AND Ref(whiteBody,-1) AND O>Ref(C,-1) AND C<Ref(O,-1),1,
    IIf(whitebody AND Ref(whitebody,-1) AND C>Ref(C,-1) AND O<Ref(O,-1),1,
    IIf(whiteBody AND Ref(blackBody,-1) AND C>Ref(O,-1)AND O<Ref(C,-1),1,0))));
    Harami=
    IIf(blackbody AND Ref(blackBody,-1) AND O<Ref(O,-1) AND C>Ref(C,-1),1,
    IIf(blackBody AND Ref(whiteBody,-1) AND C>Ref(O,-1) AND O<Ref(C,-1),1,
    IIf(whiteBody AND Ref(whiteBody,-1) AND C<Ref(C,-1) AND O>Ref(O,-1),1,
    IIf(whiteBody AND Ref(blackBody,-1) AND O>Ref(C,-1) AND C<Ref(O,-1),1,0))));


    /*Maximum High Today - (MHT)
    Today is the maximum High in the last 5 days*/
    MHT= HHV(H,5)==H;

    /*Maximum High Yesterday - (MHY)
    Yesterday is the maximum High in the last 5 days*/
    MHY= HHV(H,5)==Ref ( H, -1);

    /*Minimum Low Today - (MLT)
    Today is the minimum Low in the last 5 days*/
    MLT= LLV(L,5)==L;

    /*Minimum Low Yesterday - (MLY)
    Yesterday is the minimum Low in the last 5 days*/
    MLY= LLV(L,5)==Ref(L,-1);

    /*DOJI definitions*/

    /*Doji Today - (DT)*/
    DT = abs(C-O) <= (C*smallBodyMaximum) OR
    (abs(O-C)<=((H-L)*0.1));

    /* Doji Yesterday - (DY)*/
    DY = abs(Ref ( C, -1)-Ref(O,-1)) <= Ref ( C, -1) *smallBodyMaximum OR
    abs (Ref ( O, -1)-Ref(C,-1)) <= (Ref ( H, -1 ) - Ref ( L, -1 ) )*0.1;

    /**************************************************
    BULLISH CANDLESTICKS
    *************************************************** */

    /* Abandoned Baby Bullish*/
    abandonedBabybullish =Ref(largeBody,-2) AND Ref(blackBody,-2)//Large black candle
    AND Ref(GapDown(),-1)
    AND whiteBody AND LargeBody AND GapUp();//Large white candle

    /* Belt Hold*///Bad formula
    beltHoldBullish = largeBody AND smallLowerShadow AND whiteBody AND MLT;


    /*BreakAway Bullish*/
    breakAwayBullish=Ref(Largebody,-4) AND Ref(blackBody,-4)
    AND Ref(blackBody,-3) AND Ref(O,-3)<Ref(C,-4)
    AND Ref(smallbody,-2) AND Ref(C,-2)<Ref(C,-3)
    AND Ref(C,-1)<Ref(C,-2)
    AND LargeBody AND whiteBody AND C>Ref(O, -3)
    AND C<Ref(C,-4);

    /*Concealing Baby Swallow only one trade */
    ConcealingBabySwallow=Ref(marabuzu,-3) AND Ref(blackbody,-3) AND
    Ref(MArabuzu,-2) AND Ref(blackBody,-2) AND
    Ref(blackBody,-1) AND Ref(downGap,-1) AND
    Ref(H,-1)>Ref(C,-2)AND Ref(blackbody,-1)AND
    blackBody AND engulfing;

    /*Doji Star Bullish*/
    dojiStarBullish=(dojiStar AND (MLT OR MLY))OR
    (doji AND (C<Ref(C,-1) OR O<Ref(C,-1))AND Ref(blackBody,-1)
    AND Ref(LargeBody,-1));

    /*Engulfing Bullish*/
    engulfingBullish =
    engulfing AND largeBody AND whiteBody AND
    (Ref(blackbody,-1) OR Ref(Doji,-1)) AND MLT;

    /*Hammer Bullish*/
    hammerBullish=Hammer AND (MLT OR MLY);

    /*Dragonfly Doji Bullish*/
    dragonflyDoji=smallBody AND LargeLowerShadow AND smallUpperShadow AND MLT;

    /* Harami Bullish*/
    haramiBullish = harami AND Ref (LargeBody,-1) AND Ref(blackBody,-1) AND
    NOT LargeBody AND whiteBody;

    /*Harami Cross*/
    HaramiCross=harami AND Ref(LargeBody,-1) AND Ref(blackBody,-1) AND doji;

    /* Homing Pigeon*/
    homingPigeon = Ref(largeBody,-1) AND Ref(blackBody,-1) AND
    H<= Ref ( O, -1 ) AND L>=Ref( C, -1) AND C<O AND MLY;

    /*Inverted Hammer*/
    invertedHammer=shootingStar AND (MLT OR MLY);

    /* Meeting LinesBullish*/
    meetingLinesbullish= Ref(LargeBody,-1) AND Ref(blackBody,-1) AND
    LargeBody AND whiteBody AND
    C>Ref(C,-1)*0.9975 AND C< Ref(C,-1)*1.0025;

    /*Morning Doji Star*/
    morningDojiStar= Ref(LargeBody,-2) AND Ref(blackBody,-2) AND
    Ref(doji,-1) AND Ref(O,-1)<Ref(C,-2) AND
    whiteBody AND C>Ref(C,-2) AND MLY;

    /* Morning Star*/
    morningStar =Ref(largeBody,-2) AND Ref(blackBody,-2)//Large black candle
    AND Ref(downGap,-1)//Gap down yesterday
    AND whiteBody AND LargeBody AND C>Ref(C,-2)//Large white candle today
    AND MLY; //Yesterday was the low

    /* Piercing Line*/
    piercingLine= Ref(largeBody,-1) AND Ref(blackBody,-1)AND
    O<Ref(L,-1) AND C>=(Ref(O,-1)+Ref(C,-1))/2 AND C<Ref(O,-1) AND MLT;

    /* Stick Sandwich*/
    stickSandwich=Ref(largeBody,-2) AND Ref(blackbody,-2) AND
    Ref(largeBody,-1) AND Ref(whiteBody,-1) AND
    Ref(O,-1)>=Ref(C,-2) AND O>=Ref(C,-1) AND
    abs(C-Ref(C,-2))<=C*0.0025;

    /*Three Inside Up harami confirming*/
    threeInsideUp =Ref(Haramibullish,-1) AND whiteBody AND
    largeBody AND C>Ref(C,-1);


    /* Three Outside Up Engulfing confirmation*/
    threeOutsideUp =Ref(engulfingBullish,-1) AND whiteBody AND C>Ref(C,-1);

    /* Three Stars in the South*///Rewrite???
    threeStarsInTheSouth=
    Ref(LargeBody,-2) AND Ref(blackBody,-2) AND Ref(largelowerShadow,-2)
    AND Ref(blackBody,-1) AND Ref(largeLowerShadow,-1) AND
    Ref(L,-1)>Ref(L,-2) AND blackBody AND smallUpperShadow AND
    smallLowerShadow AND L>Ref(L,-1) AND H<Ref(H,-1);

    /* Tri-Star Bullish*/
    triStarBullish=Ref(doji,-2) AND Ref(doji,-1) AND doji AND MLY AND
    Ref(downgap,-1) AND upGap;

    /* Three River Bottom Bad formula*/
    threeriverBottom=Ref(largeBody,-2) AND Ref(blackBody,-2) AND
    Ref(blackbody,-1) AND Ref(Largelowershadow,-1) AND
    Ref(O,-1)<Ref(O,-2) AND Ref(C,-1)>Ref(C,-2) AND
    whiteBody AND C<Ref(C,-1) AND MLY;

    /* Mat Hold Bullish*/
    MAtHoldBullish=Ref(LargeBody,-4) AND Ref(whiteBody,-4)//1st day
    AND Ref(blackBody,-3) AND Ref(upGap,-3) AND NOT Ref(LargeBody,-3)
    AND NOT Ref(LargeBody,-2) AND Ref(C,-2)<Ref(C,-3) AND Ref (O,-2)<Ref(O,-3) AND
    Ref(C,-2)>Ref(O,-4) AND NOT Ref(LargeBody,-1) AND Ref(C,-1)<Ref(C,-2)
    AND LargeBody AND whiteBody AND C>Ref(C,-4);

    /*RisingThreeMethods*/
    risingThreeMethods=Ref(LargeBody,-4) AND Ref(whiteBody,-4) AND NOT
    Ref(LargeBody,-3) AND NOT Ref(LargeBody,-2)AND NOT Ref(LargeBody,-1) AND
    Ref(C,-3)<Ref(C,-4) AND Ref(C,-2)<Ref(C,-3) AND Ref(C,-1)<Ref(C,-2) AND
    LargeBody AND whitebody AND C>Ref(C,-4);

    /* Seperating Lines Bullish*/
    separatingLinesBullish=Ref(blackBody,-1) AND whiteBody AND LargeBody AND
    smallLowerShadow AND MHT AND abs(O-Ref(O,-1))<=O*0.0025;

    /*Side by Side White Lines*/
    sideBySideWhiteLines=NOT Ref(smallBody,-2) AND Ref(whiteBody,-2)
    AND Ref(upGap,-1) AND Ref(whitebody,-1)AND whiteBody AND
    identicalBodies AND abs(O-Ref(O,-1))<O*0.0025;


    /*Three White Soldiers*/
    threeWhiteSoldiers=NOT Ref(smallbody,-2) AND Ref(whiteBody,-2) AND NOT
    Ref(smallBody,-1) AND Ref(whiteBody,-1) AND NOT
    smallBody AND whiteBody AND C>Ref(C,-1) AND Ref(C,-1)>Ref(C,-2) AND
    Ref(O,-1)>Ref(O,-2) AND Ref(O,-1)<Ref(C,-2) AND O<Ref(C,-1) AND
    O>Ref(O,-1) AND Ref(smallUpperShadow,-2) AND
    Ref(smallUpperShadow,-1) AND smallUppershadow AND LLV(L,12)==Ref(L,-2);

    /*Upside Gap Three Methods not very good*/
    upsideGapThreeMethods=Ref(Largebody,-2) AND Ref(whiteBody,-2) AND
    Ref(LargeBody,-1) AND Ref(whiteBody,-1) AND Ref(upGap,-1) AND
    blackBody AND O>Ref(O,-1) AND C<Ref(C,-2)AND C>Ref(O,-2) AND
    MHY;

    /*Three Line Strike not good signals*/
    threeLineStrike=NOT Ref(smallBody,-3) AND NOT Ref(smallBody,-2) AND
    NOT Ref(smallBody,-1) AND Ref(whiteBody,-3) AND Ref(whiteBody,-2) AND
    Ref(whiteBody,-1) AND Ref(C,-1)>Ref(C,-2) AND Ref(C,-2)>Ref(C,-3) AND
    blackBody AND O>Ref(C,-1) AND C<Ref(O,-3);

    /*Tweezer Bottom*/
    tweezerBottom= (abs(L-Ref(L,-1))/L<0.0025 OR
    abs(L-Ref(L,-2))/L<0.0025)
    AND (MLT OR MLY);

    /*Upside Tasuki Gap*/
    upsideTasukiGap=Ref(largeBody,-2) AND Ref(largeBody,1) AND
    Ref(whiteBody,-2) AND Ref(whiteBody,-1) AND Ref(upGap,-1) AND
    blackBody AND O>Ref(O,-1) AND C<Ref(O,-1) AND C>Ref(C,-2) AND
    identicalBodies AND O<Ref(C,-1);
    //AND HHV(H,5)==Ref(H,-1); Do not use this line


    /*****************************************
    BEARISH CANDLESTICKS
    ******************************************/

    /*Abandoned Baby Bearish*/
    AbandonedBabyBearish=Ref(LargeBody,-2) AND Ref(whiteBody,-2) AND
    Ref(smallBody,-1) AND Ref(GapUp(),-1) AND GapDown() AND
    NOT smallBody AND blackBody AND MHY;

    /*Advance Block Bearish*/
    AdvanceBlockBearish=Ref(LargeBody,-2) AND Ref(whiteBody,-2)
    AND Ref(whiteBody,-1) AND
    whiteBody AND Ref(O,-1)>Ref(O,-2) AND Ref(O,-1)<Ref(C,-2) AND
    Ref(C,-1)>Ref(C,-2) AND C>Ref(C,-1) AND
    O<Ref(C,-1) AND O>Ref(O,-1) AND Ref(LargeUpperShadow,-1) AND LargeUpperShadow
    AND C-O<Ref(C,-1)-Ref(O,-1) AND Ref(C,-1)-Ref(O,-1) < Ref(C,-2)-Ref(O,-2);

    /*Belt Hold Bearish*/
    beltHoldBearish=LargeBody AND BlackBody AND smalluppershadow AND MHT;

    /*Breakaway Bearish*/
    breakAwayBearish=Ref(LargeBody,-4) AND Ref(whiteBody,-4) AND
    Ref(GapUp(),-3) AND Ref(whiteBody,-3) AND
    Ref(smallbody,-2) AND Ref(smallBody,-1) AND
    blackBody AND O>Ref(O,-3) AND C<Ref(C,-4);

    /*Dark Cloud Cover*/
    darkCloudCover=Ref(LargeBody,-1) AND Ref(whiteBody,-1) AND
    blackBody AND O>Ref(H,-1) AND C>Ref(O,-1) AND C<(Ref(O,-1)+Ref(C,-1))/2
    AND MHT;

    /*Deliberation Bearish: needs confirmation*/
    deliberationBearish=Ref(LargeBody,-2) AND Ref(whiteBody,-2) AND
    Ref(LargeBody,-1) AND Ref(whiteBody,-1) AND Ref(C,-1)>Ref(C,-2) AND
    smallbody AND upGap;

    /*CounterAttackBearish*/
    CounterAttackBearish=MHT AND LargeBody AND blackbody AND
    Ref(largeBody,-1) AND Ref(whiteBody,-1) AND
    C<Ref(C,-1)*1.0025 AND C>Ref(C,-1)*0.9975;;

    /*Doji Star Bearish*/
    dojiStarBearish=(dojiStar AND (MHT OR MHY))OR
    (doji AND (C>Ref(C,-1) OR O>Ref(C,-1))AND Ref(whiteBody,-1)
    AND Ref(LargeBody,-1));

    /*Engulfing Bearish*/
    engulfingBearish=engulfing AND largeBody AND blackBody AND
    (Ref(whitebody,-1) OR Ref(Doji,-1))AND (MHT OR MHY);

    /*Evening Doji Star check formula???*/
    eveningDojiStar=Ref(LargeBody,-2) AND Ref(whiteBody,-2) AND
    Ref(dojiStar,-1) AND Ref(GapUp(),-1) AND (MHY OR MHT);

    /*Evening Star*/
    eveningStar=Ref(LargeBody,-2) AND Ref(whiteBody,-2) AND
    Ref(upGap,-1) AND NOT Ref(largeBody,-1) AND blackBody AND NOT smallBody AND
    (MHT OR MHY);

    /*Hammer Bearish*/
    HammerBearish=Hammer AND HHV(H,8)==H;

    /*hangingMan*/
    HangingMan=NOT largeBody AND smallUpperShadow AND LargeLowerShadow AND MHT;

    /*dragonfly Doji Bearish*/
    dragonflyDojiBearish=doji AND smallUpperShadow AND LargeLowerShadow AND MHT;

    /*Harami Bearish-*/
    HaramiBearish=harami AND Ref(Largebody,-1) AND Ref(whiteBody,-1)AND blackBody
    AND (MHY OR MHT);

    /*HaramiCross Bearish*/
    HaramiCrossBearish=harami AND doji AND Ref(whiteBody,-1) AND Ref(Largebody,-1);

    /*Identical three black crows*/
    idendicalThreeBlackCrows=Ref(blackBody,-2) AND Ref(blackBody,-1) AND blackBody AND
    abs(Ref(C,-2)-Ref(O,-1))<Ref(C,-1)*0.0025 AND abs(Ref(C,-1)-O)<O*0.0025 AND
    HHV(H,20)==Ref(H,-2) AND NOT Ref(doji,-2) AND NOT Ref(doji,-1) AND NOT doji AND
    Ref(smallLowerShadow,-2) AND Ref(smallLowerShadow,-1) AND smallLowerShadow;

    /*Kicking Bearish No trades*/
    kickingBearish=Ref(whiteBody,-1) AND Ref(MArabuzu,-1) AND blackBody AND MArabuzu AND GapDown();

    /*Meeting Lines Bearish*/
    MeetingLinesBearish=Ref(LargeBody,-1) AND Ref(whiteBody,-1) AND
    HHV(C,8)==Ref(C,-1) AND LargeBody AND blackBody AND
    abs(C-Ref(C,-1))<C*0.0025;

    /*ShootingStar*/
    shootingStarGap=shootingStar AND GapUp() AND MHT;

    /*Gravestone Doji*/
    gravestoneDoji=doji AND largeUpperShadow AND smallLowerShadow AND GapUp()AND MHT;

    /*Three Inside Down Bearish*/
    threeInsideDownBearish=Ref(HaramiBearish,-1) AND blackBody AND C<Ref(C,-1)AND smallUpperShadow;

    /*Three Outside Down Bearish*/
    threeoutsideDownBearish=Ref(engulfingBearish,-1) AND blackBody AND C<Ref(C,-1)AND
    NOT LargeUpperShadow;

    /*Tri Star Bearish*/
    triStarBearish=Ref(doji,-2) AND Ref(doji,-1) AND doji AND MHY AND Ref(upGap,-1)AND downGap;

    /*Two Crows Bearish*/
    twoCrows=Ref(whiteBody,-2) AND Ref(LargeBody,-2) //first day
    AND Ref(blackBody,-1) AND Ref(upGap,-1)//Second Day
    AND blackBody AND O<Ref(O,-1) AND O>Ref(C,-1)AND C<Ref(C,-2) AND
    C>Ref(O,-2) AND MHY;//Third day

    /*Upside Gap Two Crows*/
    upsideGapTwoCrows= Ref(whiteBody,-2) AND Ref(LargeBody,-2)// first day
    AND Ref(upGap,-1) AND Ref(blackBody,-1) // 2nd day
    AND blackbody AND O>Ref(O,-1) AND C<Ref(C,-1) AND C>Ref(C,-2);

    /*Doji Star Bearish needs confirmation
    dojiStarBearish=Ref(LargeBody,-1) AND Ref(whiteBody,-1) // first day
    AND doji AND upGap AND MHT;*/

    /* Downside Gap Three Methods*/
    downsideGapThreeMethods=
    Ref(LargeBody,-2) AND Ref(blackBody,-2) AND Ref(downGap,-2) //first day
    AND Ref(LargeBody,-1) AND Ref(blackBody,-1)//2nd day
    AND whitebody AND O<Ref(O,-1) AND C>Ref(C,-2)
    AND LLV(L,8)==Ref(L,-1);

    /*Downside Tasuki Gap*/
    downsideTasukiGap=
    Ref(blackBody,-2)//first day
    AND Ref(blackbody,-1) AND Ref(downgap,-1) //2nd day
    AND whiteBody AND O<Ref(O,-1) AND O>Ref(C,-1) AND C>Ref(O,-1) AND C<Ref(C,-2)
    AND Ref(identicalBodies,-1)
    AND LLV(L,15)==Ref(L,-1);


    /*Falling Three Meothods*/
    fallingThreeMethods=Ref(LargeBody,-4) AND Ref(blackBody,-4) AND
    /*Ref(doji,-3) AND Ref(doji,-2) AND Ref(doji,-1) AND*/ Ref(C,-1)>Ref(C,-2)
    AND Ref(C,-2)>Ref(C,-3) AND LargeBody AND blackBody AND O>Ref(C,-4) AND
    O<Ref(O,-4) AND C<Ref(O,-4)AND C<Ref(C,-4);

    /*In Neck Bearish not good*/
    inNeckBearish=Ref(LargeBody,-1) AND Ref(blackBody,-1) AND
    whiteBody AND O<Ref(L,-1) AND C<Ref(C,-1)*1.0005 AND C>=Ref(C,-1);

    /*On Neck Bearish not good*/
    OnNeckBearish=Ref(LargeBody,-1) AND Ref(blackBody,-1) AND
    whiteBody AND O<Ref(L,-1) AND C<Ref(L,-1)*1.0025 AND C>=Ref(L,-1)*0.9975;

    /*separating Lines Bearish*/
    separatingLinesBearish=Ref(LargeBody,-1) AND Ref(whiteBody,-1) AND
    blackBody AND O>Ref(O,-1)*0.9975 AND O<=Ref(O,-1)*1.0025;

    /*Side By Side White Lines Bearish*/
    sideBySideWhiteLinesBearish=NOT Ref(smallBody,-2) AND Ref(blackBody,-2) AND
    Ref(whiteBody,-1) AND whiteBody AND Ref(downGap,-1) AND identicalBodies
    AND abs(C-Ref(C,-1)<C*0.0025);

    /*Three Black Crows*/
    threeBlackCrows=Ref(blackBody,-2) AND Ref(blackBody,-1) AND blackBody AND Ref(C,-1)<Ref(C,-2) AND C<Ref(C,-1) AND HHV(H,8)==Ref(H,-2) AND NOT Ref(doji,-2) AND NOT Ref(doji,-1) AND NOT doji;;

    /*Three Line Strike no trades*/
    threeLineStrike=threeBlackCrows AND whiteBody AND O<Ref(C,-1) AND C>Ref(O,-3);

    /*Thrusting Bearish*/
    thrustingBearish=Ref(blackBody,-1) AND Ref(LargeBody,-1) AND LargeBody AND
    whitebody AND O<Ref(L,-1) AND C<(Ref(O,-1)+Ref(C,-1))/2 AND C>Ref(C,-1);

    /*Tweezer Top*/
    tweezerTop= (abs(H-Ref(H,-1))/H<0.0025 OR
    abs(H-Ref(H,-2))/H<0.0025)
    AND (MHT OR MHY);



    /* ***********************************************
    Buy Rules
    **************************************************/
    Buy=
    abandonedBabybullish OR
    beltHoldBullish OR
    breakAwayBullish OR
    ConcealingBabySwallow OR
    engulfingBullish OR
    hammerBullish OR
    dragonflyDoji OR
    dojiStarBullish OR
    haramiBullish OR
    HaramiCross OR
    homingPigeon OR
    invertedHammer OR
    meetingLinesbullish OR
    morningDojiStar OR
    morningStar OR
    piercingLine OR
    stickSandwich OR
    threeInsideUp OR
    threeOutsideUp OR
    threeStarsInTheSouth OR
    triStarBullish OR
    threeriverBottom OR
    MAtHoldBullish OR
    risingThreeMethods OR
    separatingLinesBullish OR
    sideBySideWhiteLines OR
    threeWhiteSoldiers OR
    upsideGapThreeMethods OR
    threeLineStrike OR
    tweezerBottom OR
    upsideTasukiGap;

    /************************************
    Sell Rules
    *************************************/
    Sell=
    AbandonedBabyBearish OR
    advanceBlockBearish OR
    beltHoldBearish OR
    breakAwayBearish OR
    darkCloudCover OR
    deliberationBearish OR
    CounterAttackBearish OR
    engulfingBearish OR
    eveningDojiStar OR
    eveningStar OR
    HangingMan OR
    dragonflyDojiBearish OR
    HammerBearish OR
    HaramiBearish OR
    HaramiCrossBearish OR
    idendicalThreeBlackCrows OR
    kickingBearish OR
    MeetingLinesBearish OR
    shootingStarGap OR
    gravestoneDoji OR
    threeInsideDownBearish OR
    threeoutsideDownBearish OR
    triStarBearish OR
    twoCrows OR
    upsideGapTwoCrows OR
    dojiStarBearish OR
    downsideGapThreeMethods OR
    downsideTasukiGap OR
    fallingThreeMethods OR
    inNeckBearish OR
    OnNeckBearish OR
    separatingLinesBearish OR
    sideBySideWhiteLinesBearish OR
    threeBlackCrows OR
    threeLineStrike OR
    thrustingBearish OR
    tweezerTop;


    /***************************************
    Commentary
    ***************************************
    Bullish Candles
    ****************************************/

    WriteIf(abandonedBabybullish,"Abandoned Baby Bullish. A reversal pattern.\nLiWick reliability : High.","");
    WriteIf(beltHoldBullish,"Belt Hold Bullish. A reversal pattern.\nNison:The larger the candlestick, the more significant it is.\nLitWick Reliability: Low.","");
    WriteIf(breakAwayBullish,"Break Away Bullish. A reversal pattern.\nLitWick reliability: moderate.","");
    WriteIf(ConcealingBabySwallow,"Concealing Baby Swallow. A reversal pattern.\n LitWick reliability: high.","");
    WriteIf(dojiStarBullish,"Bullish doji Star. A reversal pattern.\nNison: Needs confirmation. Better at calling tops.\nLitWick reliability: moderate.","");
    WriteIf(engulfingBullish,"Bullish Engulfing. a reversal pattern.\nNison: Factors increasing the pattern's effectiveness are\n1) The first day has a small real body and the second day has a large real body.\n2) Pattern appears after protracted or very fast move.\n3) Heavy volume on second real body.\n4) The second day engulfs more than one real body.\nLitWick reliability: moderate","");
    WriteIf(hammerBullish,"Bullish Hammer. A reversal pattern.\nNison: The longer the lower shadow, the smaller the upper shadow, and the smaller the real body, the more significant the pattern.White real body more bullish than black body.\nLitWick reliability: low.","");
    WriteIf(dragonflyDoji,"Dragonfly Doji. LitWick reliability: moderate.","");
    WriteIf(haramiBullish, "Harami Bullish. A reversal pattern.\nNison: Less significant. Pattern needs confirmation.\nLitWick reliability: low.","");
    WriteIf(HaramiCross,"Harami Cross. A reversal pattern.\nNison: Better indicator than Harami. Better at calling tops than bottoms.\nLitWick reliability: low.","");
    WriteIf(homingPigeon,"Homing Pigeon. A reversal pattern.\nLitWick reliability: moderate.","");
    WriteIf(invertedHammer,"Inverted Hammer. A reversal pattern.\nNison:Needs bullish verification.\nLitWick reliability: low.","");
    WriteIf(meetingLinesbullish,"Meeting Lines bullish. A reversal pattern.\nLitWick reliability: moderate.","");
    WriteIf(morningDojiStar,"Morning Doji Star. A reversal pattern.\nImportant reversal signal.\nLitWick reliability: high.","");
    WriteIf(morningStar,"Morning Star. A reversal pattern.\nNison: The stronger the white third body the better.\nLitWick reliability: high.","");
    WriteIf(piercingLine,"Piercing Line. A reversal pattern.\nNison: A stron reversal pattern.\nLitWick reliability: moderate.","");
    WriteIf(stickSandwich,"Stick Sandwich. A reversal pattern.\nLitWick reliability: moderate.","");
    WriteIf(threeInsideUp,"3 Inside Up. A reversal pattern.\nLitWick reliability: high.","");
    WriteIf(threeOutsideUp,"3 Outside Up. A reversal pattern.\nLitWick reliability: high.","");
    WriteIf(threeStarsInTheSouth,"3 Stars in the South. A reversal pattern.\nLitWick reliability: moderate.","");
    WriteIf(triStarBullish,"Tri-Star Bullish. A reversal pattern.\nNison: Significant reversal pattern.\nLitWick reliability: moderate.","");
    WriteIf(threeriverBottom,"3 River Bottom. A reversal pattern.\nNison: Selling pressure drying up.\nLit Wick reliability: moderate.","");
    WriteIf(MAtHoldBullish,"Mat Hold Bullish. A continuation pattern.\nNison: May have 2-4 black candles.\nLitWick reliability: high. ","");
    WriteIf(risingThreeMethods,"Rising Three Methods. A continuation pattern>\nNison: Has more significance if volume of white candle sticks is greater than on black candlesticks.\nLitWick reliability: high.","");
    WriteIf(separatingLinesBullish,"Separating Lines Bullish. A continuation pattern.\nNison: \nLitWick reliability: low.","");
    WriteIf(sideBySideWhiteLines,"Side by Side White Lines. A continuation pattern.\nNison: If occurring during a downtrend may only be short covering.\nLitWick reliability: high.","");
    WriteIf(threeWhiteSoldiers,"3 White Soldiers. A continuation pattern.\nNison: Positive, but be aware of negative similar stalled pattern and advance block pattern.\nLitWick reliability: high.","");
    WriteIf(upsideGapThreeMethods,"Upside Gap 3 Methods. A continuation pattern.\nLitWick reliability: moderate.","");
    WriteIf(threeLineStrike,"3 Line Strike. A continuation pattern.\nLitWick reliability: low.","");
    WriteIf(tweezerBottom,"Tweezer Bottom.a reversal pattern. With other reversal candles it could indicate a support level.\nNison: Needs confirmation.","");
    WriteIf(upsideTasukiGap,"Upside Tasuki Gap. A continuation pattern.\nNison: the real bodies of the two candlesticks in the gap should be about the same size.\nLitWick reliability: moderate.","");

    /***************************************
    Bearish Candles
    ********************************************/
    WriteIf(AbandonedBabyBearish,"Abandoned Baby Bearish. A reversal pattern.\nNison: Extremely rare.\nLitWick reliability: high.","");
    WriteIf(advanceBlockBearish,"Advancing Block Bearish. A reversal pattern.\nNison: Rally is in trouble. Signs of weakening could be progressively smaller white read bodies or relatibvely long upper shadows on the last two white candlesticks.Not necessarily a reversal pattern.\nLitWick Reliability: moderate.","");
    WriteIf(beltHoldBearish,"Belt Hold Bearish. A reversal pattern.\nNison: The longer the height of the belt-hold candle the more significant the pattern.\nLitWick reliability: low.","");
    WriteIf(breakAwayBearish,"Break Away Bearish. A reversal pattern.\nLitWick reliability: moderate.","");
    WriteIf(darkCloudCover,"Dark Cloud Cover. A reversal pattern.\nNison: Factors indicating the importance of this signal are/n1)The greater the penetration of the first candle by the second.\n2)Both candles are marabozus.\n3)The second body opens above a major resistance level.\n4)High volume on the second day.\nLitWick Reliability: high.","");
    WriteIf(deliberationBearish,"Deliberation Bearish. A reversal pattern.\nNison: Not a reversal pattern, but a sign the rally is weakening.\nLitWick reliability: moderate.","");
    WriteIf(CounterAttackBearish,"Counter Attack Bearish.\nNison: A potential stalling of the rally.","");
    WriteIf(engulfingBearish,"Engulfing Bearish. A reversal pattern.\nNison: Major reversal signal. Factors increasing patterns importance are\n1) The first day has a very small real body and the second day a very large real body.\n2) The pattern apears after a protracted or very fast move.\n3) Heavy volume on the second day.\n4) The second day engulfs more than one real body.\nLitWick reliability: moderate.","");
    WriteIf(eveningDojiStar,"Evening Doji Star A reversal pattern.\nNison: Must be confirmed by long black candle.\nLit Wick reliability: high","");
    WriteIf(eveningStar,"Evening Star. a reversal pattern.\nNison: Gap between second and third bodies does not always occur.\nLitWick reliability: high.","");
    WriteIf(HammerBearish,"Bearish Hammer. a reversal pattern.\nNison: More bearish if hammer is black. Needs bearish confirmation. A large gap down on the following day would be a good confirmation.","");
    WriteIf(HangingMan,"Hanging Man. A reversal pattern.\nNison: Same as bearish hammer with a large gap down the following day.\nLitWick reliability: low.","");
    WriteIf(dragonflyDojiBearish,"Dragonfly Bearish. A reversal pattern.\nNison: Same as Hanging Man.\nLitWick reliability: moderate.","");
    WriteIf(HaramiBearish,"Harami Bearish. A reversal pattern.\nNison: Not as significant a reversal pattern as hanging man or engulfing.\nLitWick reliability: low.","");
    WriteIf(HaramiCrossBearish,"Harami Cross Bearish. A reversal pattern.\nNison: More significant reversal pattern than Harami. Second day can be white or black.\nLitWick reliability: moderate.","");
    WriteIf(idendicalThreeBlackCrows,"Identical 3 Black Crows. A reversal pattern in an uptrend.\nNison:Very bearish.\nLitWick reliability: high. ","");
    WriteIf(kickingBearish,"Kicking Bearish. A reversal pattern.\nLitWick reliability: high.","");
    WriteIf(MeetingLinesBearish,"Meeting Lines Bearish. A reversal pattern.\nNison: \nLitWick reliability: moderate, but not as strong as Dark cloud Cover.","");
    WriteIf(shootingStarGap,"Shooting Star. a reversal pattern.\nNison:Not major reversal signal as evening star. Ideally real body would gap away from previous body. Needs to appear after an uptrend.\nLitWick reliability: low.","");
    WriteIf(gravestoneDoji,"Gravestone Doji A reversal pattern.\nNison: more significant if it hits new high.\nLitWick reliability: moderate.","");
    WriteIf(threeInsideDownBearish,"3 Inside Down. A reversal pattern.\nNison: \nLitWick reliability: high.","");
    WriteIf(threeoutsideDownBearish,"3 Outside Down. A reversal pattern.\nLitWick reliability: high.","");
    WriteIf(triStarBearish,"Tri-Star Bearish. A reversal pattern.\nNison: Very significant reversal pattern.\nLitWick reliability: moderate.","");
    WriteIf(twoCrows,"2 Crows A reversal pattern.\nLitWick reliability: moderate.","");
    WriteIf(upsideGapTwoCrows,"Upside Gap 2 Crows. A reversal pattern.\nNison:Needs confirmation of a continued reversal on third day.\nLitWick reliability: high.","");
    WriteIf(dojiStarBearish,"Doji Star Bearish. A reversal pattern.\nNison: needs confirmation.\nLitWick reliability: moderate.","");
    WriteIf(downsideGapThreeMethods,"Downside Gap 3 Methods. A continuation pattern.\nNison: \nLitWick reliability: moderate.","");
    WriteIf(downsideTasukiGap,"Downside Tasuki Gap. A continuation method.\NNison: If last day closes window, continuation pattern is negated.\nLitWick reliability: moderate.","");
    WriteIf(fallingThreeMethods,"Falling 3 Methods. A continuation pattern.\nNison: \nLitWick reliability: high.","");
    WriteIf(inNeckBearish,"In Neck Bearish. A continuatin pattern.\nNison: Similar to piercing pattern but bearish because there is no penetration of second day.\nLitWick reliability: moderate.","");
    WriteIf(OnNeckBearish,"On Neck Bearish. A continuation pattern. Similar to piercing pattern but bearish beccause there is no penetration of the second day.\nLitWick reliability: moderate.","");
    WriteIf(separatingLinesBearish,"Separating Lines Bearish","");
    WriteIf(sideBySideWhiteLinesBearish,"Side by Side White Lines Bearish. A continuation pattern.\nNison: very rare.\nLitWick reliability: moderate.","");
    WriteIf(threeBlackCrows,"3 Black Crows. A reversal pattern.\nNison: Need to appear after a mature advance.\nLitWick reliability: high.","");
    WriteIf(threeLineStrike,"3 Line Strike. A continuation pattern.\nLitWick reliability: low.","");
    WriteIf(thrustingBearish,"Thrusting. A continuation pattern.\nNison: Not a reversal day because second day does not pierce midpoint of first day.\nLitWick reliability: low.","");
    WriteIf(tweezerTop,"Tweezer Top. A reversal pattern.\nNison: Needs confirmation.","");

    /***********************************************
    End Commentary
    ************************************************/

    _SECTION_BEGIN("Dahl Oscillator TS modificato");
    /*Dahl Oscillator TS modificato (TEMA)

    */
    P=14;Q=34;R=9;AV=6;
    p = Optimize("Period",P,3,25,1);
    q = Optimize("Q ",Q,20,36,2);
    //r = Optimize("R lookback",R,5,25,1);
    Av = Optimize("S Average",AV,2,30,2);

    M=MA(C,q);
    Dahl = TEMA( ( M - Ref(M,-p)- LLV (M - Ref(M,-p),r) )/(HHV(M - Ref(M,-p),r)-(LLV(M - Ref(M,-p),r))),r)*100 ;

    Buy = Cover = Cross (dahl, MA(Dahl,av));
    Short = Sell = Cross (MA(Dahl,av), dahl);


    GraphXSpace=2;
    Plot(Dahl,"Dahl",4,4);
    Plot(MA(Dahl,av),"Avg",7,4);
    //===========================end Dahl oscillator
    _SECTION_END();
    وهذه مجموعة معادلات تصلح للايمي
    http://trader.online.pl/MSZ/e-w-Dahl_Oscillator.html

    لا تقولوا ما نعرف نضيفها على الميتا

    كل الود
     
  2. lopa

    lopa عضو جديد

    التسجيل:
    ‏8 يونيو 2004
    المشاركات:
    326
    عدد الإعجابات:
    0
    مكان الإقامة:
    جده
    الي عايز توضيح اكثر رح ارجع بعد العشاء الليله ان شاءلله


    المشكله كود الريبون عاجبني اكثر الي مع ابو صيل ما قدرت اوصله بس رح اكشفه قريب

    وجزاك الله خير بو اصيل
     
  3. عالم الابداع

    عالم الابداع عضو محترف - مشرف القسم السعودي مشرف

    التسجيل:
    ‏31 ديسمبر 2005
    المشاركات:
    2,379
    عدد الإعجابات:
    9
    مكان الإقامة:
    SAUDI ARABIA
    الله يعطيك العافيه انتي وابو اصيل
    ونحتاج تعقيب وشرح للموضوع:)
     
  4. MSAHMM

    MSAHMM عضو جديد

    التسجيل:
    ‏1 نوفمبر 2006
    المشاركات:
    81
    عدد الإعجابات:
    0
    مكان الإقامة:
    سبحان الله وبحمده سبحان الله العظيم
    السلام عليكم

    كأن المعادلة طويلة شوي اخوي lopa مع ان المعادلة عندي اقصر بكثير

    هذي المعادلة :) طبعآ على الأيمي بروكر :)

    وجربها يمكن فيه أختلاف

    تحياتي ياغالي

    :)

    [​IMG]


    كود:
    _SECTION_BEGIN("CE?C???");
    /*Dahl Oscillator TS modificato (TEMA)
    
    */ 
    P=14;Q=34;R=9;AV=6;
    p = Optimize("Period",P,3,25,1); 
    q = Optimize("Q ",Q,20,36,2); 
    //r = Optimize("R lookback",R,5,25,1); 
    Av = Optimize("S Average",AV,2,30,2); 
    
    M=MA(C,q);
    Dahl = TEMA( ( M - Ref(M,-p)- LLV (M - Ref(M,-p),r) )/(HHV(M - Ref(M,-p),r)-(LLV(M - Ref(M,-p),r))),r)*100 ;
    
    Buy = Cover = Cross (dahl, MA(Dahl,av));
    Short = Sell = Cross (MA(Dahl,av), dahl);
    
    
    GraphXSpace=2;
    Plot(Dahl,"Dahl",4,4); 
    Plot(MA(Dahl,av),"Avg",7,4); 
    //===========================end Dahl oscillator
    _SECTION_END(); 
     
  5. lopa

    lopa عضو جديد

    التسجيل:
    ‏8 يونيو 2004
    المشاركات:
    326
    عدد الإعجابات:
    0
    مكان الإقامة:
    جده
    /*Dahl Oscillator TS modificato (TEMA)

    */
    P=14;Q=34;R=9;AV=6;
    p = Optimize("Period",P,3,25,1);
    q = Optimize("Q ",Q,20,36,2);
    //r = Optimize("R lookback",R,5,25,1);
    Av = Optimize("S Average",AV,2,30,2);

    M=MA(C,q);
    Dahl = TEMA( ( M - Ref(M,-p)- LLV (M - Ref(M,-p),r) )/(HHV(M - Ref(M,-p),r)-(LLV(M - Ref(M,-p),r))),r)*100 ;

    Buy = Cover = Cross (dahl, MA(Dahl,av));
    Short = Sell = Cross (MA(Dahl,av), dahl);


    GraphXSpace=2;
    Plot(Dahl,"Dahl",4,4);
    Plot(MA(Dahl,av),"Avg",7,4);
    //===========================

    هذه هيه بالزبط؟

    ماتشتغلش المعادله اخي

    http://www.amibroker.com/library/list.php

    وهذا موقع الايمي وكل المعادلات به بعضها مطور
     
  6. MSAHMM

    MSAHMM عضو جديد

    التسجيل:
    ‏1 نوفمبر 2006
    المشاركات:
    81
    عدد الإعجابات:
    0
    مكان الإقامة:
    سبحان الله وبحمده سبحان الله العظيم
    غريبة المعادلة ماتشتغل معاك

    النسخه اللي عندي اخر اصدار وتمام طبعآ اقصد ايمي بروكر

    تحياتي ياغالي

    :)
     
  7. atlas-x1

    atlas-x1 عضو نشط

    التسجيل:
    ‏9 فبراير 2006
    المشاركات:
    120
    عدد الإعجابات:
    0
    بارك الله فيكم اجمعين
    وهذا هوا المؤشر الثانى( ribbon )
    رابط تحميل للملف
    http://upload.9q9q.net/file/VTtHGgLLj/ribbon-------.rar.html
    رابط ثانى

    http://upload.9q9q.net/file/YWwsrQoOL/ribbon-------.txt.html

    أو نسخ المعادله من هنا مباشره


    _SECTION_BEGIN("Elder Impulse Indicator");
    //------------------------------------------------------------------------------
    //
    // Formula Name: Elder Impulse Indicator
    // Author/Uploader: Lal
    // E-mail:
    // Date/Time Added: 2005-10-28 18:01:49
    // Origin: Elder's CIMTR
    // Keywords: Elder, Impulse
    // Level: medium
    // Flags: indicator
    // Formula URL: http://www.amibroker.com/library/formula.php?id=570
    // Details URL: http://www.amibroker.com/library/detail.php?id=570
    //
    //------------------------------------------------------------------------------
    //
    // Detects an "impulse" in price and plots up/down arrows accordingly along
    // with Close bars.
    //
    //------------------------------------------------------------------------------

    /**************************************************************************
    Name : Elder Impulse Indicator
    Coded by : Lal
    Date : 28.10.2005
    Note : Please refer to Elder's "Come Into my Trading Room"
    for full details
    ******************************************************************************/


    // User-defined parameter for EMA periods
    EMA_prds = Param("EMA_periods", 12, 1, 30, 1);


    // Compute EMA and MACD Histogram
    DayEMA = EMA(Close, EMA_prds);
    Histogram = MACD() - Signal();

    // Determine if we have an Impulse UP, DOWN or None
    Impulse_Up = DayEMA > Ref(DayEMA, -1) AND Histogram > Ref(Histogram, -1);
    Impulse_Down = DayEMA < Ref(DayEMA, -1) AND Histogram < Ref(Histogram, -1);
    Impulse_None = (NOT Impulse_UP) AND (NOT Impulse_Down);

    // Compute Weekly MACD and determine whether rising or falling
    // Note: uses "non-standard" parameters!
    TimeFrameSet(inWeekly);
    MACD_val = MACD(5, 8);
    Signal_val = Signal(5, 8, 5);
    Hist_in_w = MACD_val - Signal_val;

    wh_rising = Hist_in_w > Ref(Hist_in_w, -1);
    wh_falling = Hist_in_w < Ref(Hist_in_w, -1);

    TimeFrameRestore();

    // Now get Monthly MACD Histogram....
    TimeFrameSet(inMonthly);
    MACD_val = MACD(5, 8);
    Signal_val = Signal(5, 8, 5);
    Hist_in_m = MACD_val - Signal_val;

    mh_rising = Hist_in_m > Ref(Hist_in_m, -1);
    mh_falling = Hist_in_m < Ref(Hist_in_m, -1);

    TimeFrameRestore();

    wh_rising = TimeFrameExpand( wh_rising, inWeekly );
    wh_falling = TimeFrameExpand( wh_falling, inWeekly );
    mh_rising = TimeFrameExpand(mh_rising, inMonthly);
    mh_falling = TimeFrameExpand(mh_falling, inMonthly);

    kol = IIf( wh_rising, colorGreen, IIf(wh_falling, colorRed, colorLightGrey));
    mkol = IIf( mh_rising, colorBlue, IIf(mh_falling, colorYellow, colorLightGrey));

    // Plot them all!
    Plot(Close, "Close", colorTeal, styleBar);
    PlotShapes(shapeUpArrow * Impulse_Up, colorBlue, 0, Low, -12);
    PlotShapes(shapeDownArrow * Impulse_Down, colorRed, 0, High, -12);
    PlotShapes(shapeSmallCircle * Impulse_None, colorWhite, 0, High, 5);
    Plot(10, "ribbon", kol, styleOwnScale|styleArea|styleNoLabel, -12, 156); // Weekly trend
    Plot(10, "ribbon", mkol, styleOwnScale|styleArea|styleNoLabel, -0.5, 150); // Monthly Trend
    _SECTION_END();
     
  8. lopa

    lopa عضو جديد

    التسجيل:
    ‏8 يونيو 2004
    المشاركات:
    326
    عدد الإعجابات:
    0
    مكان الإقامة:
    جده
    [​IMG]

    هذا السهم دخلت فيه قبل الاغلاق

    انقسم العلماء محرميين ومحللين ولكن سمعت العوده يحلل المضاربه بالجميع عدا البنوك
    الابحاث معودنا على مفاجئات معاكسه
    شكرا عل الكود
    انا من النوع الذي يبحث عن المعلومه بقوه وشكرا لك لا ختصار الطريق

    دمت م بود
     
  9. fares_al_qlooob

    fares_al_qlooob عضو جديد

    التسجيل:
    ‏20 مارس 2007
    المشاركات:
    170
    عدد الإعجابات:
    0
    ممكن اعرف اذا تكرمتو با التفصيل كيف اسويها فى الايمى بروكر

    السلام عليكم
    واسعد الله او قاتكم وجزاكم الله خير على جهودكم

    ممكن اعرف اذا تكرمتو با التفصيل كيف اسويها فى الايمى بروكر واين اضع المعادله ومن اين واتمنى من البدايه حتى النهايه الشرح وربى يغفر لكم ووالديكم

    شاكر لكم مسبقا طيب تعاونكم
     
  10. abooyaser

    abooyaser عضو محترف - مشرف القسم السعودي

    التسجيل:
    ‏24 مايو 2004
    المشاركات:
    3,425
    عدد الإعجابات:
    0
    نفس السؤال


    مع الشكر مقدمااااا
     
  11. STOCK_O

    STOCK_O عضو محترف

    التسجيل:
    ‏16 مارس 2007
    المشاركات:
    844
    عدد الإعجابات:
    0
    لو تكرمت حط المعادله في ملف تكست وارفقه على المنتدى للميتاستوك

    وشكرااا
     
  12. lopa

    lopa عضو جديد

    التسجيل:
    ‏8 يونيو 2004
    المشاركات:
    326
    عدد الإعجابات:
    0
    مكان الإقامة:
    جده
  13. lopa

    lopa عضو جديد

    التسجيل:
    ‏8 يونيو 2004
    المشاركات:
    326
    عدد الإعجابات:
    0
    مكان الإقامة:
    جده
    هذا اقصى ماعندي وسامحوني
    الجهاز انقليزي والبرنامج انقليزي والشرح مشي الحال


    هناك اكثر من طريقه
    بس هذه طريقه محترمه
     
  14. lopa

    lopa عضو جديد

    التسجيل:
    ‏8 يونيو 2004
    المشاركات:
    326
    عدد الإعجابات:
    0
    مكان الإقامة:
    جده
    بصراح اطول صفحه بالعالم

    ما ناقص الا محكمة التمييز تميزه ويصبح صك شرعي

    عادة اضيف اكواد من عندى فيه واحد عملته بالمتوسطات بس سوقنا ماله قانون زمني
    من شان نوزن الفتره الزمنيه بس نجح مع بعض الاسهم الغثيثه
     
  15. سلمى عنيزة

    سلمى عنيزة عضو جديد

    التسجيل:
    ‏3 ابريل 2007
    المشاركات:
    243
    عدد الإعجابات:
    0
    أخي المعادلات في اول موضوع لك كثيرة ياريت تفصلها مع ارفاق الصور لها
    مؤشر داهلز يعمل ولله الحمد الآن...
     
  16. atlas-x1

    atlas-x1 عضو نشط

    التسجيل:
    ‏9 فبراير 2006
    المشاركات:
    120
    عدد الإعجابات:
    0
    هنا معادلة مؤشر داهل





    _SECTION_BEGIN("Dahl Oscillator modified");
    //------------------------------------------------------------------------------
    //
    // Formula Name: Dahl Oscillator modified
    // Author/Uploader: Hans
    // E-mail:
    // Date/Time Added: 2004-09-18 03:24:24
    // Origin:
    // Keywords: Dahl Oscillator
    // Level: basic
    // Flags: system,indicator
    // Formula URL: http://www.amibroker.com/library/formula.php?id=380
    // Details URL: http://www.amibroker.com/library/detail.php?id=380
    //
    //------------------------------------------------------------------------------
    //
    // Modified formula from original DAHL(55) with 14 simple average. Used TEMA
    // instead of simple MA, added parameters and optimization. Good also for
    // trading system (as indicator to be used with 10 and 90 levels also)..
    //
    //------------------------------------------------------------------------------

    /*Dahl Oscillator TS modificato (TEMA)

    */
    P=14;Q=34;R=9;AV=6;
    p = Optimize("Period",P,3,25,1);
    q = Optimize("Q ",Q,20,36,2);
    //r = Optimize("R lookback",R,5,25,1);
    Av = Optimize("S Average",AV,2,30,2);

    M=MA(C,q);
    Dahl = TEMA( ( M - Ref(M,-p)- LLV (M - Ref(M,-p),r) )/(HHV(M - Ref(M,-p),r)-(LLV(M - Ref(M,-p),r))),r)*100 ;

    Buy = Cover = Cross (dahl, MA(Dahl,av));
    Short = Sell = Cross (MA(Dahl,av), dahl);


    GraphXSpace=2;
    Plot(Dahl,"Dahl",4,4);
    Plot(MA(Dahl,av),"Avg",7,4);
    //===========================end Dahl oscillator
    _SECTION_END();
     
  17. atlas-x1

    atlas-x1 عضو نشط

    التسجيل:
    ‏9 فبراير 2006
    المشاركات:
    120
    عدد الإعجابات:
    0
    وهنا معادلة مؤشر ribbon



    _SECTION_BEGIN("Elder Impulse Indicator");
    //------------------------------------------------------------------------------
    //
    // Formula Name: Elder Impulse Indicator
    // Author/Uploader: Lal
    // E-mail:
    // Date/Time Added: 2005-10-28 18:01:49
    // Origin: Elder's CIMTR
    // Keywords: Elder, Impulse
    // Level: medium
    // Flags: indicator
    // Formula URL: http://www.amibroker.com/library/formula.php?id=570
    // Details URL: http://www.amibroker.com/library/detail.php?id=570
    //
    //------------------------------------------------------------------------------
    //
    // Detects an "impulse" in price and plots up/down arrows accordingly along
    // with Close bars.
    //
    //------------------------------------------------------------------------------

    /************************************************** ************************
    Name : Elder Impulse Indicator
    Coded by : Lal
    Date : 28.10.2005
    Note : Please refer to Elder's "Come Into my Trading Room"
    for full details
    ************************************************** ****************************/


    // User-defined parameter for EMA periods
    EMA_prds = Param("EMA_periods", 12, 1, 30, 1);


    // Compute EMA and MACD Histogram
    DayEMA = EMA(Close, EMA_prds);
    Histogram = MACD() - Signal();

    // Determine if we have an Impulse UP, DOWN or None
    Impulse_Up = DayEMA > Ref(DayEMA, -1) AND Histogram > Ref(Histogram, -1);
    Impulse_Down = DayEMA < Ref(DayEMA, -1) AND Histogram < Ref(Histogram, -1);
    Impulse_None = (NOT Impulse_UP) AND (NOT Impulse_Down);

    // Compute Weekly MACD and determine whether rising or falling
    // Note: uses "non-standard" parameters!
    TimeFrameSet(inWeekly);
    MACD_val = MACD(5, 8);
    Signal_val = Signal(5, 8, 5);
    Hist_in_w = MACD_val - Signal_val;

    wh_rising = Hist_in_w > Ref(Hist_in_w, -1);
    wh_falling = Hist_in_w < Ref(Hist_in_w, -1);

    TimeFrameRestore();

    // Now get Monthly MACD Histogram....
    TimeFrameSet(inMonthly);
    MACD_val = MACD(5, 8);
    Signal_val = Signal(5, 8, 5);
    Hist_in_m = MACD_val - Signal_val;

    mh_rising = Hist_in_m > Ref(Hist_in_m, -1);
    mh_falling = Hist_in_m < Ref(Hist_in_m, -1);

    TimeFrameRestore();

    wh_rising = TimeFrameExpand( wh_rising, inWeekly );
    wh_falling = TimeFrameExpand( wh_falling, inWeekly );
    mh_rising = TimeFrameExpand(mh_rising, inMonthly);
    mh_falling = TimeFrameExpand(mh_falling, inMonthly);

    kol = IIf( wh_rising, colorGreen, IIf(wh_falling, colorRed, colorLightGrey));
    mkol = IIf( mh_rising, colorBlue, IIf(mh_falling, colorYellow, colorLightGrey));

    // Plot them all!
    Plot(Close, "Close", colorTeal, styleBar);
    PlotShapes(shapeUpArrow * Impulse_Up, colorBlue, 0, Low, -12);
    PlotShapes(shapeDownArrow * Impulse_Down, colorRed, 0, High, -12);
    PlotShapes(shapeSmallCircle * Impulse_None, colorWhite, 0, High, 5);
    Plot(10, "ribbon", kol, styleOwnScale|styleArea|styleNoLabel, -12, 156); // Weekly trend
    Plot(10, "ribbon", mkol, styleOwnScale|styleArea|styleNoLabel, -0.5, 150); // Monthly Trend
    _SECTION_END();
    __________________
     
  18. سلمى عنيزة

    سلمى عنيزة عضو جديد

    التسجيل:
    ‏3 ابريل 2007
    المشاركات:
    243
    عدد الإعجابات:
    0
    أشكرك جزيل الشكر
    لكن الغريب ان المعادلات طويلة مقارنة بغيرها من المعادلات التي توضع في الايمي بروكر
     
  19. fares_al_qlooob

    fares_al_qlooob عضو جديد

    التسجيل:
    ‏20 مارس 2007
    المشاركات:
    170
    عدد الإعجابات:
    0
    الله يجزززززززززززززززززززاك خير

    وشاكر لك والحمد لله تم على الايمى بروكر

    تقبل تحياتى اخى الكريم
    والشكر موصل للجميع
     
  20. MSAHMM

    MSAHMM عضو جديد

    التسجيل:
    ‏1 نوفمبر 2006
    المشاركات:
    81
    عدد الإعجابات:
    0
    مكان الإقامة:
    سبحان الله وبحمده سبحان الله العظيم
    وهذا ايضآ مؤشر حلو يعطيكم الخروج والدخول

    ينفع على التاريخي واللحظي جربوه

    :)

    والشكر لكل من شارك ونفع أخوانه

    بارك الله فيكم جميعآ


    [​IMG]



    كود:
    /***************************************/
    /* Hull Moving Average version 1.0 */
    /* by Avi b a */
    /* The Hull Moving Average solves the age 
    old dilemma of making a moving average more 
    responsive to current price activity whilst maintaining curve smoothness...
    read more at- http://www.ensignsoftware.com/tips/tradingtips72.htm */
    /***************************************/
    
    SetChartBkColor(16);
    
    Period = Param("Period",26,1,100,1);
    Hull = WMA( 2*WMA(C,int(Period/2))- WMA(C,Period),int(sqrt(Period)));
    
    Plot(C,"close",6,128);
    
    for( i = 1 ; i < BarCount-2; i++ ) 
    {
    if (hull[i] <hull[i-1] && hull[i] <hull[i+1])
    Lpml[i]=1; 
    else
    Lpml[i] =0;
    
    if (hull[i] >hull[i-1] && hull[i] >hull[i+1])
    Lpmh[i]=1;
    else
    Lpmh[i] =0;
    }
    
    GR =ExRem(LpmH,Lpmh);
    RD =ExRem(Lpml,Lpml);
    
    PlotShapes(IIf(GR!=0,shapeSmallCircle,shapeNone),colorRed,0,hull,0);
    PlotShapes(IIf(RD!=0,shapeSmallCircle,shapeNone),colorGreen,0,hull,0);
    Plot(Hull,"Hull "+Period+" days",2,1);



    اللي يبي شرح للأيمي عن اي شي لا يستحي يسال وأن شاء الله يلقى الجواب :D



    :)