Download MetaTrader 5
To add comments, please log in or register
Your broker does not support mobile MetaTrader 5? Ask him to buy them!
fly7680
341
fly7680 2016.07.20 12:41 
Hello everyone, I have to insert a special condition in my marker.

The histogram of the "Awesome" for a Sell must be red, for a BUY to be Green.......They do not need other conditions, such as negative, positive or particular values, but only the color of the spark plug 1 but with this my code does not work


&& Close[1+i] == iCustom(NULL, PERIOD_CURRENT, "Awesome", 2, 1+i) //Candlestick Close is equal to Awesome
fly7680
341
fly7680 2016.07.20 14:06  

I solved it by entering this code thanks:


&& (iCustom(NULL, PERIOD_CURRENT, "Awesome", 2, 1+i) < 0 || iCustom(NULL, PERIOD_CURRENT, "Awesome", 2, 1+i) > 0)
/
To add comments, please log in or register