
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Valeo,
Good luck, looking fwd to your findings.
Thanks for the new Fibo-Grid version...appreciate that you're thinking of me when that came out. I happen to like it.
Cheers, San.
mladen et al.,
Can we tell by looking at this piece of code whether indicator is repainting...and if so, how to fix it?
Thanks, learning my way into coding indies (new to me, I code EAs, seems to be different sport).
for(int i=Bars-counted_bars-1; i>=0; i--)
Cheers and thanks in advance.
San.
mladen et al.,
Can we tell by looking at this piece of code whether indicator is repainting...and if so, how to fix it?
Thanks, learning my way into coding indies (new to me, I code EAs, seems to be different sport).
for(int i=Bars-counted_bars-1; i>=0; i--)
Cheers and thanks in advance.
San.I used to stick them on the strategy tester on m1 and watch, that way is the best but I am sure there is way by looking at the code as well
Statistical Arbitrage
This system (indicator) seems to make a lot of sense. I am always worried about getting scammed though. I can not find anything like this on TSD. May I ask the traders with more experience than I have what your opinion is? Is this possible to code as an indicator and not an EA?
YouTube - FX Algo Trader Statistical Arbitrage Software Overview (www.fxalgotrader.com)
San
It should work
I prefer this form (just to be sure - some array functions can return error if the limit is not smaller than or equal to Bars-1)
{
int counted_bars=IndicatorCounted();
int i,limit;
if(counted_bars<0) return(-1);
if(counted_bars>0) counted_bars--;
limit = MathMin(Bars-counted_bars,Bars-1);
//
//
//
//
//
for (i=limit; i>=0; i--)
{
...
}
return(0);
}
but your way should work OK as well as far as counted_bars = IndicatorCounted()
regards
mladen
mladen et al.,
Can we tell by looking at this piece of code whether indicator is repainting...and if so, how to fix it?
Thanks, learning my way into coding indies (new to me, I code EAs, seems to be different sport).
for(int i=Bars-counted_bars-1; i>=0; i--)
Cheers and thanks in advance.
San.Thanks mladen, will use your 'setup' as template from now on or mod existing indies if they're different. Much appreciated.
FYI, this is the code I have been using, looks similar although I think your code snippet posted above is more elegant:
//| Custom indicator iteration function |
//+------------------------------------------------------------------+
int start() {
int limit, i, counter;
double Range, AvgRange;
int counted_bars=IndicatorCounted();
//---- check for possible errors
if(counted_bars<0) return(-1);
//---- last counted bar will be recounted
if(counted_bars>0) counted_bars--;
limit=Bars-counted_bars;
for(i=Bars-counted_bars-1; i>=0; i--) {
counter=i;
Range=0;
AvgRange=0;
//---- loop for height placement of arrows
for (counter=i ;counter<=i+9;counter++){
AvgRange=AvgRange+MathAbs(High[counter]-Low[counter]);
}
Range=AvgRange/10;
//---- indicator algo starts here
.....
}
return(0);
}Request to change "GMMA Oscillator" to work like "Schaff Trend Cycle arrows"
Thanks in advance
Can you post the GMMA Osc as well?
Cheers, San.
here you are. Cheers
gmma_oscillator.mq4
Can you post the GMMA Osc as well? Cheers, San.
clc4x
Here you go (alerts added too)mladen