# QQE Quantitative Qualitative Estimation for Multicharts  [SOLVED]

Questions about MultiCharts and user contributed studies.
syracusepro
Posts: 17
Joined: 29 Sep 2016

### QQE Quantitative Qualitative Estimation for Multicharts

Hi; Is there a study QQE Quantitative Qualitative Estimation for Multicharts?

I have tried to assemble one, but is not compiling. If I post then I would be ignored because of the problems, but that is just the matter, that is not compiling.

So any QQE available?

tony
Posts: 420
Joined: 14 Jun 2013
Has thanked: 30 times
Been thanked: 80 times
Contact:

### Re: QQE Quantitative Qualitative Estimation for Multicharts

Can you post what you wrote in PLE so we can see why it is not compiling. Sometimes it can be as simple as using , versus ;

If you do post please note where PLE is saying the error is (line / column).

syracusepro
Posts: 17
Joined: 29 Sep 2016

### Re: QQE Quantitative Qualitative Estimation for Multicharts

Hi Tony; See the code below.

Code: Select all

Function Provided
The QQE calculations are provided as an EasyLanguage function so that you can use this idea in
strategies or other indicators.
Function EL Code
inputs:
double RSIPrice( Close ), { the price to be used in the calculation of the RSI }
int RSILength( 14 ), { the number of bars to be used in the calculation of the RSI }
int RSISmoothLength( 5 ), { the length of the exponential moving average of the
RSI; this value determines the smoothing factor used in the exponential moving
average calculation }
int ATRLength( 27 ), { the length of the exponential moving average of the
true range of the smoothed RSI }
int ATRSmoothLength( 27 ), { the length of the exponential moving average of the
moving average of the true range of the smooth RSI }
double FastATRMult( 2.618 ), { a scaling factor that is multiplied by the moving
average of the moving average of the true range of the smooth RSI }
double SlowATRMult( 4.236 ), { a scaling factor that is multiplied by the moving
average of the moving average of the true range of the smooth RSI }
double SmoothRSIAlertLevel( 50 ) ; { if alerts are enabled for the indicator, an
alert will be triggered if the smoothed RSI crosses the level specified by this
input }
variables:
double RetVal( 0 ), double oSmoothRSI( 0 ),
double oFastTL( 50 ),double oSlowTL( 50 ),
intrabarpersist bool OkToPlot( false ) ;
RetVal = QQE( RSIPrice, RSILength, RSISmoothLength, ATRLength, ATRSmoothLength,
FastATRMult, SlowATRMult, oSmoothRSI, oFastTL, oSlowTL ) ;
{ do not plot until all exponential moving averages have stabilized }
once( CurrentBar > 4 * MaxList( RSILength, RSISmoothLength, ATRLength,
ATRSmoothLength ) )
OkToPlot = true ;
if OkToPlot then begin
Plot1( oSmoothRSI, "SmoothRSI" ) ;
Plot2( oFastTL, "FastTL" ) ;
Plot3( oSlowTL, "SlowTL" ) ;
if oSmoothRSI crosses over SmoothRSIAlertLevel then
else if oSmoothRSI crosses under SmoothRSIAlertLevel then
end ; // if OkToPlot

tony
Posts: 420
Joined: 14 Jun 2013
Has thanked: 30 times
Been thanked: 80 times
Contact:

### Re: QQE Quantitative Qualitative Estimation for Multicharts

Not sure where to begin there are so many things to fix. Other than re-writing the entire thing. From names of inputs to the use and non-use of IntraBarPersist and more, there are a lot of mistakes. Not knowing what you are trying to do, your request, unfortunately, is beyond the scope of the forum.

ABC
Posts: 626
Joined: 16 Dec 2006
Has thanked: 119 times
Been thanked: 355 times
Contact:

### Re: QQE Quantitative Qualitative Estimation for Multicharts

syracusepro,

it appears this is not the full code you posted. For example you are using a function called QQE, but did not post it. With blocking the function call the code compiles fine, so the problem is probably not within the indicator code. As the QQE function from the TS forum compiles fine in MC, too, the problem is probably within your implementation. For example did you create the function? What does the function code look like on your end and does it compile or do your receive an error message from it?

Just saying "the code doesn't compile" gives no reference to the origin of the error and the compiler will usually provide you with an exact line and column of at least the first error in your code.
Think about it like this: If you go to the doctor and just say "I am in pain", but provide no other information about where the pain is etc., you make it harder/impossible for the doctor to help you.

