Position Size Calculator

Discussion in 'MetaTrader Indicators' started by Enivid, Mar 27, 2012.

  1. Gehan

    Gehan Newbie

    4
    1
    1
    For programming this "panel control" keep in mind the following (I am not a programmer). This is a verry good straight forward indicator and I think you can keep it that way also in the furture by means of a trick. There are only two possibillities:
    1. Chart not closed: keep it as it is;
    2. Chart closed and opened again single or as part of a profile:
    • When there are no running trades: Keep it as usual
    • When a trade is running on the chart: (Trick) read everything from the chart itself like "stop loss", "take profit" e.o. The trader gets an actual presentation of his trade and can play arround with it. Traders are normaly not interested anymore in settings when the trade is placed and running. I don't think its neccesary to save a lot data this way. The only problem I see is that possible more than one trade is runing on a chart.
     
  2. speedytina

    speedytina Trader

    13
    3
    19
    Thanks for your consideration.
    I've said it before and I'll say it again, that your PSC is hands down the best trading tool I have ever come across!
     
  3. Enivid

    Enivid Administrator Staff Member

    9,295
    327
    114
    Position Size Calculator has been updated to version 2.08. Among other things, it adds features suggested by the forum users @Gehan (thanks for a lot of testing!) and @speedytina.

    EDIT: Please do not forget to get the latest PSC-Trader (version 1.05) if you plan using the script in MetaTrader 5 with PSC version 2.08. Older versions of the script do not work with the latest PSC indicator in MT5.
     
  4. eyekoms

    eyekoms Newbie

    4
    2
    4
    Hey Enivid,

    I just saw today, that there are 2 new versions out, one with my suggestion. Thank you so much for your work!

    The last days, I noticed an issue. I tried to change the color and the style of some lines, but that didn't work. I have to close and restart the indicator to make such changes.

    Thanks!
     
    Enivid likes this.
  5. Enivid

    Enivid Administrator Staff Member

    9,295
    327
    114
    Thanks for reporting! I will look into it and will try to fix it as soon as possible.
     
    eyekoms likes this.
  6. eyekoms

    eyekoms Newbie

    4
    2
    4
    Thanks and thank you again for your work, it is really a great tool! I use this now for months and I don't want to miss it anymore.
     
  7. Enivid

    Enivid Administrator Staff Member

    9,295
    327
    114
    Position Size Calculator has been updated to version 2.09. It fixes the bug reported by @eyekoms. The appearance of the entry, SL, and TP lines can now be changed via input parameters without reloading the indicator. It also means that now, you have to change how the lines look (color, style, and width) via input parameters, otherwise (if you change them directly on chart), the changes will not be preserved on timeframe/template/profile/ switch.

    The new version also fixes the bug in the MT5 version of PSC with incorrect label color settings.
     
    eyekoms likes this.
  8. dsk

    dsk Newbie

    4
    0
    1
    Hi @Enivid I was trying the legacy version with my broker. Currcy pairs are OK. but i'm facing the perfect lot size problem with XAGUSD. Kindly see the Screenshot
    [​IMG]

    Thank you
     
  9. Enivid

    Enivid Administrator Staff Member

    9,295
    327
    114
    @dsk, please make sure that you are using the latest version of the legacy PSC (1.29). I do not get such an error when trying your broker's demo account. From the screenshot, it looks like you are using it on a live account. However, I do not have a live account with XtreamForex, so I cannot test it there. There is a possibility, that their specification for XAGUSD is set incorrectly. This sometimes happens. You can try reporting it to them.
     
    dsk likes this.
  10. dsk

    dsk Newbie

    4
    0
    1
    Yes I think they set the specification wrongly
     
  11. aamara

    aamara Trader

    2
    0
    6
    Hi,

    I am trying to use the script (latest version) but it doesn't open any trade instant or pending. I have set the script tab details to the maximum in order to test it but with no luck?!

    Appreciate if u could advice what might be the issue.

    I am using live account with Xm.com broker MT4
     
  12. Enivid

    Enivid Administrator Staff Member

    9,295
    327
    114
    What is the output in the Experts tab of the terminal when you launch the script?
     
  13. aamara

    aamara Trader

    2
    0
    6
    NO... I have got nothing as nothing happens when attached it to a chart!
     
  14. Enivid

    Enivid Administrator Staff Member

    9,295
    327
    114
    That's very strange. I recommend re-installing your platform. At the very least, there should be system messages about script initialization/deinitialization in the Experts tab log.
     
  15. dsk

    dsk Newbie

    4
    0
    1
    @Enivid I would like to have the version 1.16.

    Thank you
     
  16. Enivid

    Enivid Administrator Staff Member

    9,295
    327
    114
    Here it is. You would need to fix some compilation errors because there have been some important changes to MQL language in recent MT4 builds.

    PS: Why do you need this old version? It probably also has some calculation bugs.
     

    Attached Files:

  17. dsk

    dsk Newbie

    4
    0
    1
    Thank you @Enivid and there is nothing special . I would like to see the code difference from old to New(I see one aditional mqh in newer so i try to understand). that's why needed.
     
  18. Michael618

    Michael618 Trader

    11
    5
    14
    I will have to start to use commission field.
    I read about it, but i'm not yet sure how to enter it
    if for example, commission is 6$ per lot, should we enter 6.00 in the field?



    Also, one small thing about window location when minimizing it
    It appears there are 2 different windows altogether there
    Maximized and minimized
    When I move one around the screen, the other one doesn't follow
    Would it be possible to keep their location in sync?
    By location, i mean top-right corner of the window
     
    Enivid likes this.
  19. Enivid

    Enivid Administrator Staff Member

    9,295
    327
    114
    Is it $6 for opening and then $6 for closing? If so, then yes, you should enter 6 in the field.

    Yeah, MetaTrader treats minimized and maximized windows as separate windows - hence different locations are possible. I will look if it can be fixed without breaking into the standard MQL libraries.
     
  20. Michael618

    Michael618 Trader

    11
    5
    14
    Thank you
    So we need to give commission only for opening/closing, not full commission.
    I think this is valuable information to add on the webpage.


    With minimizing/maximizing,
    I've looked a little into the code,
    At first glance, apparently it boils down to CRect class, I believe

    I don't know now exactly if each window has its own Crect (I guess so)
    In this case, i guess it would be needed to change coordinates of active CRect with the inactive one.
    Or adding a CPoint parameter, with the new corner, to Maximize() and Minimize() methods?
    Maybe I'm talking gibberish, so i'll stop now :D
     

Share This Page