Info Implementing QQE indicator in EA

 
Hi,

Can someone help me how I use value 1 and value 2 from QQE indicator in an ea with iCustom?
I want to use it as exit trade in ea.
V1=value1 and V2=value2 , the P= previous candle because I want to make a crossover of value1 and value 2

Did is what I did:

 double TrLevelSlow;
 double RsiMa;
 
 double V1 = iCustom (_Symbol, _Period, QQE_Indicator_Name,RsiMa, 0,0); 
 double V2 = iCustom (_Symbol, _Period, QQE_Indicator_Name, TrLevelSlow, 0,0);  
 double V1P = iCustom (_Symbol, _Period, QQE_Indicator_Name,RsiMa, 0,1); 
 double V2P = iCustom (_Symbol, _Period, QQE_Indicator_Name, TrLevelSlow, 0,1); 
   
 if (V1P > V2P && V1 < V2) OrderExit(1); //buy trade exit
 if (V1P < V2P && V1 > V2) OrderExit(0);// sell trade exit 
 
  1. Don't double post! You already had this thread open.
              General rules and best pratices of the Forum. - General - MQL5 programming forum (2017)

  2. Please edit your (original) post and use the CODE button (Alt-S)! (For large amounts of code, attach it.)
              General rules and best pratices of the Forum. - General - MQL5 programming forum (2019)
              Messages Editor

  3. Always post all relevant code (using Code button) or attach the file.
         How To Ask Questions The Smart Way. (2004)
              Be precise and informative about your problem

    We don't know what RsiMA and TrLevelSlow are, nor whether they are valid parameters for the indicator.

  4. Help you with what? You haven't stated a problem, you stated a want. Show us your attempt (using the CODE button) and state the nature of your problem.
              No free help (2017)

    Or pay someone. Top of every page is the link Freelance.
              Hiring to write script - General - MQL5 programming forum (2018)

    We're not going to code it for you (although it could happen if you are lucky or the problem is interesting).
              No free help (2017)