Watch how to download trading robots for free

Interesting script?
So post a link to it -
let others appraise it

You liked the script? Try it in the MetaTrader 5 terminal

Experts

Linear Regression Channel - expert for MetaTrader 4

Aharon Tzadik | English Español Português 日本語 Deutsch

Views:
2522
Rating:
votes: 11
Published:
2019.02.13 01:07
Updated:
2019.02.26 17:28

Linear Regression Channel EA draws "Linear Regression Channel"  on chart and trades with its trend,has Trailing Stop Loss &Take Profit works best on all time frames major forex pairs and stocks NASDAQ.

USEMOVETOBREAKEVEN  system functions like a stop loss

But a one-time function with a smaller value than the subsequent Stop Loss value to lock minimal profit and avoid loss if the price goes against you.

If you have reached a certain value of pips with the direction of the trade -

  • WHENTOMOVETOBE - When to move break even (values: 10-100).

So how many pips would you like to move the stop loss above the price line of the open trade-

  • PIPSTOMOVESL - How much pips to move stop loss (values: 10-100).

This EA trades only with the price of open candle!

Trade volume of a position depends on previous trading results.

It provides the possibility to limit the maximum risk (in % of deposit) of the trade.

If you want to trade with constant lotsize say:0.01 lot ,you need to set "MaximumRisk =0" and "DecreaseFactor=0"

Or else you will have a calculation of  Percent (%) of deposit and MaximumRisk.

I put together a simple EA with two moving averages and Linear Regression Channel,

The Linear Regression Channel do not work on test mode,

The optimization tests can be performed only with moving averages,

In live trading only, Linear Regression Channel and moving averages will work together,

During tests, the EA  only draws the Linear Regression Channel on the screen in a visual mode without considering it in the creation of trades,

You need to perform back test with "open prices only" option,

The Linear Regression Channel will function as a filter .

In this situation the probability of winning trades increases.

Inputs

  • Channel length (bars)(values: 10-100).
  • Channel color.
  • USEMOVETOBREAKEVEN - Enable "no loss" break even system (values: 0-1).
  • WHENTOMOVETOBE - When to move break even (values: 10-100).
  • PIPSTOMOVESL - How much pips to move stop loss (values: 10-100).
  • Lots - Lots size (values: 0.01-10).
  • MaximumRisk - maximum risk from total margin in %, (values: 0.01 - 0.3).
  • If "MaximumRisk =0" then "Lot=constant"
  • DecreaseFactor - decrease from total margin if you lose a trade.
  • TrailingStop-set a value from 10 to 100 to activate trailing stop loss & take profit, "0" will not activate trailing stop loss.
  • Stop_Loss - Stop Loss (values: 10-100).
  • MagicNumber - Magic number (values: 1-100000).
  • TakeProfit - Take Profit (values: 10-100).
  • FastMA - Fast Moving Average (values: 1-20).
  • SlowMA - Slow Moving Average (values: 50-200).
  •  Distance-Distance between two averages (values: 10-60).
  •  Mom_Sell-Momentum_Sell trtrigger(values: 0.1-5).
  •  Mom_Buy-Momentum_Buy trtrigger(values: 0.1-5).
How to perform back test:https://bit.ly/2CD7XWD
Linear Regression Channel
MACDtheGreat1.2 MACDtheGreat1.2

Great EA that scalps BUT also rides a trade.

manual trade by keyboard manual trade by keyboard

After looking for many Trading concepts and requirements of my own tried to code an EA. First collected many EA's and tried their codes I re-designed the following codes for my own needs to use for trading. Hope you also find the EA helps you .. Have healthy life and succesfull trades within your life.

Higher period Bollinger Band breakout and retrace strategy Higher period Bollinger Band breakout and retrace strategy

A higher period Bollinger band strategy used for trading reversals

Survivor Survivor

EA that uses neural networks to find best entries and survive of difficult conditions.