Jump to content

hrdforex

Members
  • Posts

    82
  • Joined

  • Last visited

Posts posted by hrdforex

  1. Re: TOO GOOD TO BE TRUE???, PLEASE HELP EDUCATE non scalper!!!

     

    I agree with ryas.

    induk.mq4 find the maximum and minimum value in history by this statement at ine 66 & 67

    li_16 = ArrayMaximum(gda_96, 2 * li_4, MathMax(gi_84 - li_4, 0));

    li_20 = ArrayMinimum(gda_100, li_4 * 2, MathMax(gi_84 - li_4, 0));

    Then this value is used for buy and sell signal.

     

    The EA will buy at lowest price and sell at highest price on history.

  2. Re: [req] caspian EA - debuged dragonpips

     

    mario1986, Caspianfactor is : Averaging period for calculation

     

    Search caspianfactor at line 171

    l_period_12 = 10.0 * NormalizeDouble(CaspianFactor, 1);

    ld_16 = iATR(Symbol(), PERIOD_D1, 5, 0) / g_point_256;

    ld_24 = iATR(Symbol(), 0, l_period_12, 0) / g_point_256;

     

    move the cursor to NormalizeDouble, then press F1, then show:

     

    double NormalizeDouble( double value, int digits)

    Rounds the floating point value to the given precision. Returns normalized value of the double type.

    The calculated StopLoss and TakeProfit values, as well as open price of pending orders must be normalized with a precision the value of which is stored in the pre-defined variable of Digits.

    Parameters:

    value - Floating point value.

    digits - Precision format, number of digits after decimal point (0-8).

     

    Sample:

    double var1=0.123456789;

    Print(DoubleToStr(NormalizeDouble(var1,5),8));

    // output: 0.12346000

     

     

    So. NormalizeDouble(3,1) is 3.

    =)) =)) =))

     

    You can find info for iATR with F1

×
×
  • Create New...