Help to write some codes - page 2

 
DreamJOBZ:

Dear All, I am very newbie here. Can you teach me how to program this logic? I love to learn MQL programming :). Your help would be much appreciated.

Can anyone tell me how to program this? Conditions are, if MA(any) close (marked in red dot) just above the center of candle body (marked as light gray vertical line) In other words, if the Red Dot is placed between 50% to 63% on a Bearish Candle, then show the RED DOT & LIGHT GRAY LINE, otherwise don't show or don't mark.

Any help pls?

Be Awesome,

Raj

Raj, you will have more success if you start your own thread.


CB

 

Dear CB, G'day

Thank you for your suggestion. Starting a new thread.

Live Awesome

Raj

 

By the way, I already did also what you told me to do? Just in case, if you can help me, please do so. PFA details.

Dear All, G'day

Is it possible to help me in this. I managed get someone to help me in this a year back. He is only interested to find what system I am using. We could not continue with him.

Please find attached program here for the above output as shown in the diagram. This is coded for only on Daily range.

measured distance could be anything between 50 / 100 / 200 / 300 .. can you help me? Thanks.

We want some more additional options.

1. Week Range ie. Weekly high & low (keeping the period seperator as shown above)

2. Month Range ie. Monthly high & low (keeping the period seperator as shown above)

3. Quarterly Range ie. Weekly high & low (keeping the period seperator as shown above)

4. Half-yearly Range ie. Half Yearly High & Low (keeping the period seperator as shown above)

5. Yearly Range ie. Yearly high & low (keeping the period seperator as shown above)

6. Finally on 4-hourly Range ie. 4-hour high & low (keeping the period seperator between 4 hrs difference)

PLEASE CAN YOU HELP ME IN THIS? PLEASE GUIDE ME TO SOMEONE WHO WILLING TO HELP ME. GOD BLESS.

Live Awesome

Raj

Raj.DreamJOBZ@gMail.Com

Please find the coding below, this is written on daily high & low, I dont know how to add those 6 options I have mentioned above.

#property indicator_chart_window

extern int HighPips = 100;
extern color HighColor = Blue;
extern int LowPips = 100;
extern color LowColor = Red;
extern int UpdateTics = 1;
int g_count_96;
double g_high_100;
double g_low_108;

int init() {
g_high_100 = MarketInfo(Symbol(), MODE_HIGH);
ObjectCreate("HighLine", OBJ_HLINE, 0, 0, g_high_100 - HighPips * Point);
ObjectSet("HighLine", OBJPROP_STYLE, STYLE_DASH);
ObjectSet("HighLine", OBJPROP_COLOR, HighColor);
g_low_108 = MarketInfo(Symbol(), MODE_LOW);
ObjectCreate("LowLine", OBJ_HLINE, 0, 0, g_low_108 + LowPips * Point);
ObjectSet("LowLine", OBJPROP_STYLE, STYLE_DASH);
ObjectSet("LowLine", OBJPROP_COLOR, LowColor);
g_count_96 = 0;
return (0);
}

int deinit() {
ObjectDelete("HighLine");
ObjectDelete("LowLine");
return (0);
}

int start() {
g_count_96++;
double l_high_0 = MarketInfo(Symbol(), MODE_HIGH);
double l_low_8 = MarketInfo(Symbol(), MODE_LOW);
if (g_count_96 > UpdateTics || l_high_0 != g_high_100 || l_low_8 != g_low_108) {
g_count_96 = 0;
g_high_100 = l_high_0;
g_low_108 = l_low_8;
ObjectMove("HighLine", 0, g_high_100 - HighPips * Point, g_high_100 - HighPips * Point);
ObjectMove("LowLine", 0, g_low_108 + LowPips * Point, g_low_108 + LowPips * Point);
}
return (0);
}