What is wrong with this script?
Page 1 of 732 12 LastLast
Results 1 to 10 of 312

Thread: What is wrong with this script?

  1. #1

  2. #2
    I just found the answer. It works although I get an error 130.

    Ticket=OrderSend(GBPUSD,OP_BUY,0.1,MarketInfo(GBPU SD,MODE_ASK),3,MarketInfo(GBPUSD,MODE_ASK)-20*Stage,MarketInfo(GBPUSD,MODE_ASK) 22*Stage);

  3. #3
    Emphasize OrderSend and hit F1.
    1) notice the function returns an integer -
    That's an important amount - use it
    two) tp and sl are at price, not pips
    3) use GetLastError

  4. #4
    Quote Originally Posted by ;
    Highlight OrderSend and hit F1.
    1) notice the function returns an integer -
    that is a significant amount - use it
    two) tp and sl are in price, maybe not pips
    3) use GetLastError
    I have uploaded a new script at the very first thread. Have you any idea why that doesnt work?

  5. #5
    Insert this following your print announcement:
    Printing(err msg: ErrorDescription(GetLastError()));
    ps: also, if you're on a 5-digit broker your points won't work.

  6. #6
    Quote Originally Posted by ;
    insert this following your print announcement:
    Printing(err msg: ErrorDescription(GetLastError()));
    ps: also, if you are on a 5-digit broker your points won't operate.
    I do not get an error message. I am looking for a 4 digit broker.
    https://www.forexsoutheast.asia/atta...1986971802.mq4

  7. #7
    The very first print control changed to an order command and it tells me this is the error. Parameter expected.

  8. #8

  9. #9
    Quote Originally Posted by ;
    the first parm must be emblem
    But how can I do that? It works if I write emblem() but it is not the current emblem I need. That's why I use marketinfo.

  10. #10
    Ticket=OrderSend(MarketInfo(GBPUSD,MODE_ASK),OP_BU Y,0.1,Ask,3,Ask-20*Point,Ask 22*Point);

    ticket=OrderSend(GBPUSD,MarketInfo(GBPUSD,MODE_ASK ),OP_BUY,0.1,Ask,3,Ask-20*Point,Ask 22*Stage);

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
This website uses cookies
We use cookies to store session information to facilitate remembering your login information, to allow you to save website preferences, to personalise content and ads, to provide social media features and to analyse our traffic. We also share information about your use of our site with our social media, advertising and analytics partners.