Can you call other custom indicators from within your new custom indicator using iCustom()??? And can you use if() functions in a custom indicator?
Reason for this is I need to create a custom indicator based on conditions of other indicators
A section of code that draws a blue upwards arrow on the chart if Macd is above the zero line
buf_0[i] = Low[i];
Yes you can.
But you are checking the MACD on shift 0 and assigning a value to buffer[i]. You need to make sure that i is the same as the shift value that you are using in the iCustom call.
To add comments, please log in or register