MetaTrader provieds the functions to set a fixed TP, SL or trailing stop to an order. More often, we hope to use some other closing strategy, such as resistance, support lines, channels, etc. But this need users to keep staring at the chart and modifying the TP and SL times to time, which will be a hard working. OrdersGuardian is such an EA that will partly free you from the computer screen after opening orders. It has some simple closing strategy, including MA, envelopes, trendline, channels, parabolic SAR. It will close the order as the price reach to this curve or line you set.
| Varables | Type | Default Values | Comments |
|---|---|---|---|
| Orders | string | "*" | Orders' tickets to be monitored. "*" means all opened orders of current symbol, it can be tickets list separated by spaces, commas and other chars, for the EA will check each order whecher its ticket is this string's substr. All the orders in this list must be in the same direction, otherwise the EA can not work. |
| TP_Method | int | 2 | TP strategy: 1 - Envelopes or MA (set TP_Env_Dev to 0 means MA), 2 - line objects, others - no TP. EA will search line objects in the chart, which can be Trendline, Trendline by Angel or Equidistant Channel. |
| SL_Method | int | 2 | SL strategy : 1 - Envelopes or MA, 2 - line objects, 3 - Parabolic SAR, others - no SL. |
| ShowLines | bool | true | Whether to show TP and SL price line in the chart. |
| TP_LineColor | color | LimeGreen | Color of TP price line. |
| TP_TimeFrame | int | 0 | Timeframe of the indicator for calculating TP price, the unit is minute, 0 means the current chart timeframe. |
| TP_MA_Period | int | 34 | Period for TP MA calculation. |
| TP_MA_Method | int | MODE_EMA | TP MA method. |
| TP_MA_Price | int | PRICE_CLOSE | Applied price for TP MA. |
| TP_Env_Dev | double | 0.2 | Percent deviation of TP envelopes line from MA, positive - the upper, negative - the lower, zero - MA curve line. |
| TP_Shift | int | 0 | TP MA shift, MA line offset relate to the chart by timeframe. |
| SL_LineColor | color | Red | Color of SL price line. |
| SL_TimeFrame | int | 0 | Timeframe of the indicator for calculating SL price. |
| SL_MA_Period | int | 34 | Period for SL MA calculation. |
| SL_MA_Method | int | MODE_EMA | SL MA method. |
| SL_MA_Price | int | PRICE_CLOSE | Applied price for SL MA. |
| SL_Env_Dev | double | 0.2 | Percent deviation of SL envelopes line from MA |
| SL_SARStep | double | 0.02 | Increment of SAR. |
| SL_SARMax | double | 0.5 | Maximum value of SAR. |
| SL_Shift | int | 0 | SL MA shift |

Equidistant Channels as TP and SL

Envelopes as TP

Moving Average as SL

Parabolic SAR as SL

Trendline as TP and SL
Heiken Ashi ZoneTrade
This script is based on the 4th dimension of the Bill Williams chaos trading system. The advancement is that this script takes advantage of the Heiken Ashi candles.
ComFracti_v2 , Comfracti_final
Update 2009.10.25
Min/Max Bands
Indicator showing the Min/Max values for the last X bars
GG-RSI-CCI
This indicator informs you about the trend and offers a good entry possibility.