Forum

Check for current profit??

Hello everyone, I'm looking for a way to let a EA. Check what the total current profit is of all open orders. If it's is equal to for example 20 usd that it automatically closes all the orders. Regards

OrderClose by Indicators

Hello everyone, I busy making a EA that uses MA5 and MA10. i want to do a OrderClose function when the cross back so . (PMA5>PMA10 && MA5<MA10) BUY order opens. (PMA5<PMA10 && MA5>MA10) BUY order closes and SELL order opens. Can you please look at it and help me out int MagicNumber= 1200 ; void

Check if Order of Symbol is already open

Hello everyone, I'm looking for a check function , So the EA checks if a trade of the symbol is already open and if its open already then dont open a second one. I use the Orderstotal() at the moment but then i cant open more trades from different symbols. if (RSIValue< 23 && OrdersTotal ()<1){

Change SL when is in profit?

void OnTick () { double SlowMovingAverage = iMA ( NULL , 0 , 90 , 0 , MODE_SMA , PRICE_CLOSE , 0 ); double LastSlowMovingAverage = iMA ( NULL , 0 , 90 , 0 , MODE_SMA , PRICE_CLOSE , 1 ); double FastMovingAverage = iMA ( NULL , 0 , 15 , 0 , MODE_SMA , PRICE_CLOSE