Experts: Volatility Quality EA - page 2 12 New comment [Deleted] 2014.08.01 21:20 #11 @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... Thomas Kjelvik 2014.11.20 16:09 #12 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) { Trailing stop Percentage EA How to use previous unexpected token error First Last 2019.04.19 04:38 #13 It's not working. It won't compile. SamuelSilver 2021.05.27 17:30 #14 Why does not this EA work? I have no messages that it is not working in the journals or experts Thank you SamuelSilver 2021.05.27 17:31 #15 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! xxxxtttt777 2021.11.29 17:25 #16 so is this actually a trend indicator or a volume/volatility indicator? 12 New comment
@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) {
Why does not this EA work? I have no messages that it is not working in the journals or experts
Thank you
@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!