XavierAndreu

Error Lotaje

Oct 1st, 2022
166
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.79 KB | None | 0 0
  1. // https://youtu.be/3Y6yApQ1yKU
  2.  
  3. input double lotaje=0.01;
  4.  
  5. void OnTick()
  6. {
  7.  
  8. for(int a=0; a<OrdersTotal() ; a++)
  9. {
  10.  
  11. ulong b= OrderGetTicket(a);
  12.  
  13. if(_Symbol == OrderGetString(ORDER_SYMBOL)
  14. && OrderGetDouble(ORDER_VOLUME_INITIAL)>lotaje)
  15. {
  16.  
  17. Alert(_Symbol," ", OrderGetDouble(ORDER_VOLUME_INITIAL));
  18. ExpertRemove();
  19.  
  20. }
  21. }
  22.  
  23. for(int a=0; a<PositionsTotal() ; a++)
  24. {
  25.  
  26. ulong b= PositionGetTicket(a);
  27.  
  28. if(_Symbol == PositionGetString(POSITION_SYMBOL)
  29. && PositionGetDouble(POSITION_VOLUME)>lotaje)
  30. {
  31.  
  32. Alert(_Symbol," ", PositionGetDouble(POSITION_VOLUME));
  33. ExpertRemove();
  34.  
  35. }
  36. }
  37. }
Advertisement
Add Comment
Please, Sign In to add comment