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.
Forum on trading, automated trading systems and testing trading strategies
very profitable indicator need to be programmed
nirob76, 2015.02.26 17:41
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.
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
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.