Re: Moving Average indicators for MT4

3321
chris006 wrote: Fri Dec 15, 2023 9:23 pm Hi Kvak,

I was looking for a histo version of bbstops but cannot find any that generates the same results.

Even better, I think an oscillator version would be interesting, especially if you would be able to select the risk line from which to oscillate vs the price (example: Risk1 / Risk2 / Risk3)

Please consider either version (histo or oscillator) if you have time.

Thank you,
This is quick version for test, diference from close price and risk 3 bands.
These users thanked the author kvak for the post (total 8):
RodrigoRT7, Jimmy, Overeasy, chris006, josi, vvFish, talaate, rexey


Re: Moving Average indicators for MT4

3322
Thank you Kvak! Checked on chart vs oscillator, I think oscillator is correct.

Below image of WTI M5 is on chart EMA 55, oscillator EMA 136. Nice entry points over the past week or so, where both point in same direction.
kvak wrote: Sat Dec 16, 2023 10:19 am This is quick version for test, diference from close price and risk 3 bands.
Attachments
These users thanked the author chris006 for the post (total 2):
RodrigoRT7, stond

Re: Moving Average indicators for MT4

3325
Banzai wrote: Mon Jun 27, 2022 11:30 am Kaufman - price filtered
(on/off button)



ahtf = automatic higher time frame

Someone already made the mtf, arrows, and added some more prices + button.
It looks like he added in another timeframe to compare and align if they're in the same trend.

In the attached picture, if M15 and H4 timeframe are aligned in the same trend, it will be colored.
Otherwise, if they're not in the same trend, the color will be grayed out.

Code: Select all

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_highlow,    // High/low
   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
   pr_hahighlow   // Heiken ashi high/low
};
Image

Dear Coding Gurus et 'al,
It is noticed that the curve drawn by this indicator during back-test is slightly different from that it draws when the indicator is applied on chart.
What could have caused such discrepancy?
Can it be fixed?
Appreciate your kind comment and suggestion.
Thank you very much.


Re: Moving Average indicators for MT4

3326
Cazz223 wrote: Mon Dec 18, 2023 1:10 pm Dear Coding Gurus et 'al,
It is noticed that the curve drawn by this indicator during back-test is slightly different from that it draws when the indicator is applied on chart.
What could have caused such discrepancy?
Can it be fixed?
Appreciate your kind comment and suggestion.
Thank you very much.
I made same test like you and dont see any difference, are you sure that you use same settings in both indicators?
Attachments

Re: Moving Average indicators for MT4

3327
kvak wrote: Tue Dec 19, 2023 10:28 am I made same test like you and dont see any difference, are you sure that you use same settings in both indicators?
Image
Dear Kvak,
Thank you so much for testing it out.
Follow you cue, I tested again with default setting, and the results match perfectly.
However, when I tested again with different setting (setting attached), they do deviate a bit.
Wonder what causes the deviation.

Re: Moving Average indicators for MT4

3329
wojtek wrote: Tue Dec 19, 2023 9:26 pm The data feeds can slightly differ(?)
Same data feeds, because i applied the indi on the same chart that I back-tested.
I have little suspicions that the discrepancies were due to mtf function.

My second and most concerning question is which set of curves reflects the actual process of "trading", is it the one you apply on the chart or the one displayed after a back-test?


Who is online

Users browsing this forum: Applebot [Crawler], dininurin, DotNetDotCom [Bot], maroka, Proximic [Bot], Yandex [Bot] and 63 guests