Metatrader: indicator

trendie

Legendary member
Messages
6,875
Likes
1,433
I may have asked for this before!!

Anyway, is there an indicator that shows the pip-range of the past x-bars?
Ideally, the box would have one colour when the range of the past x-bars was greater than X, and a different colour if the range was below X.

If such as thing does not exist, does what I describe resemble something else that does?
(so I can download it, and tweak it myself)

thanks

(I am looking to represent on my chart when the range is above a certain size, so I know when to use trend-following rules, and when pip-range is below a certain size to switch to breakout mode)
 
DDDUUUHHH!!!

http://codebase.mql4.com/5684

Just dawned on me. The Donchian channel draws lines on upper and lower channel of x-bars back.
The code calculates the "upper" and "lower" values.
I just need to add an extra input X value and test for upper and lower to be greater or lesser than X.
If so, then select different colours, or even mark the upper and lower lines with some marker.

Should have spent more time thinking than posting.
 
Metatrader 4:

my standard set of Expert Advisors all are designed to only have one trade running at a time.
(eg, MACD Sample, etc)

are there any EAs that cater for multiple trades to be open simultaneously?
and for each open trade to have its own SL and target?

thanks
 
You are looking for what ea specifically, that allows multiple trades? Can't you just edit the ones you have? Or am I lost?

Peter

I need it to backtest over 2-3 years.
I need it to handle multiple trades, each with their own SL and TP.

If you look at the samples provided by MT4, they are single trades only, ie closing out ne trade before triggering the next.
 
the ones provided by mt4 check for open trades first. if a trade is open it will test whether to close, then exit the ea. modify it so it doesn't exit. There's usually some boolean flag you can eliminate.

Peter
 
Top