Buy and sell above or below levels not functioning by using icustom

 
For me to buy into oversold and overbought sell, on the RSI indicator would do look something like this

double GetRsi(int tf, int period, int ap, int shift)
{
   return(iRSI(NULL, tf, period, ap, shift) );
}//End double GetRsi(int tf, int period, int ap, int shift)

//////////////////////////////////////////////////////////////////////////////////////

      RsiTrend = ranging;
      TrendRsiVal = GetRsi(RsiTdTf, RsiTdPeriod, RsiTdAppliedPrice, 0);
      if (RsiDown < 80) RsiTrend = up;
      if (RsiUp > 20) RsiTrend = down;

He would buy and sell at level 20 at level 80

More When I use icustom using another indicator does not work, what be wrong that does not work by using icustom?

 
Carioca:
For me to buy into oversold and overbought sell, on the RSI indicator would do look something like this

He would buy and sell at level 20 at level 80

More When I use icustom using another indicator does not work, what be wrong that does not work by using icustom?

your coding might be wrong

show your indicator and how you use iCustom to get the values

 
deVries:

your coding might be wrong

show your indicator and how you use iCustom to get the values


I managed to run the error was elsewhere so now he is> = 0.5 and buy <= -0.5 sell more when it hits the TP and he is above the 0.5 level again as it buys him I do not buy and sell only in crossing the line with the level indicator.


If someone can help me thank you very much



 
  1. There are no mind readers here. Do you really expect any answer when you do not post any of your code?
  2. Detailed explanation of iCustom - MQL4 forum
Reason: