- FMIC: @Torgen, the user WHRoeder is telling you that the code statements "if ( ExtBuffer2[0])" and "if (ExtBuffer1[0])" don't do anything at all. If you want to check for a change you must compare it with something in order for a boolean result to be returned to the "if()" function.Actually that is wrong. They do something, they test the color of the bar. ExtBuffer2[0] will be nonzero (true) if the minusD1 is above the plusD1.
- FMIC's suggestion to use EMPTY_VALUE is a good one, but off the OPs original question.
- Torgen: but it sound in every single bar (histogram) and I just want the alarm in the first red and green bar,You need to test the current bar's direction and wether the previous bar is or is not the same.
Subscribe to a trade
MetaTrader Market - the
MetaTrader 5 for your
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register