Is this even possible in MQ4? (Capslock Toggle)
Page 1 of 612 12 LastLast
Results 1 to 10 of 15

Thread: Is this even possible in MQ4? (Capslock Toggle)

  1. #1
    I despise my charts becoming cluttered but there are a few indiors like DMAs, Daily Tenkan Sen and Kijun Sen lines, VWAP etc I believe I should see from time to time whilst formulating my egy. The apparent solution would be to have two templates that are similar and flip between the two, but if I put trendlines and fibs or whatever on the charts, they will be deleted when I turn chart template unless I save a pair of templates for every currency pair im trading etc etc it all gets messy.

    Is it possible to include some code into an indior that toggles the interval that it is visible in whenever the capslock key is pressed?
    I don't use 1M charts so could toggle the cluttered indiors between constantly visable and only visible in 1M charts? ... ie. Concealed but still on the chart

    cheers M

  2. #2
    What also came into my head, it is possible to assign(start) a script using a hotkey within MT4 itself. (rightclick script in data window, assign hotkey)
    Maybe u can do 1 script which changes the interval into some thing, and another script which changes to other interval on another hotkey

  3. #3
    Hey, DonUlti... not very.

    I supposed you leave the time of this chart as whatever time frame you want. I utilize 4H, but you can correct within every indior what interval the indior is observable. So for example you may have a moving average indior that's only visible once you're viewing a daily chart then dissapears if you switch to an other timeframe.

    I was wondering if it is possible to program the indior to switch which timeframes it'll be visible in (preferably capslock because it has a latching light onto the keyboard). eg. The chart remains in H4. When the capslock key is pressed, the indior is currently visible in all timeframes and could be seen on the chart. When it isn't pressed, the indior is only visible in 1M timeframes and so dissapears from the chart. Thereby making the capslock key a jumble on/clutter off toggle.

    MJL

  4. #4
    Quote Originally Posted by ;
    hey,... not very. I supposed you leave the time of the chart just as whatever time period you want. I use 4H, however you can adjust within every indior that which period the indior is visible in. So for instance you may have a moving average indior that is only visible once you are viewing a daily chart then dissapears if you change to an other interval. I was wondering if it's possible to program the indior to change which timeframes it'll be visible in (preferably capslock because it's a latching light onto the keyboard). eg. The...
    I don't think it's possible in the easy way, because to my knowledge there is no code in mq4 itself which can respond to a user input. It can only check for modifiions, either after every candle close or after every tick. But I'm no expert in this. I think you just easily need the line or indior to show if you press on that one button right? Difficult one.... You want it simple with one button so that you dont have to do the other mouse clicks or moves. I'd probably only create a macro for a secret (got a g510); but that's a little bit off maybe, you will need a macro keyboard for that. So within metatrader itself without other things likely not that easy. Perhaps someone else knows better

    have a wonderful weekend

  5. #5
    Quote Originally Posted by ;
    eg. The chart stays in H4. After the capslock key is pressed, the indior is currently visible in all timeframes and could be seen on the chart. When it isn't pressed, the indior is just visible in 1M timeframes and so dissapears in the chart. Thereby creating the capslock key a jumble on/clutter toggle. MJL
    Probably there is a way to code an indior similar to this, but merely with the WinAPI.
    It's hard to discover a coder who knows how to use WinAPI in mql-code.

    The simple solution, should you discover no coder:

    right click on the indior from the navigator window and assign a hotkey for it. ( I only did with Alt A on a random indior )

    Then, when you need the indior on a non-M1 chart, press the hotkey and the indior properties pop up.
    Click OK and the indior is on your chart.

    It's simple and quick and you can get it done on all Mt4 platforms without even having a coder.

  6. #6
    Quote Originally Posted by ;
    I despise my charts becoming clutterd...,,,,,, I never use 1M charts so can toggle the messy indiors between always visable and just visible in 1M charts? ... ie. Hidden but still on the chart cheers M
    //--

    hello mlewis.... Usually when specific properties are needed to be put on chosen timeframes or symbols, then you can simply code it into the init() segment.... This includes, style, colour, size, symbol(), drawline, drawnone, intervals, sma, emaetc and so on.... You can include an override choice to override the code if by chance you may want to rarely view things on all timeframes....

    Under is a very long drawn out example...h

    //-----
    Inserted Code int init()

  7. #7
    thanks for the replies everybody:--RRB-

    Quote Originally Posted by ;
    quote//-- hello.... Usually when certain properties are required to be set on chosen timeframes or symbols, you can just code it into the init() section.... Including, style, colour, size, logo (), drawline, drawnone, intervals, sma, emaetc and so on.... You're able to incorporate an override option to override the code if by chance you might want to rarely see things on all timeframes.... Below is a long drawn out illuion....
    Hello ,

    basically, I only need to discover a means for easily modifying these settings out of this: for this: without needing to go into the indior settings dialog. I am happy for this to be a script or a hotkey or anything so long as I can flip between the two setting with relative ease. In addition, I need to have the ability to apply it to multiple indiors and several cases of the identical indior (with different indior settings eg. 100 DMA, 200 DMA etc).

    MJL

  8. #8
    Quote Originally Posted by ;
    thanks for the answers everybody:--RRB- quote hello, essentially, I just have to find a means for easily modifying the following settings from this: to this:
    //--

    hello mlewis.... If talkin of visualizations from the standard sense like ma traces, on the main chart itself, that can be coded to the init() section.... Example of this'market statstics' indior seen in your post above that will only plot on the 1 minute chart....

    When talkin about visualizations from the not-normal sense like extreme indiors or expert advisor that have large amount of on screen images, another egy is needed....

    If talkin about capslock toggle style functions, zznbrm, codersguru, sangmane, bangdung or coders of that grade wll be needed...h


    https://www.nigeriaforextrading.com/...2110215755.mq4

  9. #9
    Thank you Hayseed, that actually is an extreme looking dashboard you have there! O.O

    if I find a solution to the toggle idea I will post it back here for other people to utilize:--RRB-

    MJL

  10. #10
    Set up a separate Profile for each timeframe.

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.