Jump to content

(req) Secure Pips


Recommended Posts

Re: (req) Secure Pips

 

Go to forex factory or forex tsd.

Search:

swiss army ea

cave manager ea

2protect account ea

 

i personally using 2protect acount ea.

 

somebody req 2protect acount ea to me. here..

double gd_76 = 0.0;
double gd_84 = -999999.0;
double gd_92 = -999999.0;

void CloseAll() {
  int l_cmd_8;
  bool li_12;
  int l_ord_total_0 = OrdersTotal();
  for (int l_pos_4 = l_ord_total_0 - 1; l_pos_4 >= 0; l_pos_4--) {
     OrderSelect(l_pos_4, SELECT_BY_POS);
     l_cmd_8 = OrderType();
     li_12 = FALSE;
     switch (l_cmd_8) {
     case OP_BUY:
        li_12 = OrderClose(OrderTicket(), OrderLots(), MarketInfo(OrderSymbol(), MODE_BID), 5, Red);
        break;
     case OP_SELL:
        li_12 = OrderClose(OrderTicket(), OrderLots(), MarketInfo(OrderSymbol(), MODE_ASK), 5, Red);
        break;
     case OP_BUYLIMIT:
     case OP_BUYSTOP:
     case OP_SELLLIMIT:
     case OP_SELLSTOP:
        li_12 = OrderDelete(OrderTicket());
     }
  }
  ObjectsDeleteAll();
}

int start() {
  bool li_0;
  if (OrdersTotal() == 0) {
     gd_76 = 0;
     gd_84 = -999999;
     gd_92 = -999999;
  }
  gd_76 = AccountProfit();
  if (gd_76 <= -560.0 || gd_76 >= 6000.0) CloseAll();
  if (gd_76 <= gd_84) CloseAll();
  if (gd_76 >= 5000.0 && gd_84 == 4010.0) gd_92 = 4510;
  if (gd_76 >= 4500.0 && gd_84 == 3510.0) gd_92 = 4010;
  if (gd_76 >= 4000.0 && gd_84 == 3010.0) gd_92 = 3510;
  if (gd_76 >= 3500.0 && gd_84 == 2510.0) gd_92 = 3010;
  if (gd_76 >= 3000.0 && gd_84 == 2010.0) gd_92 = 2510;
  if (gd_76 >= 2500.0 && gd_84 == 1510.0) gd_92 = 2010;
  if (gd_76 >= 2000.0 && gd_84 == 1010.0) gd_92 = 1510;
  if (gd_76 >= 1500.0 && gd_84 == 710.0) gd_92 = 1010;
  if (gd_76 >= 1000.0 && gd_84 == 510.0) gd_92 = 710;
  if (gd_76 >= 700.0 && gd_84 == 410.0) gd_92 = 510;
  if (gd_76 >= 500.0 && gd_84 == 310.0) gd_92 = 410;
  if (gd_76 >= 400.0 && gd_84 == 210.0) gd_92 = 310;
  if (gd_76 >= 300.0 && gd_84 == 110.0) gd_92 = 210;
  if (gd_76 >= 200.0 && gd_84 == 70.0) gd_92 = 110;
  if (gd_76 >= 100.0 && gd_84 == 40.0) gd_92 = 80;
  if (gd_76 >= 60.0 && gd_84 == -999999.0) gd_92 = 50;
  if (gd_92 > gd_84) gd_84 = gd_92;
  if (gd_84 == -999999.0) li_0 = FALSE;
  else li_0 = gd_84;
  Comment("PROTECTED", 
  "\nProfitLocked = $ ", li_0);
  return (0);
}

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...