Coding help - page 659

 
NWFstudent:

This will give me the "signal  only when the crossover occure over the MA, I want it under the MA, but i also want the signal if i have an crossover above the MA and a few bars later the price moves below the MA.

 

Thats what i tried with the while loop, so the code would loop until the argument turns false and proceeed to paint the signal. 

 

I Made a schematic drawing, maybe you will understand better.

 

Thank you for your reply anyway 

You can not loop on a single bar - that would be an endless loop
 
techmac:
You can not loop on a single bar - that would be an endless loop

Hi.

Do you know of any way i can accomplish this without a loop?

 

Thanks 

 
NWFstudent:

Hi.

Do you know of any way i can accomplish this without a loop?

 

Thanks 

You can compare multiple bar values
 
oguz:

Dear friends,

Can you updated attached indicators for latest build mt4 please?

Especially, "123PatternsV6" is freezes mt4 and not working! 

 

This works (you need both in order to work)
 
mladen:
This works (you need both in order to work)

I wish i could do more.

Only thing i can do is to thank you very much... :) 

 
oguz:

I wish i could do more.

Only thing i can do is to thank you very much... :) 

oguz

Tested it and it works

 
mladen:

oguz

Tested it and it works

Your are King of coder's :)
 

Dear friends,

Can you remove "hedge feature" attached ea and optimize or checked codes please?

Because backtest and real life trade results are very incompatible! :(

Files:
StepMA_EA.mq4  14 kb
 
oguz:

Dear friends,

Can you remove "hedge feature" attached ea and optimize or checked codes please?

Because backtest and real life trade results are very incompatible! :(

Try setting the hedge_aktif to false
 

Dear Mladen,

It is possible to improve the performance of CCFp_v4.1 indicator?
I'm traing it with 200 bars but often
MT4 leaves too slow .


Thank you,

Rogério


Files: