Re: Coding Help

#1081
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

#1083
Hello,

Is there a way to order alphabetically the following list

Code: Select all

 string  MySymbols       = "AUDUSD;EURUSD;GBPUSD;USDCAD;USDJPY;USDCHF;AUDCAD";

QuestionRe: Non repainting MTF histogram

#1084
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

#1085
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
frank_close_5d.mq4
(18.19 KiB) Downloaded 87 times


Re: Coding Help

#1086
Dear mrtools
i want a coding service to convert some mql4 indicators to easy language indicators. i am serious and i will send you a PM. Thank you very much.

Re: Coding Help

#1088
Intrest 1 wrote:
Thu Mar 05, 2020 3:51 am
Dear mrtools.
The indicator is not displayed for price types HO_2, HL_2.
This is double the value of open close high.
Please correct the code error
Don't think that will work because the number you come up with is larger than the moving average.

Re: Coding Help

#1089
mrtools wrote:
Thu Mar 05, 2020 8:33 am
Intrest 1 wrote:
Thu Mar 05, 2020 3:51 am
Dear mrtools.
The indicator is not displayed for price types HO_2, HL_2.
This is double the value of open close high.
Please correct the code error
Don't think that will work because the number you come up with is larger than the moving average.
The market course in this situation is exactly two times greater than the sum of open and HO HL / 2.
Double the value of this range gives good take profit levels.
This principle of this asymmetry
Screenshot_951.png

Re: Coding Help

#1090
mrtools wrote:
Thu Mar 05, 2020 8:33 am
Intrest 1 wrote:
Thu Mar 05, 2020 3:51 am
Dear mrtools.
The indicator is not displayed for price types HO_2, HL_2.
This is double the value of open close high.
Please correct the code error
Don't think that will work because the number you come up with is larger than the moving average.
Oh yeah.
I understood my mistake.
You just need high-low for take profit


  1. Similar Topics

    1. Coding

      0 Replies 384 Views

      by Mukhari325, Mon Jul 20, 2020 8:50 pm in Trading Systems

      0 Replies
      384 Views
    2. Need coding help, if possible!

      2 Replies 670 Views

      by brenofguedes, Thu Mar 12, 2020 2:05 pm in Coding Help

      2 Replies
      670 Views

Return to “Coding Help”