Profitcheck - CSHARP 0.57 KB
                                
                                    void OnTick()
  {
   Profit ();
   
  }
//+------------------------------------------------------------------+
void Profit ()
{             
   for(int pf=OrdersTotal()-1;pf>=0;pf--)
     {
      if(!OrderSelect(pf, SELECT_BY_POS))
         continue;
   double Profit  = OrderProfit ()+ OrderCommission ()+ OrderSwap (); 
      if(Profit>10)
      {
         Comment("Hey you got $1"); PlaySound("\\Files\\you-got-it-2.wav");
      }
      else
        {
         Comment("U Suck");
        }
      
     }
}
                                
                            

Paste Hosted With By FREENOTE