Forum

possible use of uninitialized variable in array

I'm hoping someone can help. This array was fine but all of a sudden I get this warning: possible use of uninitialized variable 'candles'. Not sure why the error. int getPattern() { if ( Bars < 4 ) { return ( 0 ); } int candles[ 4 ]; for ( int i= 0 ; i< 4 ; i++) {

Use Account Profit

I have a nice EA and would like to add the function where an order will close when it gets to a specific profit (dollars). I am trying OrderProfit() but have no luck in getting the EA to respond. It's pretty simple. I want to enter a dollar amount into the EA settings, and when the profit reaches