Please help w/ EA or Indicator

Hello Everybody,
I was courious if anybody know of, or is willing to write the following:

Indicator: Put a horizontal line on a chart at all prices that end in 00 or 50.
(ie…Line at 1.5000, Line at 1.5050, Line at 1.5100, Line at 1.5150, ect…)

EA: I have most of this written, but I need to know how MetaTrader can reconize lines ending with 00 or 50. So the execute/order line would read something like:
If total<maxtotal && EMA2<(line ending w/ 00) && Ema1>(line ending w/ 00)
Open Order.

I have all of it done, I just cant get MetaTrader to reconize lines that end in 00 or 50.

If you know how to do this, I would appericate any assistance.

Thank you all and happy hunting :slight_smile:

Here’s one for ya :slight_smile: …it’s one of TRO’s indicators. He had it posted on the “All you need to trade is a Horizontal Line” thread.

sweetspot.zip (3.74 KB)

Thank you sweet pip.

The indicator is just what I was looking for…

I have run into one other problem. I am working on an EA because I have a profitable system, it just requires alot of attention.

When writing a line to control an EMA for example, it reads:
double Ema1 = code,code,code,code,code,code;

Is there a way for an EA to see all prices that end in 00 or 50 ??
So it would read:
double Price00 = every price line that ends in 00
double Price50 = every price line that ends in 50

Anybody know how that could be done ?