Histogram crossed over MA
-
I am having a hard time to make this volume indicator to work
I want buffer 1 or 2 (green or red) to take trade only if it went over buffer 3 (blue MA) but what it does is always take trades every candle. I tried doing it on different candle, I even used specific time but the outcome is the same. Here is the volume indi I am currently working.
0_1607866846176_waddah attar explosion averages nmc alerts 2_2.mq4
Not sure what I am doing wrong.
here is the current condition it is set to:

This is how the indicator looked like.

Hope I can get some guidance from people who are used to work with histogram type indicators.
-
@claude101 Can you please share the link of your project to check it out?
-
Here is the copy of my Volume EA test
https://fxdreema.com/shared/cIBhEmu1e
What I want to do is to make sure that the volume indi will work on as it should be. So what I am trying to do is to make the EA take a trade if volume is above buffer 3(blue) and do not trade if below the said buffer. this way I can make sure that it will meet the condition that I can use on the full EA.
P.S. Currently on demo so I can't create more than 10 blocks to test.
P.S. I watched your vids, as an introduction to FXDreema. -
@claude101 Ok. Do not use 'value by time' at the bottom of the condition's blocks. Just use the candle ID option by default and test the EA just to confirm the buffers are correcty identified by the platfform. Once confirmed, we can move on.
-
@l-andorràHere's What I did. If I use candleID0 it does not create any trades. not at all, even if on the indi the buffer clearly went above the blue buffer.
The next one, I tried using CandleID1, still no trade is being created.
I really wanted to make this indi work on my EA because it works perfectly in my algo to filter trades with less volume.I read about indi appear but somehow not sure how the logic with that block works. so I can't even try it out.

I am sure that after I stopped the tester, the said indi should show up on the visual chart but for some reasons it is not.
-
If I use "cross above" rather than "above", the system just create trades every candle.
-
Hi @Claude101 , have you tried if the value of green/red buffer more than the value of blue line? Don't use cross above. And use Candle ID 1.
-
@claude101 Can you please share the link to your project?
-
@biztet I did used that logic "above" value but to no avail.
-
@l-andorrà https://fxdreema.com/shared/cIBhEmu1e here is the link. I read somewhere that indicator visible will do the trick but don't have a clue on how it should be done.
https://fxdreema.com/forum/topic/9105/tutorial-working-with-ex4-ex5-indicator-file/3
-
@Claude101 , for this indicator, i think you should use Custom Indicator in Condition block because there you can have the setting for Candle ID which you should use to make it read the value of previous closed candle. Don't put in your My Indicators.
-
@biztet is it the condition block where I have to use IF-THEN-ELSE logic and manually write the condition? if that is the case, is there a tutorial or even a document I can read to create one?
-
@Claude101 , I mean like this.

-
@biztet Additionally I see you use 'value by time' and the specify at 23:30. Use candle ID instead. If you need a time filter you'd better use a a time filter block.
-
@l-andorrà Here is how I have it in the beginning. I am using the No trade block and candle ID 1 on condition block. but it still does not do anything.
-
Weird ha @Claude101 . If you do like i did, there should be an open trade. And if you really need that 2330hrs, like @l-andorrà said, use a time filter.
-
@claude101 Your logic is correct. You should get open trades. Are you trading indexes and /or commodities instead of forex maybe? If so, that is the reason you're not getting a trade.
-
Hello there;
You need to base your previous candle on.
candle ID: need to be 1

-
I think I found out what was the reason why it was not taking any trades.
Somehow, the parameters of the indicator that was set by the EA is incomplete.Please check the img below.


The Parameters are incomplete, making the indicator incapable of calculating, so technically, no buffer crossed above another buffer.The Indi should look like this:


It seems I need to learn MQ4 language, or I need to learn how to use iCustom and fix the param setting via code to fix this issue.
Here is the coding of the expert in Mq4 file. if you can check the coding and let me know . That would be really appreciated.
0_1608370019991_V1 try.mq4 -
P.S I am using the same block setting as the image I posted on the begging of the thread. But those setting are not properly set by the blocks on the EA.
The indicator itself uses this enum code
// Enumerations by Custom Indicators
enum enPrices
{
pr_close,
pr_open,
pr_high,
pr_low,
pr_median,
pr_typical,
pr_weighted,
pr_average,
pr_medianb,
pr_tbiased,
pr_haclose,
pr_haopen,
pr_hahigh,
pr_halow,
pr_hamedian,
pr_hatypical,
pr_haweighted,
pr_haaverage,
pr_hamedianb,
pr_hatbiased
};enum maTypes
{
ma_sma,
ma_ema,
ma_dsema,
ma_dema,
ma_tema,
ma_smma,
ma_lwma,
ma_pwma,
ma_alxma,
ma_vwma,
ma_hull,
ma_tma,
ma_sine,
ma_linr,
ma_ie2,
ma_nlma,
ma_zlma,
ma_lead,
ma_ssm,
ma_smoo
};Could this be the reason why fxdreema was unable to work with this indi?