Termos de Referência
looking only for talented pinescript developers to convert a non lag MA that combined with Heikenashi into pinescript
From what other developers have told me is that the indicator does the following " 'absolutely nolag lwma' ma method takes future bars to backward calculate"
Please dont apply if you know you will not deliver because i can assure you that will be a wastage of your time
Requirements:
Convert the indicator into pinescript
keep the input settings that the indicator has
just FYI
This is place with the conversion challenge
i attach the source codes of 'absolutely nonlag lwma' as below:
for(i=limit; i>=0; i--) prices[i] = iMA(NULL,0,1,0,MODE_SMA,price,i);
for(i=limit; i>=0; i--)
{
for(k=0, sum=0, sumw=0; k<period && (i+k)<Bars; k++) {
weight = period-k;
sumw += weight;
sum += weight*prices[i+k]; }
if (sumw!=0)
lwma1[i] = sum/sumw;
else lwma1[i] = 0;
}
for(i=0; i<=limit; i++)
{
for(k=0, sum=0, sumw=0; k<period && (i-k)>=0; k++) {
weight = period-k; sumw += weight;
sum += weight*lwma1[i-k]; }
if (sumw!=0)
lwma2[i] = sum/sumw;
else lwma2[i] = 0;
}
Please beware that this is where the challenge will be to convert it to pinescript
sum += weight*lwma1[i-k];
this line use future bar's indicator values to backward calculate.
if any of you developer has solution, he/she will be the right candidate.