Any script that opens a template on all open charts? -
1 2 3 4

thread: Any script that opens a template on all open charts?

  1. #11
    Junior Member alberpkparra94's Avatar
    23
    Very cool... however when I attempt to compile it I get this error.

    'GetParent' - purpose is not defined.

    Being the non coder I am I don't know exactly what it's having ...

    it shows that the mistake dot on the subsequent line.

    Int intParent = GetParent (WindowHandle (Symbol () , Stage () ) );

    What I am considering is to get two copies of this script and then assign each a distinct template then assign each copy of the script a hot secret... With my G11 (logitech) keyboard the scripts would then be but one keystroke away. .

  2. #12
    Senior Member Tataylo's Avatar
    435
    Strive attached script. Set templateIndex consumer parameter to the index value of the template you want to load. For the very first template in your listing, set to 0 ; for the second template in your listing, set to 1; etc.. .

    See this article for a little more info:

    https://www.cliqforex.com/trading-sy...d-gbp-jpy.html
    Yes, really slick.

  3. #13
    Junior Member samwlsok's Avatar
    28
    Strive attached script. Set templateIndex consumer parameter to the index value of this template that you would like to load. For the very first template in your list, set to 0 to the second template in your list, set to 1; etc.. .

    Watch this article for a little more information:

    https://www.cliqforex.com/trading-sy...r-ea-free.html
    You, my friend, receive a vouch.... Very slick, indeed.

  4. #14
    Junior Member Kavalieri's Avatar
    21
    Anyone ever seen a script which will load a particular (of my choice) template on all available charts?
    Strive attached script. Set templateIndex consumer parameter to the index value of the template that you want to load. For the first template in your listing, set to 0 for the second template in your listing, set to 1; etc.. .

    Watch this article for a little more info:

    https://www.cliqforex.com/general-fo...shift-pst.html

    Edit:

    Script removed from this article (include file causing compiler issues for some).

    See following article for script (no compile issues):

    https://www.cliqforex.com/trading-sy...t-gbp-jpy.html

  5. #15
    Senior Member Tataylo's Avatar
    435
    Anyone ever seen a script which will load a particular (of my choice) template on all available charts?

    I've one that will change all open charts to specified time period, nice to get thanks to zznbrm .
    Tommy,

    It is not possible to call a template out of a script with the MQL4 language.

    It may be possible to 'get inside' the MT4 executable as zznbrm has seemingly done in case you posted, but that is beyond the level of my comprehension.

    David

  6. #16
    Junior Member nereytta's Avatar
    15
    wow.... Magic, works good for most of my charts!

  7. #17
    Senior Member Tataylo's Avatar
    435
    dont talk ridiculous . It's possible . I did it
    What MQL4 command did you use? Can it be available before the release of build 600 in Feb 2013?

  8. #18
    Junior Member LauraHM10's Avatar
    23
    quote dont speak silly . It's possible . I did it
    Did you know that you talk about alternative accessible 2011?

  9. #19
    quote Tommy, It is not possible to call a template out of a script with the MQL4 language. It might be possible to 'get inside' the MT4 executable as zznbrm has apparently done from case you posted, but that is beyond the level of my comprehension. David
    dont speak ridiculous . It is possible . i did it

  10. #20
    Thank you zznbrm .

    Is there a way I can make the index value default to a different value rather than '0', e.g. '17'? Have you any idea which part of the code I want to change to change this default option value? I am aware I create unique presets then load these every time but it would be better for me when I could create a different script for every template that I want to use this for.

    I also was wondering if anybody had discovered a script to load the exact same currency pair on to all charts? This would complete the set for me!

    Thank you for any help

  •