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

Andrews Pitchfork - expert for MetaTrader 4

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

Views:
17137
Rating:
votes: 14
Published:
2019.02.16 20:58
Updated:
2021.04.27 13:22

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

Try it on demo first.

You choose how to trade: only with the price of open candle or every tick 

If you do not want to trade with increasing lot size when you lose  a trade set:"IncreaseFactor=0"

I combined together a simple EA with two moving averages and Andrews Pitchfork,

The Andrews Pitchfork do not work on test mode,

The optimization tests can be performed only with moving averages,

In live trading only, Andrews Pitchfork and moving averages will work together,

During tests, the EA  only draws the Andrews Pitchfork on the screen in  visual mode without considering it in the creation of trades,

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

The Andrews Pitchfork will function as a filter .

In this situation the probability of winning trades increases.

Inputs

  • Andrews Pitchfork length (bars)(values: 10-100).
  • Andrews Pitchfork color.
  • tick=If "tick"=false-every tick\If "tick"=true -open prices  (values:true/false).
  • IncreaseFactor -how much to increase lots from total margin if you lose a trade (values: 0.001-0.1).
  • 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"
  • 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).
  •  Mom_Sell-Momentum_Sell trtrigger(values: 0.1-5).
  •  Mom_Buy-Momentum_Buy trtrigger(values: 0.1-5).
  • USETRAILINGSTOP-If use trailing stop (values:true/false).
  • WHENTOTRAIL-When to trail (values: 40-100).
  • TRAILAMOUNT-Trail amount (values: 40-100).
  • Distance From Candle -Distance From Candle (values: 1-100).
  • USECANDELTRAIL=If use trailing stop (values:true/false).
  • X=2-number of candles (values: 1-100).
  •  USEMOVETOBREAKEVEN-Enable " break even " (values: true/false).
  • WHENTOMOVETOBE-When to move break even (values: 1-30).
  • PIPSTOMOVESL=30-How much pips to move stop loss  (values: 1-30).

You can use it as  hedging grid EA or a single trade EA.

You need to optimize this EA once  a week and use the exact same  inputs from above .

    How to perform back test:https://bit.ly/2CD7XWD

      Multi Forex Scanner Multi Forex Scanner

      Instead of having to analyze each pair individually, you can see at a glance what are the most promising pairs according to your own criteria.

      Gann Fan Gann Fan

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

      Channel20 Channel20

      high-low channel

      Trend Line Trend Line

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