Watch how to download trading robots for free
Find us on Twitter!
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
Experts

SupportResistTrade - expert for MetaTrader 4

Views:
25266
Rating:
(7)
Published:
2008.10.02 06:46
Updated:
2014.04.21 14:53
Need a robot or indicator based on this code? Order it on Freelance Go to Freelance

A simple analysis of the market is performed before opening/closing a position, it determines the levels of support/resistance and the direction of the trend (bullish/bearish) as well.

The support/resistance levels are drawn by the last numBars bars.

The trend is identified using the Moving Avarage indicator (the period is set by the maPeriod parameter): if the price is above the MA then the trend is bearish, if it is below the MA then the trend is bullish.

If the trend is bullish then the position is opened at the break through of the resistance level.

If the ternd is bearish then the position is opened at the break through of the support level.

The closing of the position is performed by StopLoss that is placed either by the support level (if a long posotion is opened), or by the resistance level (if a short position is opened). The closing of the position can be performed by the break through of the support level as well (if an opened position is opened and this position is at a lossless region) or by the break through of the resistance level (if a short position is opened and this position is at the lossless region). A primitive TrailingStop with the levels of 10, 20 and 30 points is used in the EA.

Input Parameters:

1. numBars - the number of bars that are used for drawing of the support/resistance levels.

2. maPeriod - the period of the Moving Avarage.

The result of testing through September (EUR\USD):

Period H1:

The input parameters are not optimized. The default values are: numBars = 55; maPeriod = 500.

Translated from Russian by MetaQuotes Ltd.
Original code: https://www.mql5.com/ru/code/8453

Indicator iCCI_M1+H1+D1 Indicator iCCI_M1+H1+D1

It draws three lines of different periods in one subwindow.

The MasterMind 3 (Championship Edition) The MasterMind 3 (Championship Edition)

Because of the "supposedly" 24k of errors within the journal, this script did not make it into the championship. Maybe next year Folks : ) So far, There are no errors to be found. "The Grid" (A Massive Hedger)is Coming Soon...

EA Based on Laptrend and Some Other Indicators EA Based on Laptrend and Some Other Indicators

I created this indicator on the basis of the MQL4 training material. This modified EA is almost from there. All functions are standard, I'm not able to develop something better yet. Only the "heart" of it was modified.

ZigZagEvgeTrofi ver. 1 ZigZagEvgeTrofi ver. 1

The ZigZag indicator is used.