Gerard William G J B M Dinh Sy
Gerard William G J B M Dinh Sy
  • 信息
1 年
经验
0
产品
0
演示版
0
工作
0
信号
0
订阅者
Hello
MQL5 is a vast and very complete language, covering many subjects.

Each on his own, it will be very difficult to create a profitable EA as the subjects to cover are vast.

I specialized in the creation of multi timeframe indicators because I think it is one of the keys to success.

Bring your developer skills. Together we have a greater chance of being able to create several profitable EAs
Gerard William G J B M Dinh Sy
Gerard William G J B M Dinh Sy
This indicator will allow me to see:
The highest, the lowest, the closing and the opening of the bar which changes color according to the values, green or red, from the previous day to daily.

On the current bar, we can see the current price, the color of the daily bar
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
it's almost good
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
12