Coding help - page 478

 
download38:
Could anyone explain the different between for(i=0; i=0; i--) and when we are using them? Thanks in advance.

download38

If that is used to access buffer values then :

1. first case is calculating from current bar to older bars

2. second case is calculating from older bars to current bar

as a rule of thumb, 2nd case should be used

 

Can someone edit this panel indicator so that it appears on the right upper corner? I know how to add pixels so it moves to the right corner but I want to resize MT4 window sometimes and in this case pixel adding doesn't help.

Files:
panel.png  33 kb
panel_black.mq4  140 kb
 

Hello mladen i'm struggling to find how to get the pending operation of this EA (in this case, limits OP) as stealth.

Indeed this EA opens a lot of pending position and most of these will be deleted after some minutes. Many brokers don't allow me to trade in such way. Can you help me to modify this expert in order the pending position to be invisible from the broker, please?

Thank you

high-frequency_test_limit_only.mq4

 
triip:
Can someone edit this panel indicator so that it appears on the right upper corner? I know how to add pixels so it moves to the right corner but I want to resize MT4 window sometimes and in this case pixel adding doesn't help.

hi, do you mind posting your macd indi? thanks.

 
engula:
hi, do you mind posting your macd indi? thanks.

I only have .ex4 file but I think it is very easy to find .mq4 too if needed.

 

Hi.

I am looking for an indicator that draws the 2 last respected trendlines.

Is there always something like that availible?

Thanks

 
NWFstudent:
Hi.

I am looking for an indicator that draws the 2 last respected trendlines.

Is there always something like that availible?

Thanks

You can try some of the stuff posted here : https://www.mql5.com/en/forum/general

 

Hello Mladen,

Im trying to access the Date(not time) for each bar for use in a indicator, but cant seem to get it right.

Is there a similar call for date like iTime,iVolume etc.

The logic is on every new day execute and draw to chart

Couldnt get any of these to work in the indicator I.e draw for the previous days.

{ static datetime lastbar;

datetime curbar = Time[current];

if(lastbar!=curbar)

{ lastbar=curbar; }

CallFunc(); }

{ int Today = -1;

if (DayOfWeek() != Today1)

{Today1 = DayOfWeek();}

CallFunc(); }

{ int Today1 = -1;

int var1 = TimeDayOfYear(var2);

int var2=iTime(NULL,PERIOD_D1,0);

if (var1 != Today1)

{Today1 = var1;}

CallFunc(); }

Files:
date.png  6 kb
 
mladen:
download38

If that is used to access buffer values then :

1. first case is calculating from current bar to older bars

2. second case is calculating from older bars to current bar

as a rule of thumb, 2nd case should be used

Thanks @mladen for reply.

I am still looking for some indicators which is similar plot like the one I want to write above for case study. Thanks for good tips for me.

 

hi,

How can I code three consecutive bars having an overlapping area please?

Thanks,

Reason: