Forum

attach indicator to EA .....

I have an heiken ashi indicator which works great by itself & the EA works by itself (without the #include statement) but when I try to attach it to the EA I get "array out of range error". I am learning coding but there are no simple explanations of why this should happen. The indicator has an .mqh

bid/ask price .....

Is it possible to get the Bid/Ask price in the top left of the chart screen & use those prices as variables in calculations using an indicator, I have searched for days & it's sheer desperation I ask now. I'm not asking for the code just whether it can be done or not OR do I need to do this as an

multiple conditions to an IF .... ELSE statement

Is it possible to add multiple conditions to an IF...ELSE statement, I have searched for days with no luck. For example: if(haOpen<haClose) ExtColorBuffer[i]=0.0; // set color DodgerBlue else ExtColorBuffer[i]=1.0; // set color Red } //--- done return(rates_total); } I need