Move confirmed with breakout above moving average of volume
-
Hi there,
I'm looking for a way to code confirmation of a move by breakout in volume. Breakout means volume is higher at least X times than moving avarage of volume from Y last bars!
0_1539926340028_Volume confiration.png
I was trying to leverage those posts
https://fxdreema.com/forum/topic/4510/tutorial-loop-advanced-find-and-save-specific-value-from-indicator-history
https://fxdreema.com/forum/topic/4507/indicator-average-value-ichimokuBut it doesn't me a hint how to code it, since at this site
https://docs.mql4.com/indicators/imaonarray
there is no ivolume, there is only iMAOnArray which I don't know how to use for volume.I would be grateful for Your advice how to approach this one!
Regards
-
I also don't really know how to use iMAOnArray(). I will suggest to search for some indicator that does that
-
yes, custom indicator is the best for this ...

here I created simple indicator for it:
0_1540323305338_miro1360_test_1.0.mq4
import it to fxdreema and use it as other indicators with buffersI did one of the easiest custom indicator templates which can be understand and used ...

here is the whole code needed for this volume moving average
... the rest of the code in that indicator "template" is untouched -
Ok, as I see here it is somehowe managable with mql code without special indicator
https://forexsb.com/repository/repository_indicators/forex_indicator_review/261/rising-volumeIs it possible to code or set up the same logic in fxdreema?
-
@polper
no, just another overcomplication for such simple situation
use my custom indicator for it from previous post -
ok ok I check it out! Many thanks!
-
It works perfectly! Thank You very much once again.
-
I have converted your mq4 file to mq5 using the fxDreema converter but after compiling with the MT5 editor there are 2 errors

Please, could you be so kind to develop your custom indicator for MQL5 or fix what is wrong?
0_1540361017305_1540323305933-miro1360_test_1.0.mq5
Many thanks.
-
Hi Guys, apologies for the stupid question but I cannot get the cross to work for this indicator? The below EA is just supposed to buy when Buffer 0 is greater than buffer 1, but this never happens even though I can see it on my chart. The indicator is the one uploaded by Miro, just changed the name (its the same in mt4 and in FXdreema):

-
maybe problem with Bars function ... here:
0_1540377874003_miro1360_test_1.0.mq5 -
-
@miro1360
While I'm trying to use your mq5 file, it doesn't seem to be working?
Have there been any updates on MT5 since you wrote it?
I'm trying to use it to find occassion where vol(1) > average volume (13) (well ideally 20 but that's an easy change)
Here's how I'm structuring it:

-
@maxsydney I know for sure there were several changes on MT5 since, but I'm afraid I have no idea how they affected his code.
-
has anybody been able to use this indicator and turn it into an EA?
