How to give a manually entered trade the same MagicNumber as EA
Page 1 of 612 12 LastLast
Results 1 to 10 of 18

Thread: How to give a manually entered trade the same MagicNumber as EA

  1. #1
    Hi

    When I've a EA that adjusts the TP's of over one order on a particular pair to a particular amount .How do I give a manually entered order the magic number as the the orders entered from the EA so the EA will manage the manual orders also or is there no way?

    Thanks for your time



  2. #2
    Quote Originally Posted by ;
    quote Works perfectly.Thank you very much
    Glad I could help.

  3. #3

  4. #4

  5. #5
    I will try it like this then


    double GetCurrentTPBuy(){
    double tp=0.0;
    for(int x=0;xlt;OrdersTotal();x ){
    if(OrderSelect(x,0) OrderSymbol()==Symbol() ( OrderMagicNumber()==MagicNumber || OrderComment()== ManualTrade ) OrderType()==OP_BUY)
    tp=NormalizeDouble(OrderTakeProfit(),Digits);
    break;

  6. #6
    Depending on your requirements, another option is to produce your own buy and sell buttons for setting manual orders. The buttons may assign the magical number when they start the order

  7. #7
    Quote Originally Posted by ;
    Depending on your needs, another option is to create your own buy and sell buttons for setting manual orders. The buttons can assign the magical number when they open the order
    Yes.This also seems good.I initially was thinking something along that like as nicely with a script or something but a button seems fine.

    Thank you

  8. #8
    Quote Originally Posted by ;
    Depending on your own requirements, another option is to produce your own buy and sell buttons for placing manual orders. The buttons may assign the magical number when they open the order
    Yes that's a great alternative!

  9. #9
    Quote Originally Posted by ;
    quote Yes that's a great solution!
    LOL

    Thank you

    But I will search for a better way.Thank you for your own comment clarifiion.Will see how that functions

    All of the best



  10. #10
    You can produce a script for your guide order, then it's possible to insert a magic number

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.