Problems with buy sell condition - icustom

 

I have a problem w/ a buy - sell condition ...

It should give a additional buy signal if QQE is > MA and sell a signal if QQE < MA

but only sell signal is working ...

double MA1 = iMA(NULL, 0, 34, 0, 1, 0, Current + 0);   
double qqe1 = iCustom(NULL, 0, "QQE", 5, 0, 0, 0, 0, 0, 0, 1);

if(qqe1 > MA1) bool Buy1=true;
if(qqe1 < MA1) bool Sell1=true;
 
fulltilt:

I have a problem w/ a buy - sell condition ...

It should give a additional buy signal if QQE is > MA and sell a signal if QQE < MA

but only sell signal is working ...


how many buffers has "QQE"

or what kind of values do you get from it.....

why don't we see you check the values you get ??

 
fulltilt:

I have a problem w/ a buy - sell condition ...

It should give a additional buy signal if QQE is > MA and sell a signal if QQE < MA

but only sell signal is working ...

Are you certain that the 2nd to 5th externs for the Indicator should be set to zero ? are you certain that you are reading the correct buffer ? have you checked by putting the QQE Indicator on a chart and checking it's buffer values using the Data Window ? have you confirmed that the iCustom() call is returning the correct value ?
 

for QQE standalone this one is working but I want to check w/ MA <> QQE

   double l_icustom_56 = iCustom(NULL, 0, "QQE ADV", 0, 1);
   double l_icustom_64 = iCustom(NULL, 0, "QQE ADV", 1, 1);
 
fulltilt:

for QQE standalone this one is working but I want to check w/ MA <> QQE


I saw different QQE indicators in a quick search all displaying in separate window

Do you compare the MA1 value mainchart with qqe1 value in separate window ??

So can you show a picture and print out values you get....

   Comment("qqe1   = ",qqe1,"  MA1 = ",MA1);  //or Print 

did you never do something like this to check what happens....

 

yep, that could be the problem, QQE is using a separate window ...

how can I get this working together MA (main window) QQE (window 1) ?

 
fulltilt:

for QQE standalone this one is working but I want to check w/ MA <> QQE

Does the QQE return a price ? or a percentage ? or some other figure ? if it doesn't give a price you cannot validly compare it with an MA
 
thanks, I will check this soon ;-)
Reason: