fxDreema

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

    CPxiom

    @CPxiom

    25
    Reputation
    1814
    Profile views
    145
    Posts
    6
    Followers
    3
    Following
    Joined Last Online

    CPxiom Unfollow Follow

    Best posts made by 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: Useful "Buffers explorer" indicator find :)

      @trader-philipps Yes, you're right πŸ™‚
      @paragorundu wrote that "Formarly I was creating EAs to read buffer values but this is a better solution" so I thought the intention was to use the buffer values from this indicator to create an EA..

      I looked at the indicator code and it was really easy to modify. I've put here 10 buffers. If more needed, let me know. I'm not a programmer, just learning...
      Didn't test this, but it should work. Buffers explorer.mq4

      posted in Tutorials by Users
      C
      CPxiom
    • RE: Use EA to attach and indicator to a chart

      @mole Hi, this is from an old post named apply template. https://fxdreema.com/forum/topic/3658/apply-template/9
      The solution is from fxDreema. https://fxdreema.com/shared/EooHSxoKb
      Also, as it writes here https://fxdreema.com/forum/topic/5361/how-to-apply-template, put .tpl in the name field also.

      Or you could do a custom mql block, and paste this into it. ChartApplyTemplate(currChart,"SomeTemplate.tpl");

      Hope it works πŸ™‚

      posted in Questions & Answers
      C
      CPxiom
    • RE: Generate a random chart

      @roar Great thread and idea!
      AND most importantly... it follows that -there is order- in the market.
      After seeing backtests where unreliable, at least for my kind of approach (tf used, etc), I moved to forward tests. In 4 months, I ended up working only on two EAs, for the most part.
      Even if conditions change from month to month, week to week, day to day, hours in a day, news, etc, I would say that watching the charts and how the EA performs, tweaking, etc, I learned a lot without me wanting to necessarily, lol... and slowly boils down to some particulars. Will see what comes out from this.
      But, yes, an EA not working on random, means "it" gets (or the EA creator, lol πŸ™‚ ) some particulars.
      And as building approach, I have put the Money management aside, to be included when the EA is already profitable, so I know it has good strategy. The added MM would only make it even more profitable, so it's an add on (in my view).

      posted in General Discussions
      C
      CPxiom
    • Useful "Buffers explorer" indicator find :)

      Found a useful indicator for fxdreema users, called Buffers explorer.
      We can see buffers for chosen indicator, in separate subwindow.

      I find it very useful, thought to share.

      Buffers explorer.mq4

      posted in Tutorials by Users
      C
      CPxiom
    • RE: How to Have Bot Buy/Sell When it Hits Tread lines in Picture

      @laneciar Glad I was of help. I'm also quite a newbie, but learning.
      At the top of all condition blocks, you could use a - No trade - block. That way, the underlying chain of blocks, triggers only if there is no trade. Also, you could give it a Break even block, tied to the else point (orange).
      So... If no trade... then chain of blocks. Else, (meaning when trade) > BE function.

      posted in Questions & Answers
      C
      CPxiom
    • RE: Finally , Integration of News Filter :) [ MT4 Only ]

      Hello all,
      Long time no see @ambrogio, @l-andorrΓ  πŸ™‚
      I managed to put all the code from the "Copy this content On Global Scope" into a custom block, in the custom block studio, here: https://fxdreema.com/studio/MQL4, thanks to more detailed instructions and tutorial from here, where it explains what goes where, with A, B, C, D, E, in the picture: https://fxdreema.com/forum/topic/13655/tutorial-create-custom-blocks-with-fxdreema-studio/3
      So for this particular case, from the "Copy this content On Global Scope" block, what goes into section B, is this0_1655160807100_Screenshot 2022-06-14 at 01.52.04.png
      The enum part has to be edited out, and changed with int SourceNews, like in the picture above, as it still throws an error on compiling the ex4.

      Everything else, goes into section E, like this, 0_1655163214460_Screenshot 2022-06-14 at 02.30.24.png piece by piece: CheckDailyFXNews, CheckInvestingNews, etc... from bool, or void or what is, with the open curly brackets, till the corresponding closing curly brackets, for example CheckDailyFXNews like this:0_1655162914350_Screenshot 2022-06-14 at 02.27.43.png

      After you save the block in the studio, (Save changes - up in the left corner), you can find it in the builder in the custom blocks tab.
      Then just take it from there and connect it with a pass, and everything compiles directly from fxdreema, like here in the share from padletut: https://fxdreema.com/shared/LCnSF6OCd

      I hope this helps.

      Further, I would have some questions: So the conditions block from the shared project is designed to not allow trading in the selected news (high medium low) where is set as true? And also the 30, 60 values named as indent - define the 60 minutes 30 minutes before and after the news event - and in that time trading is not allowed? Do I understand correctly?

      posted in Tutorials by Users
      C
      CPxiom
    • RE: L'indicator AD

      @roar Very Helpful hint. Didn't thought of that. Thank you.

      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: 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

    Latest posts made by CPxiom

    • RE: "Right Price" Target

      @Denim In EAs, always use candle ID 1, not 0, otherwise, candle ID 0 not being closed, it will repaint, or calculate wrongly. So: more settings > CandleID 1, to draw the lines, or to reference the ma 150.(candleID1), but you could use the 150 ema directly, why draw the line... just for visual representation maybe.
      The Horizontal lines can have a prefix, it could be Highest & Lowest... then you can reference those lines based on the prefix. Angle 90.
      Marker property Ask / Bid is based on tick ID, so it can be tick ID 2 is above "Highest"(prefix) line, tick ID 1 is below. Edit: But it's not necessary. U could use Ask / bid X> crosses above / below the line, or candle close, or MA1, depends on the strategy.
      To close: If trade> condition block with ema 150 cross over up for buys, down for sells > close trades.
      Also put a stop loss in place...
      Range strategies will certainly lose at one point, when the trend will happen. Usually for u it will be a trigger for sell, but the price will break out then the uptrend will happen with you in a loss.

      As for strategies... I guess it will take a period to check out indicators, styles of trading, then you will have preferences, and hone in slowly.

      posted in Questions & Answers
      C
      CPxiom
    • RE: "Right Price" Target

      @Denim You can find ADR indicator with Google, but It was a just a guess that it is ADR. From what you showed, the principle is like a strategy with an oscillator, combined with a revert to mean. These were like suggestions that might duplicate the results another way around.
      To build an EA, check the forums, tutorials. It can be done, this is a website to build EAs, it's the reason to be here. You can use objects on chart, like lines, or various indicators, if that is what you're asking.

      posted in Questions & Answers
      C
      CPxiom
    • RE: Only 1 of 2 strategies within EA opens a trade

      @Ads For further optimisation, there are those blocks check positions count... 109, 110.. that check if positions <=0 which is redundant if you have blocks 111 and 112 "no position". And then you still have to specify groups in trailing stop, and close trades as I mentioned in my first comment.

      Also, The numbering of the blocks is important, especially those at the head of the tree. First tree could start with 1, then the second tree 2 a.s.o, (as these numbers represent the order of operation), then bigger numbers, smaller numbers within those trees, then you can do Options>project options>normalise IDs. This option will take into account your specified ordering of blocks, but will trim down the number in the blocks IDs.

      posted in Questions & Answers
      C
      CPxiom
    • RE: Only 1 of 2 strategies within EA opens a trade

      @seb-0 That is what I was looking at right now... in both group 1 and group 2 area... you used block check position count == 0... then you have those conditions blocks where the value has to be lower than max trades per day, but I don't think it can get there if you have that condition above of == 0.

      Edit: Sorry. So if you you have No position block at start, then that check position count block is of no use anyway... (redundant) if it is used for ==0.
      And yes that condition block lower counts trades per day not positions so it's ok. That was my mistake with was I wrote above

      posted in Questions & Answers
      C
      CPxiom
    • RE: Only 1 of 2 strategies within EA opens a trade

      Hi, the only minor problems I can see is that at trailing stop group2 you forgot to specify group 2, and also in the global operations area, the close trades block, because you used groups, you should specify like this: 1, 2 in the group field.
      I can't see anything other than that, and all of this is related to closing positions, so I don't think this has to do with your problem, everything seems correct.

      posted in Questions & Answers
      C
      CPxiom
    • RE: "Right Price" Target

      @Denim In my opinion it seems that is based on ATR. If the line changes every hour, then the timeframe used to calculate is 1h, with an ATR of 24. This would calculate an average candle size for 24h, a range, and right price would be the middle of it... ? Maybe :). So basically (maybe) it's an ADR indicator (Average Daily Range)
      Anyway, this seems to do what an oscillator would do, and the strategy like a reverse to mean strategy.

      posted in Questions & Answers
      C
      CPxiom
    • RE: Once per bar

      Check if you have set CandleID1.

      posted in Questions & Answers
      C
      CPxiom
    • RE: Forum update

      @fxDreema Yes, the two favicons were different, and it was very handy as we keep multiple tabs opened, and it was easy to identify forum or builder. Btw the Icons are great πŸ™‚

      posted in Questions & Answers
      C
      CPxiom
    • RE: Forum update

      @fxDreema Hello, it seems favicon is missing, or it looks changed. Using Safari. Screenshot 2023-02-24 at 13.07.20.png

      posted in Questions & Answers
      C
      CPxiom
    • RE: Finally , Integration of News Filter :) [ MT4 Only ]

      @tec-nacks I will look into it in more depth later, have to re-remember πŸ™‚ but for now, maybe it has to do with a missing variable named "trade". Make a variable named "trade" and then try to compile.

      posted in Tutorials by Users
      C
      CPxiom