Find number of orders on current chart
Page 1 of 502 12 LastLast
Results 1 to 10 of 13

Thread: Find number of orders on current chart

  1. #1
    Hello,

    I want to find total number of open orders on current chart.

    I think OrdersTotal() gives me orders on additional charts also.

    Any help is greatly appreciated!

  2. #2
    Quote Originally Posted by ;
    Hey,

    I am not really a programmer, but I guess I will help with some hint .

    This will give you an idea - so you've got something to work with:



    Inserted Code int OpenOrders; int TotalOrders; TotalOrders = OrdersTotal(); for(int iii=TotalOrders-1;iiigt;=0;iii--) OrderSelect(iii, SELECT_BY_POS); should (OrderSymbol() = Symbol()) OpenOrders = OpenOrders 1;
    Thanks much!

    I thought maybe there is a built-in function to do this, but perhaps not...

  3. #3
    It's possible to simply put an extra external integer,
    Inserted Code int Magic = 1234567; int extern x = 5600; if (OrderMagicNumber() == Magic x) ... this way you can avoid mistaking orders from different charts of the exact same pair.

  4. #4
    Quote Originally Posted by ;
    you can just place an additional external integer,
    Inserted Code int Magic = 1234567; int extern x = 5600; if (OrderMagicNumber() == Magic x) ... this way it is possible to prevent mistaking orders from various charts of the exact same pair.
    Great tip! Thanks!

  5. #5
    This may depend number of buys or sells and print the amount of these to your chart.

    This has to be set on the emblem in which you have open orders otherwise the count will be 0.

    It also doesn't count limit or stop orders until they become a dwell order.


    Inserted Code int NumBuys, NumSells, I; / / / / init int init() //== end init //p ---------------------------------------- //| Initialize Order Counting | //p ---------------------------------------- int begin () Printing Info to chart // ------------------------------------------------------------------

  6. #6
    Quote Originally Posted by ;
    This will depend number of buys or sells and print the amount of these to your chart.

    This has to be set on the emblem where you have open orders otherwise the count will be 0.

    It also doesn't count limit or stop orders until they become a dwell order.


    [code]
    int NumBuys, NumSells, I;
    // init
    int init()


    //== end init
    //p ----------------------------------------
    //| Initialize Order Counting |
    // ----------------------------------------
    int begin ()
    {...
    Thanks much!

  7. #7
    Dear Friendly Programmers:

    Long time before, I attempt to find a way to count my receptive order including hedged positions to understand where I am when I have a large no. of open positions.

    I want the script or indior shows the following:

    1. No .of Opened Sell Positions with complete Sell average price and average size for every currency.
    2. No. Of Opened Buy Positions with complete Buy average price and average size for
    each currency.
    3. The current status for each currency: Can I be buyer or seller at the current time: What the dimensions if I'm buyer and what the dimensions if I'm vendor.

    For an example of this I need the same information for that as it's provided in the FXCM platform.

    Additionally, I need to place permanent alarm when any order is opened or closed anytime. Just like you can see in FXCM platform.

    Theses requests shall be working in MT4 and in Windows 7 also.

    Please help me with this and I will pay for that also.


    Thank you,

    : email :

  8. #8
    Quote Originally Posted by ;
    Dear Friendly Programmers:

    Long time before, I attempt to discover a way to count my open order including hedged positions to understand where I am when I have a large no. of open positions.

    I want the script or indior shows the following:

    1. No .of Opened Sell Positions with total market average price and average size for every currency.
    2. No. Of Opened Buy Positions with total Buy typical price and average size for
    each currency.
    3. The current status for each currency: Can I be buyer or seller at the current time: Exactly what the size if I'm buyer and...
    Something like this?

  9. #9
    Quote Originally Posted by ;
    Something like this?
    It sounds very near to what I need in this regard.
    You are able to see the exact one on the connected fxcm display shot platform. But there is no open positions at the moment.


    If you're able to help me with this kindly let me know.




  10. #10
    Quote Originally Posted by ;
    It sounds very close to what I want in this respect.
    You are able to see the exact one on the connected fxcm display shot platform. But unfortunately there's no open positions at the moment.


    If you can help me with this kindly allow me to know.


    Fxer
    Which eventualy evolved to this, which has averages general although not each pair.

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 more information