fxDreema

    • Register
    • Login
    • Search
    • Back to the main page
    • Categories
    • Recent
    • Tags
    • Popular
    • Search
    1. Home
    2. CPxiom
    3. Posts
    C
    • Profile
    • Following 3
    • Followers 6
    • Topics 3
    • Posts 145
    • Best 22
    • Controversial 1
    • Groups 0

    Posts made by CPxiom

    • RE: How to cancel order if it takes too long to open

      @paragorundu There is free VPS for one year at Google, and Amazon as well.

      posted in Questions & Answers
      C
      CPxiom
    • RE: HOW TO STOP OTHER/ALL EXPERT ADVISOR BY MY EXPERT ADVISOR

      @ambrogio wait... On the new project I shared, the branch with EnableEA will not work... as all charts are changed to DisableEA template.
      So the fxdreema EA is discarded as well, so the EnableEA will not get executed.
      But keep the other one, and put some other condition, like a time to execute, not range, for example. I guess I'm just tired a bit.

      So this is the downside that it closes all EAs on all charts... not selectively. But further than this, it is well over my head πŸ™‚ Maybe others could help.

      Also, there is this thread regarding terminal variables as @l-andorrΓ  suggested, but don't know if it works with non fxdreema EAs. https://fxdreema.com/forum/topic/5703/terminate-other-eas

      posted in Questions & Answers
      C
      CPxiom
    • RE: HOW TO STOP OTHER/ALL EXPERT ADVISOR BY MY EXPERT ADVISOR

      @ambrogio But that project (https://fxdreema.com/shared/TsP1m8Sib) already works for all charts, as it is. Closes all EAs, on all open charts, by changing all charts to default template, which is without EA, saved in mt4 πŸ™‚

      The other conditions I was referring to, were in fxdreema (where I'm the one to learn from you :))

      For example. In mt4 you can set up a chart without EA, and save template as "DisableEA", and then set up the same chart with EA (the one you said it's not fxdreema), and save that as template as well, and name it "EnableEA".

      Then, you can use this project (https://fxdreema.com/shared/YNPLcdZWd) with some conditions. I put here some hours, as example, (didn't test this though).

      For the new project, in Custom Mql block, all I did, was to change "default.tpl" where it writes: ChartApplyTemplate(currChart,"default.tpl");
      to EnableEA, and DisableEA. Those are the templates you save in mt4.

      PS: I'm not a coder, also πŸ™‚ (I'm a graphic designer as job) and the code for the Mql block is not mine, I found it, as I said. But it's great that it works, and I was so glad I could help πŸ™‚

      I started to understand a bit what's going on in mq4 code, but I'm still learning. Managed to modify some indicators, that's all πŸ™‚

      posted in Questions & Answers
      C
      CPxiom
    • RE: HOW TO STOP OTHER/ALL EXPERT ADVISOR BY MY EXPERT ADVISOR

      @ambrogio Hello. Found and did something πŸ™‚
      So this (the shared project) changes the template for all open charts to default.tpl
      You can make another tpl and change the custom mql code to open that, or save something different as default.
      https://fxdreema.com/shared/TsP1m8Sib

      With a duplicate and some conditions and flags? (didn't work with flags yet, personally) you could enable and disable EAs on all charts.

      For further development, it would be great if it were possible to enable and disable selectively, but didn't find yet how are the chart IDs numbered... Or by symbol? don't know.
      Anyway, hope this helps πŸ™‚

      posted in Questions & Answers
      C
      CPxiom
    • RE: HOW TO STOP OTHER/ALL EXPERT ADVISOR BY MY EXPERT ADVISOR

      @l-andorrΓ  @ambrogio ... Yes, it seems so πŸ™‚ I checked and manually changed the template of a chart with EA, and the EA was removed. Then created a template with EA on it, and changed back and forth with same template without EA and it works πŸ™‚ It looks like the Ea is loaded and unloaded, yet it is the same template saved two times, with and without EA.
      So yes it seems that block would solve it πŸ™‚ Overlooked that block. Thanks.

      posted in Questions & Answers
      C
      CPxiom
    • RE: Heiken ashi moving average

      @satham Hello, - In condition change "is above" with "crosses above", because above can be anywhere, even at some high.... for example after you take profit.
      And I guess you should specify you want the open of - bull or bear candle.

      posted in Questions & Answers
      C
      CPxiom
    • RE: HOW TO STOP OTHER/ALL EXPERT ADVISOR BY MY EXPERT ADVISOR

      Further digging πŸ™‚ I found this library (mt5) for the experts remove function I mentioned.
      As I see, this function also needs to specify chart ID.
      So... for mt4 and maybe mt5 as well if no libraries, the solution would be to change template (with EA, without EA? - is this possible? or other random template?), then revert to the one with EA (if possible) if market context is favorable (as seen by Manager EA). That would be great πŸ™‚
      Just some Ideas, didn't had time right now to do the tests and try these out.

      posted in Questions & Answers
      C
      CPxiom
    • RE: HOW TO STOP OTHER/ALL EXPERT ADVISOR BY MY EXPERT ADVISOR

      @ambrogio I'm not experienced at all πŸ™‚ yet I will write here... found these.
      I posted this on your other thread as well, so this is a duplicate.
      Maybe someone more experienced can compile a working Custom mql from all these examples. Looking at all these, I guess the chart way is the way.
      .................................
      @ambrogio I did some documentation and I found all these...

      There is some code down here, and I'm thinking setting up a boolean if that's possible.
      https://docs.mql4.com/runtime/tradepermission
      But closing Auto trading feature would terminate the handler EA itself.
      So maybe trying to get the magic number of the running EAs and terminate those only would be great. Then in this Handler EA, you could even set up some conditions to check for a certain market context, and make some kind of a Manager EA.
      Also, another way to go, would be to close certain charts. Closing the chart with some EA, closes the respective EA as far as I know.
      ... Or I found this
      // Deletes the Expert Advisor form the appropriate chart
      bool EXPERT::Remove( const long Chart_ID = 0 );
      don't know if this is for mt4 or mt5.
      Also...
      It says here
      https://www.metatrader4.com/en/trading-platform/help/autotrading/experts/experts_remove
      that "the expert can be removed from the chart at profile or template change" so there could be a function to change template on some chart, also.
      Examples here
      https://www.mql5.com/en/docs/chart_operations/chartapplytemplate

      posted in Questions & Answers
      C
      CPxiom
    • RE: TURN Off MT4 Autotrading

      @ambrogio I did some documentation and I found all these...

      There is some code down here, and I'm thinking setting up a boolean if that's possible.
      https://docs.mql4.com/runtime/tradepermission
      But closing Auto trading feature would terminate the handler EA itself.
      So maybe trying to get the magic number of the running EAs and terminate those only would be great. Then in this Handler EA, you could even set up some conditions to check for a certain market context, and make some kind of a Manager EA.
      Also, another way to go, would be to close certain charts. Closing the chart with some EA, closes the respective EA as far as I know.
      ... Or I found this
      // Deletes the Expert Advisor form the appropriate chart
      bool EXPERT::Remove( const long Chart_ID = 0 );
      don't know if this is for mt4 or mt5.
      Also...
      It says here
      https://www.metatrader4.com/en/trading-platform/help/autotrading/experts/experts_remove
      that "the expert can be removed from the chart at profile or template change" so there could be a function to change template on some chart, also.
      Examples here
      https://www.mql5.com/en/docs/chart_operations/chartapplytemplate

      posted in Questions & Answers
      C
      CPxiom
    • RE: Implementing MA and RSI indicator

      @zuwz Thanks πŸ™‚ I know how to put up the conditions, but thanks for being willing to help.
      In my reply, I also shared an indicator, which I see it is approximatively similar to what you found. Made it after an ma-atr indicator found on this site, and added some ma and price options, as well as mtf (multi time frame).

      I was saying about settings, for example on M5 rsi of 12, etc, but don't know why asked, lol πŸ™‚ because that so depends, anyway.
      I'm using forward testing lately, as results really do differ... and on any little tweak I have to wait a lot, to see how it plays out... but as I said, no use of settings anyway as everything depends on everything else we use for the ea.
      Good chance! πŸ™‚

      posted in Questions & Answers
      C
      CPxiom
    • RE: average true range

      @gunji80 Hello, you should put crosses above, and at the candle, put candle id 1.

      Regarding width, I don't know, I don't use that feature. I leave it at one. I guess more width, would calculate two or more candles instead of one, in case of a crossover, let's say.

      posted in Questions & Answers
      C
      CPxiom
    • RE: average true range

      @roar Lol, didn't see your post. It appeared while typing I guess. πŸ™‚ Can't delete.
      But maybe two answers give assurance πŸ™‚

      posted in Questions & Answers
      C
      CPxiom
    • RE: average true range

      @gunji80 I guess you're talking about ADX not ATR?
      ATR doesn't have +di, -di signals, it measures the average size of candles over a period.
      If you choose ADX (Average directional movement index) in the conditions block, you will find +di, -di, and base signal at ADX mode.

      posted in Questions & Answers
      C
      CPxiom
    • RE: Implementing MA and RSI indicator

      @zuwz Made this indicator, mtf, you can import it.
      0_1566951453381_ma_rsi_mtf.mq4

      I'm not a programmer, but learned a few things, and still learning.
      If you have success with it, please come back and share settings πŸ™‚
      I guess those are equally important as the indicator.

      posted in Questions & Answers
      C
      CPxiom
    • RE: SMA direction

      @fxayreo Why don't you do the same to SMA as you did with the stochastic. SMA 50 (more options) -> candle ID 1 is above SMA 50 candle ID 2. That means SMA 50 goes up.

      posted in Questions & Answers
      C
      CPxiom
    • RE: Draw arrow, distance on chart.

      Position arrow at candle high or low, then at adjust give + or - 5, 10, or some value.

      posted in Questions & Answers
      C
      CPxiom
    • RE: .ex4 CUSTOM INDICATOR WITH INACCESSIBLE SOURCE CODE

      @ituinvests There is this indicator Buffer explorer.
      https://fxdreema.com/forum/topic/7612/useful-buffers-explorer-indicator-find/2

      Also if you do a search "ex4" on fxdreema you will see how you can access, but some still don't work, sometimes.

      posted in Questions & Answers
      C
      CPxiom
    • RE: Bollinger Bands Distance to Take Profit

      @vbonovski Detach -close conditions and close trades blocks- from sell now buy now, and try.
      Then, if it doesn't work, try candle Id 1 for close, OR change to market properties ask line whatever, for cross (with id 0, to not wait close of candle)

      posted in Questions & Answers
      C
      CPxiom
    • RE: Calculation drawdown of balance and equity in mql5

      @pontedruse From what I understand, this is about equity vs balance. This was my very first question on FxDreema. It is for stop loss case, but I guess it could be for bucket of trades also. Here is the post.
      https://fxdreema.com/forum/topic/6480/stop-losable-positions-at-1-of-equity

      posted in Questions & Answers
      C
      CPxiom
    • 1
    • 2
    • 3
    • 4
    • 5
    • 6
    • 7
    • 8
    • 5 / 8