Watch how to download trading robots for free
Find us on Telegram!
Join our fan page
Interesting script?
So post a link to it -
let others appraise it
You liked the script? Try it in the MetaTrader 5 terminal
Indicators

Short Term Momentum Trading - indicator for MetaTrader 4

Views:
47330
Rating:
(14)
Published:
2013.05.21 09:38
Updated:
2014.04.21 14:55
Need a robot or indicator based on this code? Order it on Freelance Go to Freelance

I am trying to create an alert based upon 5 rules that I use to manually trade each day. Below are the rules to trade and following is the script that I have so far.

Here's what I got... This is designed for Short Term Momentum Trading, and if you are willing to put in the butt-time in your seat, you will enter winning trades up to 90% of the time; however, you must be willing to follow the rules and not get emotional. Please don't ask me about profit targets or programming a fully functional EA; if I could do that, I'd be a millionaire and I wouldn't be here looking for assistance. So, don't ask; I don't have answers that you're looking for. PS - Yes I realize that these rules are REALLY lagging - I just want to catch part of a trend. I'm not greedy.

Anyway...

Indicators:

  • 3 LWMA
  • 13 LWMA
  • Laguerre Filter - gamma 0.85 (determines monentum / trend)
  • ADX (with +DI and -DI)
  • CCI

Alert Rules (BUY):

  1. 3 LWMA crosses above 13 LWMA ...and 1a) 3 LWMA was BELOW 13 LWMA 1 period before
  2. Candlestick opens ABOVE Laguerre Filter (gamma 0.85)
  3. +DI crosses ABOVE -DI
  4. +DI crosses ABOVE 20 Level
  5. CCI crosses ABOVE 100 Level

Alert Rules (SELL):

  1. 3 LWMA crosses below 13 LWMA
  2. 3 LWMA was ABOVE 13 LWMA 1 period before
  3. Candlestick opens BELOW Laguerre Filter (gamma 0.85)
  4. -DI crosses ABOVE +DI
  5. -DI crosses ABOVE 20 Level
  6. CCI crosses BELOW -100 Level

Obviously, not all rules are going to hit at the same time. Once all indicator rules line up, I'd like:

  1. an visual marker below entry candlestick on the screen (arrow, star, whatever..),
  2. a pop-up alert window displaying currency, time-frame, entry level and time-stamp, and...
  3. email alert.

Obviously, in the above picture the signals are not exact - I am just trying to give a visual representation of how I trade. Signal 3 is wrong as the +DI hasen't crossed the 20 threshold. Signal 5 occurs 1 - 2 candlestick later than I marked. I probably could have found a better chart as an example.

My problem is twofold. One - it just doesn't function correctly. It's programmed as I requested, however the results are way off from what my indicators are telling me visually. Two - The alert works with a BUY signal,; however the alert does not work with a SELL signal.

I have two concerns that I'm hoping that you can address.

  1. I run this on a 5 minute chart. I'd like to make sure that it only gives one alert - not one each time a new candlestick opens.
  2. ...however, if we are in a trending market, the LWMAs can cross with the trend several times. I WOULD like an alert each time the all of the rules line up. If the LWMAs cross with the trend (signal 5) than the LWMAs are the only indicator that I care about. Ignore the remaining rules when going with the momentum.

Is there a talented programmer out there that can assist me in finishing this alert? You would make my life so much easier and my broker so much happier!!!

Thanks in advance for any assistance that you can offer. I greatly appreciate any comments or coding that you can provide.

Chris C Berg - chrisberg.forex@yahoo.com

FollowYourHeart FollowYourHeart

"Follow Your Heart" is an Expert Advisor that open an Order strictly by price increase/decrease during nBars on the M1 time frame (without any indicators).

BreakOut BreakOut

This EA will open a Long Order if the Price move above yesterday High or Short Order if the Price move beneath yesterday Low.

EW Elliott Wave Easy Counter Script EW Elliott Wave Easy Counter Script

Drag and drop wave counts.

GruchaAverage Trend Line GruchaAverage Trend Line

The moving average that divides the prices for classes. The classes with extreme price get bigger weight (importance)