Linear Regression Channel - expert for MetaTrader 4




Linear Regression Channel - expert for MetaTrader 4


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).
Linear Regression Channel


Download Linear Regression Channel - expert for MetaTrader 4




Related News




Latest News
Stocks: Home Depot, Kohls, Energy Shares Weigh on Market
19.11.2019 22:24
Investing.com – Stocks struggled to keep the big rally moving Tuesday, but weakness in retail stocks pulled the Dow lower and kept the S&P 500 in check. The S&P 500 hit a new intraday high but just missed a new record close and sixth straight gain. The NASDAQ Composite and Nasdaq 100 indexes did close at record levels and hit new
Read more
Day Ahead: Top 3 Things to Watch
19.11.2019 22:21
Investing.com - Here's a preview of the top 3 things that could rock markets tomorrow. 1. Fed's Minutes in Focus The Federal Reserve on Wednesday at 2 pm ET (19:00 GMT) will release the minutes of its October 29-30 Federal Open Market Committee (FOMC) meeting. At its October meeting, the FOMC cut interest rates, but expectations for
Read more
OxyContin maker Purdue Pharma to pay states' lawyers, urged to help victims
19.11.2019 22:18
By Tom Hals (Reuters) - OxyContin maker Purdue Pharma LP got court approval on Tuesday to reimburse millions of dollars in legal fees for states that back its proposed $10 billion settlement of opioid lawsuits, but with a condition meant to help victims of the addiction crisis. Purdue had told Bankruptcy Judge Robert Drain at Tuesday's
Read more
Australia to fast-track $2.6 billion worth of infrastructure spending in bid to revive economy
19.11.2019 22:15
By Colin Packham SYDNEY (Reuters) - Australia's conservative government will fast-track A$3.8 billion ($2.59 billion) in infrastructure spending, Prime Minister Scott Morrison said on Wednesday - a fillip to a stalling economy. Australia's economic growth has slumped to its lowest in a decade, led by weakness in consumer spending and
Read more
Conoco Plans Share Buyback That’s Almost 50% of Market Value
19.11.2019 22:12
(Bloomberg) -- ConocoPhillips (NYSE:COP) announced a 10-year plan to buy back $30 billion of shares, equivalent to about half of its current market capitalization, as the oil producer attempts to distance itself from the troubled U.S. shale industry. The company also said it will pay dividends of about $20 billion over the period and limit average
Read more