Elite indicators :) - page 1440

 
fabiogeraci:

int IndiPeriod = 20;
int AveType = ma_ema; //from post in page 861
bool dSmoothed = false;

double tUPlevel = 0.05;
double tDownl = -0.05;
double Slen = 0;
double Sphase = 0;
bool color = false;
bool alert= false;
bool alertBar= false;
bool alertMsg= false;
bool alertSound= false;
bool alertEmail= false;
bool alertPush= false;
int interpMethod = 0; // for no interpolation

String TrendDirForce = "Trend direction and force index - smoother 4_4";

tdfValue = iCustom(Symbol(),Period(),TrendDirForce,PERIOD_M15,IndiPeriod,AveType,dSmoothed,PriceType,tUPlevel,tDownl,Slen,Sphase,color,alert,alertBar,alertMsg,alertSound,alertEmail,alertPush,interpMethod,0,1);

Use it like this :

   double tdfValue = iCustom(_Symbol,PERIOD_M15,TrendDirForce,0,IndiPeriod,AveType,dSmoothed,PriceType,tUPlevel,tDownl,Slen,Sphase,tcolor,alert,alertBar,alertMsg,alertSound,alertEmail,alertPush,interpMethod,0,1);
PS: your "color" variable can not have that name, I assumed that PriceType is correct (used 0 for testing) and TrendDirForce name is wrong (it should be "smoothed" not "smoother")
 
mladen:

Use it like this :

   double tdfValue = iCustom(_Symbol,PERIOD_M15,TrendDirForce,0,IndiPeriod,AveType,dSmoothed,PriceType,tUPlevel,tDownl,Slen,Sphase,tcolor,alert,alertBar,alertMsg,alertSound,alertEmail,alertPush,interpMethod,0,1);
PS: your "color" variable can not have that name, I assumed that PriceType is correct (used 0 for testing) and TrendDirForce name is wrong (it should be "smoothed" not "smoother")
No Luck, how would i go about to code the basic buffer into a double into my EA?
 
fabiogeraci:
No Luck, how would i go about to code the basic buffer into a double into my EA?

Sorry, but what does the luck have to do with it?

If you use the code I posted, there is no "too slow" message (tested and retested on every symbol I have and all is working exactly as it should). Here is the code I used for testing (the only thing I changed is to access buffer 7 not buffer 0, since in buffer 7 is the state of the "trend", while in buffer 0 you have the upper trigger value) and this code did not cause and error message (attaching the file too, just in case)

#property indicator_chart_window

enum enMaTypes
{
   ma_adxvma,  // Adx vma
   ma_ahr,     // Ahrens moving average
   ma_alxma,   // Alexander moving average - ALXMA
   ma_dema,    // Double exponential moving average - DEMA
   ma_dsema,   // Double smoothed exponential moving average - DSEMA
   ma_emas,    // Ema derivative - EMAD
   ma_ema,     // Exponential moving average - EMA
   ma_hull,    // Hull moving average - HMA
   ma_ie2,     // IE/2
   ma_ilinr,   // Integral of linear regression slope
   ma_itl,     // Instantaneous trendline
   ma_lagg,    // Laguerre filter
   ma_lead,    // Leader exponential moving average
   ma_linr,    // Linear regression value - LSMA
   ma_lwma,    // Linear weighted moving average - LWMA
   ma_mcg,     // McGinley Dynamic
   ma_mcma,    // McNicholl ema
   ma_nlma,    // Non lag moving average
   ma_pwma,    // Parabolic weighted moving average - PWMA
   ma_rmta,    // Recursive moving trendline - RMTA
   ma_sma,     // Simple moving average - SMA
   ma_sine,    // Sine weighted moving average
   ma_smma,    // Smoothed moving average - SMMA
   ma_smoo,    // Smoother
   ma_ssm,     // Super smoother
   ma_b3p,     // Three pole Ehlers Butterworth
   ma_s3p,     // Three pole Ehlers smoother
   ma_tma,     // Triangular moving average - TMA
   ma_tema,    // Tripple exponential moving average - TEMA
   ma_b2p,     // Two pole Ehlers Butterworth
   ma_s2p,     // Two pole Ehlers smoother
   ma_vema,    // Volume weighted ema - VEMA
   ma_vwma,    // Volume weighted moving average - VWMA
   ma_zldema,  // Zero lag dema
   ma_zlma,    // Zero lag moving average
   ma_zltema   // Zero lag tema
};

int IndiPeriod = 20;
int AveType = ma_ema; //from post in page 861
bool dSmoothed = false;

double tUPlevel = 0.05;
double tDownl = -0.05;
double Slen = 0;
double Sphase = 0;
bool tcolor = false;
bool alert= false;
bool alertBar= false;
bool alertMsg= false;
bool alertSound= false;
bool alertEmail= false;
bool alertPush= false;
int interpMethod = 0; // for no interpolation

string TrendDirForce = "Trend direction and force index - smoothed 4_4";

int init()   { return(0); }
int deinit() { return(0); }
int start()
{
   int PriceType=0;
      double tdfValue = iCustom(_Symbol,PERIOD_M15,TrendDirForce,0,IndiPeriod,AveType,dSmoothed,PriceType,tUPlevel,tDownl,Slen,Sphase,tcolor,alert,alertBar,alertMsg,alertSound,alertEmail,alertPush,interpMethod,7,1);
      Comment(tdfValue);
   return(0);
}
Files:
_test.mq4  3 kb
 
Same thing done as an expert - same results - no error message
Files:
_test.mq4  3 kb
 
Thank you for the help, I have tried your code and yes it does work, but when i use the same call in EA i get that warning
 
fabiogeraci:
Thank you for the help, I have tried your code and yes it does work, but when i use the same call in EA i get that warning

Then the error is in your EA, since the first post is an indicator, the second is an EA and I have no warning at all (regardless which one I use)

Please re-check your EA

 

Mladen,

Is it possible to have atr slope for EA indicator?

 

 

cougar68:

Mladen,

Is it possible to have atr slope for ea indicator?

Thank you. (Maybe using "ATR ratio" indicator filtering out slope down and below a certain adjustable level.)

 
mladen:

Then the error is in your EA, since the first post is an indicator, the second is an EA and I have no warning at all (regardless which one I use)

Please re-check your EA

I will, but it is very simple:
HH/LL + TDF to get the entries
when profit is >= 10$ it close all
 

dear mladen and to whom it may concern,

do you have an price action arrow indicator? can you please share.thank you 

 
Can someone post please the latest version of "ema variation" indi? Does it have also alert function?
Reason: