Download MetaTrader 5

2 Moving Average Cross Alert !

To add comments, please log in or register
Manage agents in your profile. It is easy!
Pankaj D Costa
2738
Pankaj D Costa 2015.02.26 21:00 

Dear All,

I have an old collection which is giving alert when 2 ma crossover. But I need to add "Shift" option to get signal as per my own set up. So, If someone can help me to add this option, would highly appreciated. Here I am attaching the file, pls see and modify if possible to you. Thanks in advance.

Files:
Alain Verleyen
Moderator
30714
Alain Verleyen 2015.02.26 23:40  

Forum on trading, automated trading systems and testing trading strategies

very profitable indicator need to be programmed

nirob76, 2015.02.26 17:41

Contact with freelance section, lot of friends are waiting to help you.

Pankaj D Costa
2738
Pankaj D Costa 2015.02.27 05:39  
angevoyageur:

Dear Angevoyageur, minimum 2 minutes continuing laughing to see your reply, you make a great joke and I like that. Thanks.

Anyway, very profitable indicator need to be programmed here mentioned for full programming and thats on his own logic maybe, So need to create 100% new indicator, on the other hand, my one is already working and I need to add a very simple coding to use MA shift options, that;s why submitted here to get feed back from here. Lot of traders have some basic coding knowledge and they can do it easily. And only for few words coding, why should I spend min. 10$? Let me try for free help first, if no one can, then have to knock freelance sections. Thanks a lot. 

Stuart Browne
5799
Stuart Browne 2015.02.27 08:00  

HAHAHAHAHA good one Alain :)

Pankaj, without delving into your code too much, why don't you try adding a shift input parameter like this:

extern int MAShift=0;

 Then adding that shift parameter to everywhere you check the MA value (lines 215 to 221 in your code). So that would look something like this for line 215 & 216:

      MA1now = iMA(NULL, 0, MA1, 0, MA1Mode, PRICE_CLOSE, i+MAShift);
      MA1previous = iMA(NULL, 0, MA1, 0, MA1Mode, PRICE_CLOSE, (i+1)+MAShift);

 
Do that to all your MA values, give that a try and see how she works.

Cheers

Alain Verleyen
Moderator
30714
Alain Verleyen 2015.02.27 09:21  
nirob76:

Dear Angevoyageur, minimum 2 minutes continuing laughing to see your reply, you make a great joke and I like that. Thanks.

Anyway, very profitable indicator need to be programmed here mentioned for full programming and thats on his own logic maybe, So need to create 100% new indicator, on the other hand, my one is already working and I need to add a very simple coding to use MA shift options, that;s why submitted here to get feed back from here. Lot of traders have some basic coding knowledge and they can do it easily. And only for few words coding, why should I spend min. 10$? Let me try for free help first, if no one can, then have to knock freelance sections. Thanks a lot. 

Of course, no worries. I like to help people on the forum, but currently I only have time for jokes ;-)
Pankaj D Costa
2738
Pankaj D Costa 2015.02.28 19:47  
Filter:

HAHAHAHAHA good one Alain :)

Pankaj, without delving into your code too much, why don't you try adding a shift input parameter like this:

 Then adding that shift parameter to everywhere you check the MA value (lines 215 to 221 in your code). So that would look something like this for line 215 & 216:

 
Do that to all your MA values, give that a try and see how she works.

Cheers

Thanks a lot Dear Filter. I will try myself to coding this and hope will be success. Thanks for giving the exact points for coding.
Pankaj D Costa
2738
Pankaj D Costa 2015.02.28 19:52  
angevoyageur:
Of course, no worries. I like to help people on the forum, but currently I only have time for jokes ;-)

Jokes can make happy to peoples, can give them laugh a lot and laugh is good for health and mind. That means here also you are helping peoples. Wow !!! What an active person, always doing something to helping others. Cheers.

N.B. I suppose to get the notifications in my email when some one comments / reply to my post, but I don't know why maximum time missing the update in my email. This is why I am late to see these comments. But I subscribed from my settings but don't know why missing a lot. 

Pankaj D Costa
2738
Pankaj D Costa 2015.03.01 06:45  
Filter:

HAHAHAHAHA good one Alain :)

Pankaj, without delving into your code too much, why don't you try adding a shift input parameter like this:

 Then adding that shift parameter to everywhere you check the MA value (lines 215 to 221 in your code). So that would look something like this for line 215 & 216:

 
Do that to all your MA values, give that a try and see how she works.

Cheers

Dear Filter, As per your suggestion, I tried to coding and I am success. Now its working as per my expectation. Market closed, when will be in live, hope will get the perfect answer.  I asked for a fish to live today, but you did not give a fish, you teach me how to catch a fish, I had learn and not only for today but for hole life to live. Thanks Dear.
Stuart Browne
5799
Stuart Browne 2015.03.01 07:28  
nirob76:
Dear Filter, As per your suggestion, I tried to coding and I am success. Now its working as per my expectation. Market closed, when will be in live, hope will get the perfect answer.  I asked for a fish to live today, but you did not give a fish, you teach me how to catch a fish, I had learn and not only for today but for hole life to live. Thanks Dear.
That's excellent news Pankaj. And thanks very much for the very kind words. It's greatly appreciated 

Cheers
Stu
Pankaj D Costa
2738
Pankaj D Costa 2015.03.01 07:48  
Filter:
That's excellent news Pankaj. And thanks very much for the very kind words. It's greatly appreciated 

Cheers
Stu
Thanks to you also. Really I feel proud here because you and all moderators are very helpful minded and never hart to us. We are getting nice support, advice and cooperation very fast. Not only that, you guys are very jolly minded also, which can help us for a refreshment. Thanks a lot from my heart. 
To add comments, please log in or register