Re: Simple Expert Advisors (EA's) for MT4

61
mladen wrote: Fri Apr 28, 2017 9:31 pm Check this (made by Vladimir Khlystov )
Thanks Mladen,

I translate code with Google. There is 6 option (ATR,Fractal,MA,Parabolic,%) for trailing. I didn't understand the last of them .

Is this constant pips ? Sorry for Non Ascii codes.

Code: Select all

extern int     delta=0;     // îòñòóï îò ğàñ÷åòíîãî óğîâíÿ ñòîïëîññà

Code: Select all

   default: // ïî ïóíêòàì
         if(tip==POSITION_TYPE_BUY)
           {
            prc=NormalizeDouble(price-delta*_Point,_Digits);
            StringConcatenate(txt,"SL Buy pips ",DoubleToString(prc,_Digits));
           }
         if(tip==POSITION_TYPE_SELL)
           {
            prc=NormalizeDouble(price+delta*_Point,_Digits);
            StringConcatenate(txt,"SL Sell pips ",DoubleToString(prc,_Digits));
           }
         break;
     }


Re: Simple Expert Advisors (EA's) for MT4

62
tradd wrote: Tue May 02, 2017 6:26 pm Thanks Mladen,

I translate code with Google. There is 6 option (ATR,Fractal,MA,Parabolic,%) for trailing. I didn't understand the last of them .

Is this constant pips ? Sorry for Non Ascii codes.

Code: Select all

extern int     delta=0;     // îòñòóï îò ğàñ÷åòíîãî óğîâíÿ ñòîïëîññà

Code: Select all

   default: // ïî ïóíêòàì
         if(tip==POSITION_TYPE_BUY)
           {
            prc=NormalizeDouble(price-delta*_Point,_Digits);
            StringConcatenate(txt,"SL Buy pips ",DoubleToString(prc,_Digits));
           }
         if(tip==POSITION_TYPE_SELL)
           {
            prc=NormalizeDouble(price+delta*_Point,_Digits);
            StringConcatenate(txt,"SL Sell pips ",DoubleToString(prc,_Digits));
           }
         break;
     }
tradd

The way it is written, those ar points not pips




Who is online

Users browsing this forum: Abdi, felixo, friend4you, kvak, ssscary, WhatsApp [Bot], Xxcoincoin and 95 guests