Re: Coding Help

HI, everyone. i have a question about open/close order in mql4. Normally, a EA opens and closes orders on the open price of the next bar ( if signal is based on the previous bar), is it possible to make the EA to open/close orders on the close price of the previous bar ( because sometime the current open price doesn't equal to previous close price ), and how to achieve that in coding? Thank you very much.

Re: Coding Help


Is there a way to order alphabetically the following list

Code: Select all


Re: Non repainting MTF histogram

Hi, I'm wondering if this is possible at all, please see the image below;
Image 4.png
The indicator below the heatmap accesses a predefined higher timeframe and shows the status of my indicators through iCustom on a lower timeframe,
The issue I'm facing is that when the state of indicators changes from bullish to bearish or vice versa on the HTF, all closed bars of the current HTF bar on the LFT will change (repaint).

The question is how can I prevent all closed bars on the LTF from current HTF bar from repainting when the HTF bar changes state except the currently un-closed bar ?

How do I go about it ? please share any code examples/snippets.

Thank you.

Re: Coding Help

Hi, Can someone please modify the following ea.

It is a martingale that when the price goes up it opens Sells and when price goes down it opens Buys. I would like it to do the opposite. That is Buy when price goes up and Sells when price goes down.

Would greatly appreciate it if anyone is able to do this.

Thank you and Best rgds
(18.19 KiB) Downloaded 12 times

  1. Similar Topics

    1. Help coding simple EA

      5 Replies 777 Views

      by Griff90, Tue Nov 13, 2018 8:36 am in Coding Help

      5 Replies
    2. Coding help for Automatic-trendlines.mq4

      0 Replies 322 Views

      by egg, Fri Sep 13, 2019 2:11 am in Coding Help

      0 Replies

Return to “Coding Help”

Who is online

Users browsing this forum: CommonCrawl [Bot] and 3 guests