Bottom line is, provide as much information as possible. The more you leave out, the less people will likely help you.

I hope this doesn't come across as harsh, as this is not my intention. Please understand that this is meant to be constructive.

Regards,

ABC

syracusepro
Posts: 17
Joined: 29 Sep 2016

### Re: QQE Quantitative Qualitative Estimation for Multicharts

Hi;

It seems to me the code posted was a function for TS in easy language, but in MultiCharts, inputs and variables have to be declared or defined in a different way. Also, then the indicator code has to be created. I will try to go a little further, and see how it goes. Thanks.

ABC
Posts: 626
Joined: 16 Dec 2006
Has thanked: 119 times
Been thanked: 355 times
Contact:

### Re: QQE Quantitative Qualitative Estimation for Multicharts

syracusepro,

the code you posted is definitely an indicator. Trying to put it into a function won't work without several code changes.
in MultiCharts, inputs and variables have to be declared or defined in a different way

Can you give an example of such a case, please? To my understanding there should be no difference between TS and MC in that regard.

Regards,

ABC

syracusepro
Posts: 17
Joined: 29 Sep 2016

### Re: QQE Quantitative Qualitative Estimation for Multicharts

That was the input by another user. Now, if I enter the full code I posted above, this line for example will not compile, due to the QQE function, is not or there is none on Multicharts:

Code: Select all

RetVal = [b]QQE[/b]( RSIPrice, RSILength, RSISmoothLength, ATRLength, ATRSmoothLength,
FastATRMult, SlowATRMult, oSmoothRSI, oFastTL, oSlowTL ) ;
//-----
Study: "QQE" (Indicator)
------ Compiled with error(s): ------
unverified function is used
line 22, column 9
causal study: qqe (Function)
//------

Other users input:

"Not sure where to begin there are so many things to fix. Other than re-writing the entire thing. From names of inputs to the use and non-use of IntraBarPersist and more, there are a lot of mistakes. Not knowing what you are trying to do, your request, unfortunately, is beyond the scope of the forum".

Also, "the function QQE is just missing".
Last edited by syracusepro on 17 Oct 2016, edited 1 time in total.

ABC
Posts: 626
Joined: 16 Dec 2006
Has thanked: 119 times
Been thanked: 355 times
Contact:

### Re: QQE Quantitative Qualitative Estimation for Multicharts

There is no such function in MC (there is no such function in TS by default either), but you can probably get the function where you got the indicator code.
That was the input by another user.
What exactly did the other user say?

Regards,

ABC

TJ
Posts: 7151
Joined: 29 Aug 2006
Location: Global Citizen
Has thanked: 988 times
Been thanked: 2041 times

### Re: QQE Quantitative Qualitative Estimation for Multicharts

You are wasting your time chasing down the rabbit hole.

@syracusepro you need to be forthcoming with more information, otherwise you are just wasting people's goodwill.

If you are copying a code from somewhere,
you should always give the source of the code, tell us the background, so that people do not work in the dark.

and if you have not paid attention to the detail,
people would have pointed the following limitation to you.

Quantitative Qualitative Estimation (QQE) Indicator Provided by John Bruch

TS Requirements: TS 9.1

Always give credit to the author where credit is due.

syracusepro
Posts: 17
Joined: 29 Sep 2016

### Re: QQE Quantitative Qualitative Estimation for Multicharts  [SOLVED]

You are correct TJ. I just have been extremely busy trading and doing other tasks, but always post the credit when indicator is published. On this case just wanted to post the code, but didn't even get the creators information, as it was just posted. Will research again, to see if any page listed creator as you stated. I know someone did it as it wont get done by itself. Thanks.

bensat
Posts: 331
Joined: 04 Oct 2014
Has thanked: 46 times
Been thanked: 104 times

### Re: QQE Quantitative Qualitative Estimation for Multicharts

I can understand the guys here but I can understand 'syracusepro' as well. It's hard to give an answer of such a question out of nothing, but it is kind of difficult for a person not familiar with PowerLanguage and the function, indicator structure.

He showed us the indicator code, and from the section of the function call and the inputs provided, you might get an idea what's going on in the function.

To always find and post the original 'owner' of the code is not that easy, as there is so much original and modified code flying around.

Kind Regards.

Ben
These users thanked the author bensat for the post:
asyx