mrtools:
Mntiwana found another bug in the mtf of the arrows and added the vlines to both versions, don't know anything about any other price options.
Dearest MRTOOLS
Again bundle of thanks for vlines and some correction along with ..... as for prices i was means 2 more extreme prices that latest one in addition with 20 previous,now these come to 22 ...... actually i want try experiment, possibly find some more precise setup but not sure.
Again bundle of thanks for vlines and some correction along with ..... as for prices i was means 2 more extreme prices that latest one in addition with 20 previous,now these come to 22 ...... actually i want try experiment, possibly find some more precise setup but not sure.
regards
Sorry, don't know anything about those extra price options.
enum enPrices
{
pr_close, // Close
pr_open, // Open
pr_high, // High
pr_low, // Low
pr_median, // Median
pr_typical, // Typical
pr_weighted, // Weighted
pr_average, // Average (high+low+open+close)/4
pr_medianb, // Average median body (open+close)/2
pr_tbiased, // Trend biased price
pr_tbiased2, // Trend biased (extreme) price
pr_haclose, // Heiken ashi close
pr_haopen , // Heiken ashi open
pr_hahigh, // Heiken ashi high
pr_halow, // Heiken ashi low
pr_hamedian, // Heiken ashi median
pr_hatypical, // Heiken ashi typical
pr_haweighted, // Heiken ashi weighted
pr_haaverage, // Heiken ashi average
pr_hamedianb, // Heiken ashi median body
pr_hatbiased, // Heiken ashi trend biased price
pr_hatbiased2 // Heiken ashi trend biased (extreme) price
};
//------------------------------------------------------------------////------------------------------------------------------------------////////////#define priceInstances 1double workHa[][priceInstances*4];
double getPrice(int tprice, constdouble& open[], constdouble& close[], constdouble& high[], constdouble& low[], int i, int instanceNo=0)
{
if (tprice>=pr_haclose)
{
if (ArrayRange(workHa,0)!= Bars) ArrayResize(workHa,Bars); instanceNo*=4;
int r = Bars-i-1;
//////////double haOpen;
if (r>0)
haOpen = (workHa[r-1][instanceNo+2] + workHa[r-1][instanceNo+3])/2.0;
else haOpen = (open[i]+close[i])/2;
double haClose = (open[i] + high[i] + low[i] + close[i]) / 4.0;
double haHigh = MathMax(high[i], MathMax(haOpen,haClose));
double haLow = MathMin(low[i] , MathMin(haOpen,haClose));
if(haOpen <haClose) { workHa[r][instanceNo+0] = haLow; workHa[r][instanceNo+1] = haHigh; }
else { workHa[r][instanceNo+0] = haHigh; workHa[r][instanceNo+1] = haLow; }
workHa[r][instanceNo+2] = haOpen;
workHa[r][instanceNo+3] = haClose;
//////////switch (tprice)
{
case pr_haclose: return(haClose);
case pr_haopen: return(haOpen);
case pr_hahigh: return(haHigh);
case pr_halow: return(haLow);
case pr_hamedian: return((haHigh+haLow)/2.0);
case pr_hamedianb: return((haOpen+haClose)/2.0);
case pr_hatypical: return((haHigh+haLow+haClose)/3.0);
case pr_haweighted: return((haHigh+haLow+haClose+haClose)/4.0);
case pr_haaverage: return((haHigh+haLow+haClose+haOpen)/4.0);
case pr_hatbiased:
if (haClose>haOpen)
return((haHigh+haClose)/2.0);
elsereturn((haLow+haClose)/2.0);
case pr_hatbiased2:
if (haClose>haOpen) return(haHigh);
if (haClose<haOpen) return(haLow);
return(haClose);
}
}
//////////switch (tprice)
{
case pr_close: return(close[i]);
case pr_open: return(open[i]);
case pr_high: return(high[i]);
case pr_low: return(low[i]);
case pr_median: return((high[i]+low[i])/2.0);
case pr_medianb: return((open[i]+close[i])/2.0);
case pr_typical: return((high[i]+low[i]+close[i])/3.0);
case pr_weighted: return((high[i]+low[i]+close[i]+close[i])/4.0);
case pr_average: return((high[i]+low[i]+close[i]+open[i])/4.0);
case pr_tbiased:
if (close[i]>open[i])
return((high[i]+close[i])/2.0);
elsereturn((low[i]+close[i])/2.0);
case pr_tbiased2:
if (close[i]>open[i]) return(high[i]);
if (close[i]<open[i]) return(low[i]);
return(close[i]);
}
return(0);
}
ohw, didn't see. so the final corrected version is that listed on https://www.mql5.com/en/forum/175037/page908 ?
Mntiwana found another bug in the mtf of the arrows and added the vlines to both versions, don't know anything about any other price options.
Dearest MRTOOLS
Again bundle of thanks for vlines and some correction along with ..... as for prices i was means 2 more extreme prices that latest one in addition with 20 previous,now these come to 22 ...... actually i want try experiment, possibly find some more precise setup but not sure.
regards
Dearest MRTOOLS
Again bundle of thanks for vlines and some correction along with ..... as for prices i was means 2 more extreme prices that latest one in addition with 20 previous,now these come to 22 ...... actually i want try experiment, possibly find some more precise setup but not sure.
regards
Sorry, don't know anything about those extra price options.
Dearest MRTOOLS
I am sorry for bothering you again and again,if you don't have or cant do,no matter at all,but these are here in picture.
If MLADEN can help provide you.
regards
Sorry, don't know anything about those extra price options.
Here is the function that does those prices :)
Here is the function that does those prices :)
Dearest MLADEN
Bundle of thanks for help providing the code for whole prices package to all of us.
regards
OnChart extended RSI with some changes (mainly how the RSX is calculated)
OnChart extended RSI with some changes (mainly how the RSX is calculated)
Here is the function that does those prices :)
Dearest MRTOOLS
I am sorry for bothering you again and again,if you don't have or cant do,no matter at all,but these are here in picture.
If MLADEN can help provide you.
regards