Experts: Volatility Quality EA - page 2

 

@kashetter,

 try with:

     int limit=CountBars+TimeFrame/Period();

     int y=0;

     for (i=0, y=0; i<limit;i++) {if (Time[i]<TimeArray1[y]) y++;  SumVQ[i]=SumVQ_MTF[y];} 

 

seems it works... 

 

A little problem. The breakeven only works on buy positions and not on sell. How to fix?

I found the error:

Line 929: it says: if ((OrderOpenPrice()-OrderStopLoss())<0) Should be  bigger than: if ((OrderOpenPrice()-OrderStopLoss())>0) {

 
It's not working. It won't compile.
 

Why does not this EA work?  I have no messages that it is not working in the journals or experts

Thank you

 
Simone Gargano:

@kashetter,

 try with:

     int limit=CountBars+TimeFrame/Period();

     int y=0;

     for (i=0, y=0; i<limit;i++) {if (Time[i]<TimeArray1[y]) y++;  SumVQ[i]=SumVQ_MTF[y];} 

 

seems it works... 

Compiled perfect , thanks!

 
so is this actually a trend indicator or a volume/volatility indicator?
Reason: