Gerard William G J B M Dinh Sy
Gerard William G J B M Dinh Sy
  • Information
2 years
experience
0
products
0
demo versions
0
jobs
0
signals
0
subscribers
Hello. I'm looking for the holy grail, or failing that, the alpha, or at worst, money, and if possible, without doing anything.
Gerard William G J B M Dinh Sy
Gerard William G J B M Dinh Sy
Good morning
more than enough searching for OORs

here is the first draft of a function

replace Error() with Alert() or your own error display functions

bool OORCheck( const string p_Function,
const int p_ArraySize,
const string p_ArrayName,
const int p_Index,
const string p_IndexName
)

{
if ( p_Index < 0) {
Error( StringFormat("%s: Index %s %d is out of range in %s. It is less than 0.",
p_Function, p_IndexName, p_Index, p_ArrayName));
return false;
}

if ( p_Index > p_ArraySize) {

Error( StringFormat("%s: Index %s %d is out of range in %s. It is greater than or equal to array size %d.",
p_Function, p_IndexName, p_Index, p_ArrayName, p_ArraySize));
return false;
}
return true;
}
Gerard William G J B M Dinh Sy
Gerard William G J B M Dinh Sy 2024.08.10
Exemple of use OORCheck( __FUNCTION__, ArraySize( pa_Buffer), "pa_ Buffer", p_beg, "p_ beg"); OORCheck( __FUNCTION__, ArraySize( pa_Buffer), "pa_ Buffer", p_end, "p_ end"); OORCheck( __FUNCTION__, ArraySize( pa_BufferClr), "pa_ Buffer Clr", p_beg, "p_ beg"); OORCheck( __FUNCTION__, ArraySize( pa_BufferClr), "pa_ Buffer Clr", p_end, "p_ end");
Gerard William G J B M Dinh Sy
Gerard William G J B M Dinh Sy
The multi timeframe won't have offered me anything.
I made all my indicators so I need for my strategy.

The surprise I wasn't expecting is.
When you call the MTF indicator buffer, and indeed the copybuffer

int CopyBuffer(
int indicator_handle, // indicator handle
int buffer_num, // indicator buffer number
int start_pos, // start position
int count, // amount to copy
double buffer[] // target array to copy
);

does not wait for int count = 1 but the complete segment which corresponds to as many bars as it takes to make your TF....

This means that it must be recalculated each time on the icustom side....
Gerard William G J B M Dinh Sy
Gerard William G J B M Dinh Sy
I'm quite divided.
This is a part of my trend system, in this case the immediate trend.
The longer trend is given by another indicator

The colored segment represents a notable threshold in D1, the graph works on the M30.
Gerard William G J B M Dinh Sy
Gerard William G J B M Dinh Sy
soon a nice rise on the eurusd in M1 at the reversal of the EMA 20? https://charts.mql5.com/40/163/eurusd-m1-admirals-group-as-soon-a-nice-rise-on-the-in-at-the.png
Gerard William G J B M Dinh Sy
Gerard William G J B M Dinh Sy 2024.07.25
At last I had my movement
123