Coding help - page 653

 

hello,

could someone add please an option to change colour and style (solid, dash, etc.) of each line? ;)

 

thanks in advance :) 

Files:
ext-click.mq4  17 kb
 
freakout:

hello,

could someone add please an option to change colour and style (solid, dash, etc.) of each line? ;)

 

thanks in advance :) 

That indicator draws bars in the colors you set/chose in the chart properties. You can change the chart up and down bar color in chart properties, and the indicator will change colors accordingly too
 
mladen:
That indicator draws bars in the colors you set/chose in the chart properties. You can change the chart up and down bar color in chart properties, and the indicator will change colors accordingly too

yeah, but I would like to change colours and style of the lines without changing chart colours :) is this possible to do? :)

and you have to click on the bar to see the lines ;) 

 
mladen:
OK. When you do, please post the error that you get

Dear mladen,

I suspect my broker and i called them!.

As i predicted the problem is because of them!! They resolve my problem and everything is ok now.

I thank you for your close attention... You are coder's king :)

 
Hi friends,
This is my ea and it now not open any orders!
Maybe problem is latest mt4 b988. Can you help me please?  

PS: Problem is solved...
 
mladen:

It does not cause those errors on my terminal (it works as it should - loading only one instance of the indicator, no code change)

Also, the function you posted is OK, but you have to check if the OrderSymbol() is the same as Symbol() when you close the order too

That is what the problem i facing .

I read many site and say  "if (OrderSymbol() == Symbol()" is specific for the symbol on the chart we attach .

But i cant find the answer "where to input the Symbol() for calculation " ?

I have try to find the answer for few month but no luck  :(

I hope you can help me to check the ea i attach  ( When you have free time ).

Because i want to complete it and make it to a ea template , for future use .


Thank you .

 
stevenpun:

That is what the problem i facing .

I read many site and say  "if (OrderSymbol() == Symbol()" is specific for the symbol on the chart we attach .

But i cant find the answer "where to input the Symbol() for calculation " ?

I have try to find the answer for few month but no luck  :(

I hope you can help me to check the ea i attach  ( When you have free time ).

Because i want to complete it and make it to a ea template , for future use .


Thank you .

If you really want to make it manual, then use a parameter (something like :

extern string UseOnlyThisSumbol = "SmbolName";

//
//
// and then in the code
//
//

if (OrderSymbol()==UseOnlyThisSymbol) ... the rest of the code
 

Friends,

Unfortunately everyhing is not ok :(

"Take profit" is not working.

 I set in setting "tp=80" and the price go on +110, +120 pip but ea is not take profit and close order. It still wait!!

Can we fix this problem please? 

Thank you. 

Files:
ptl_EA.mq4  29 kb
 
oguz:

Friends,

Unfortunately everyhing is not ok :(

"Take profit" is not working.

 I set in setting "tp=80" and the price go on +110, +120 pip but ea is not take profit and close order. It still wait!!

Can we fix this problem please? 

Thank you. 

What error do you get?
 
mladen:
What error do you get?
I remember it's not give any an error. 
Even so, today I will test and check again to make sure experts or journal tabs.
Reason: