Coding help - page 510

 
candyman752:
Hello Mladen,

I added a code for trailing stop to the EA. I am getting two compile errors. The instructions on adding the code were:

How to use?

very simple. place below code in any part of your Expert Advisor program and call the functiontrail2(#ticket) in the Start() function.ticket = is your order ticket, it could be either buy or sell order. But it has to be live order not pending order.

e.g.

{...(yourcode)

ticket=ordersend(...)

...

}

..

trail2(ticket)

or trail2(ticket, 300, 40, 250, 100)

..

candyman752

You have to place one "}" at line 205

But then you will get a load of errors (because you have a lot of undefined functions that do not exist in that code). Unfortunately but you have to resolve all those un-existing functions by your self (I have no idea what should they do exactly)

 

Hello Mladen, I would like to ask you a question (in fact if you were a neighbor of mine, I would be to you every day to bring thousands of questions because I would love to learn how to program) is possible by changing the programming code to get an MA that has more elasticity (which may lengthen more than usual) and speed, without changing the periods of MA

 

hey more

you are really late , i am so sorry,the line is too long and you are at the end,look at march 2015 ,and on the other end still learner are in street,they join in 20th century....but don't worry i am few posts ahead of you.just pray for his long life...AMEEN......

 
morenokosta:
Hello Mladen, I would like to ask you a question (in fact if you were a neighbor of mine, I would be to you every day to bring thousands of questions because I would love to learn how to program) is possible by changing the programming code to get an MA that has more elasticity (which may lengthen more than usual) and speed, without changing the periods of MA

morenokosta

Check this thread : https://www.mql5.com/en/forum/179662

And, of course, there are always other kind of adaptive moving averages (one more average is adaptive if chosen so) that do that automatically too

 
mladen:
morenokosta

Check this thread : https://www.mql5.com/en/forum/179662

And, of course, there are always other kind of adaptive moving averages (one more average is adaptive if chosen so) that do that automatically too

thanks Mladen

 

Hello Mladen. I wanted to ask, I found this indicator (https://www.mql5.com/en/forum/174385/page340) by you programmed, would you be kind enough to explain the function of the 2 MA highlighted by me?

and if you have to respect some rules

Thank You

Moreno

Files:
eurusdm30.png  49 kb
 
morenokosta:
Hello Mladen. I wanted to ask, I found this indicator (https://www.mql5.com/en/forum/174385/page340) by you programmed, would you be kind enough to explain the function of the 2 MA highlighted by me?

and if you have to respect some rules

Thank You

Moreno

Moreno, they are moving averages of the volatility quality (maperiod1 and maperiod 2) used to verify the trend.

 
morenokosta:
Hello Mladen. I wanted to ask, I found this indicator (https://www.mql5.com/en/forum/174385/page340 ) by you programmed, would you be kind enough to explain the function of the 2 MA highlighted by me?

and if you have to respect some rules

Thank You

Moreno

Moreno

Some more information can be found here : https://www.mql5.com/en/forum/general

 

Dear Malden

im looking for An ADX Indicator On The = ADX Thread

which can make me Change Di + & Di - Values ..

And I Found many indicators There

So i have Chosen This One = Wilder's DMI Book Post=116

But Im asking You Boss

Is This The Latest Update Version You Make Or you Suggest Me Another One You Think Its More Better .??

Thanks Alot Big boss

Files:
 

Hello Mladen,

Have managed to insert a different trail stop code.It only has one compile error.

Please assist.

Files:
pow.mq4  24 kb