avatar
Profitcheck

Cuongitl 22 4th Sep, 2020

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");
        }
      
     }
}
                      
                                       
To share this paste please copy this url and send to your friends
RAW Paste Data

Comments

Authentication required

You must log in to post a comment.

Log in
    There are no comments yet.