| stevehopwoodforex.com https://www.stevehopwoodforex.com/phpBB3/ Print view |
|
| Help Coding with iCustom (Better Volume) https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?t=5284 |
Page 1 of 1 |
| Author: | theforexedge [ Thu Sep 14, 2017 6:18 pm ] |
| Post subject: | Help Coding with iCustom (Better Volume) |
Hi. Just wondering if anyone can cast their eye over my attempt at adding this Better Volume indicator into an EA for testing? I'm trying to look back the past twenty bars to see if there is any climax high / low volume and then save it to a GlobalVariable. From what I can see the indicator buffer is 7, but for some reason when I run the for-loop it will only see the bar 0 and 1 and doesn't scan through the last 20 bars (TrendVolumeLookBackCandles) as needed!. Apologies Indicator attached... Thanks, JP Code: Select all |
|
| Author: | tomele [ Thu Sep 14, 2017 7:04 pm ] |
| Post subject: | Help Coding with iCustom (Better Volume) |
Hi. Open the data window in MQ4 and observe the buffers of your indi. You will understand then why it doesnt work. Cheers. |
|
| Author: | theforexedge [ Thu Sep 14, 2017 8:29 pm ] |
| Post subject: | Help Coding with iCustom (Better Volume) |
Thomas Ah! yes thanks...I increased the indicator buffer loop z in DoShow() from 3 to 20.. Thanks for pointing me in the right direction.. JP |
|
| Author: | SteveHopwood [ Fri Sep 15, 2017 12:33 am ] |
| Post subject: | Help Coding with iCustom (Better Volume) |
Fantastic to see you peering under the bonnet. Keep at it tiger. You will never regret doing so. |
|
| All times are UTC | Page 1 of 1 |
|
Powered by phpBB® Forum Software © phpBB Limited |
|