Forum

More trades than expected

Hi guys. I have a strange phenomenom. I recently build a simple ea with multiple indicators. One of them gives a value (for a sell position). The strange thing now is, when I test the ea the trades get executet proberly but for some reason sometimes they get send for no apparent reason. When I check

Update Array

Hi. I'm currently working on my first EA and I have grown pretty desprate. I actually want to fill my array[0] with the recent indicator value and have the previouse value move to array[1]. void OnTick () { if ( OrdersTotal ()> 1 ) return ; double arr[ 2 ]= { 0.0 , 0.0 }; for ( int i= 0