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

Expert Advisor Template with Trailing Stop v2 - expert for MetaTrader 4

Views:
51483
Rating:
(27)
Published:
2014.06.06 14:44
Updated:
2016.11.22 07:32
Need a robot or indicator based on this code? Order it on Freelance Go to Freelance

This is a template for Expert Advisor coders to decrease their coding time. It contains Trailing Stop, autolots (true or false) and function scanning previous candles to find the lowest and the highest order price in the past. Ready to use buy, buystop, sell, sellstop scripts.

There is a lot more innovations to make it work better like buy, sell block or max orders opened on current symbol. Magic number etc.

  • eatemplate v3.mq4 contains my comments to show you how every line in my code works;
  • eatemplateclean v3 doesn't contain my comments.
  • eateamplateworking v3 is simply ea, that shows template in action.

Hello!

  • I have updated my template! Now orders are set with magic number which prevents script from modifying your orders set manually. Now you can trade by hand and by script in same time without errors!!!
  • Also there is now BA ( stoploss moving to order opening price + spread to make order safe )
  • Now template contains buystop and sellstop orders with easy inputs modyfing order lifetime and distance from actual price in pips.
  • Added working template to show the way, my template works.

Second update!

  • I also added max spread limit. If spread is bigger than "maxspread" orders wont open.


EA based on indicator SAR, ADX and SMA 100 EA based on indicator SAR, ADX and SMA 100

This Expert Advisor is based on SMA, ADX and SAR indicators.

Advanced ADX Advanced ADX

Advanced ADX indicator.

i-AMMA i-AMMA

Average Modified Moving Average.

Genie Genie

Parabolic SAR ADX Expert Advisor.