Coding help - page 397

 
QuantF:
Try to programmatically find a formation with two growing highs and lows.

MIN 1 and MAX 2 easy to find.

MAX1 and MIN 2 tried to find using the ZigZag. Not a good identification.

Advise how best to programmatically determine "MAX 1 and MIN 2".

Try using ArrayMaximum() and ArrayMinimum() functions for that

 
mladen:
Try using ArrayMaximum() and ArrayMinimum() functions for that

If you look between MIN1 and MAX2, then the minimum will be immediately after the bar MIN 1. To exclude this segment and begin the search after rising from MIN1.

 
QuantF:
If you look between MIN1 and MAX2, then the minimum will be immediately after the bar MIN 1. To exclude this segment and begin the search after rising from MIN1.

Sorry, but what are you asking?

If you want to find the maximum or the minimum in a specified segment of values (prices) that ArrayMinimum and ArrayMaximum are doing the job quickly and efficiently

 
mladen:
Sorry, but what are you asking? If you want to find the maximum or the minimum in a specified segment of values (prices) that ArrayMinimum and ArrayMaximum are doing the job quickly and efficiently

After identification MIN1 and MAX2, it turns out the next range to search.

MIN2=ArrayMinimum(val,MIN1-1,MAX2+1);// The minimum will be the next bar following MIN1[/CODE]

To avoid this, came up with the following:

[CODE]Extern double raznica=0.005;

Tral= MIN1;

if (Bid >Tral)Tral=Bid;

Dn= Tral-Bid;

If (Dn > raznica){Pmax=Tral// Intermediate maximum }

The idea is similar to the ZigZag.

Need to catch the peaks and troughs in the range.

It will be easier to write an indicator than the expert.

Do not pay attention to post #3963.

Consider post #3964. How to put the arrow on the buffer in the past?

After receiving an interim maximum equivalent thereto intermediate the minimum.

When falling updated its minimum value.

With an increase in a certain number of points we fix its value.

 

Hi,

how is it possible to run an optimization and get from every run/pass a strategy report?

I know the "SummaryReport-Library" from Metaquotes

https://www.mql5.com/en/code/8264

So do you know a way I can get a strategy report from every run? I tried to call it in the deinit-function, it doesn't work :-(

 

Please i need help with xtreme binary robot ultimate edition,

I want it to have option so that i can put it on any corner of my chart. As it is it can only appear on the upper left corner.

 
badruf:
Please i need help with xtreme binary robot ultimate edition, I want it to have option so that i can put it on any corner of my chart. As it is it can only appear on the upper left corner.

Badruf, do you have the original source code, that version is decompiled?

 

Hi Mrtools,

I added 2 accelerator indicators in same window I cant understand what is wrong with this code. please correct this code and also color change at zero line crossing not according to original indicator color change.

Files:
acc.png  35 kb
 

Dear mrtools and mladen

I wish to ask you 2 favors.

First, I have the M-Candles ( who show daily candle in 4H chart).

It is possible to change it, to show HA candle instead regular candle?

Second favor-you can add the NZD to MultiPair trend_v2.1?

Thank you very much for your time and help.

My best regards

Dan

Files:
 
alpha24:
Hi Mrtools, I added 2 accelerator indicators in same window I cant understand what is wrong with this code. please correct this code and also color change at zero line crossing not according to original indicator color change.

Hi Alpha, got it working and changed the coloring to zero line cross.

Files:
Reason: