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

TwoBarsComparison - expert for MetaTrader 5

Published by:
Vladimir Karputov
Views:
2336
Rating:
(11)
Published:
2018.06.16 10:28
Need a robot or indicator based on this code? Order it on Freelance Go to Freelance

Idea by: Dmitriy.

MQL5 code by: Vladimir Karputov.

the EA compares the opening prices (Open) of bar#0 and bar#2:

Uti_Puti_Trade


Inputs

  • Stop Loss (in pips) - Stop Loss;
  • Take Profit (in pips) - Take Profit;
  • Trailing Stop (in pips) - trailing;
  • Trailing Step (in pips) - trailing step;
  • Breakeven - breakeven;
  • Breakeven Profit - profit for breakeven;
  • Lots (or "Lots">0 and "Risk"==0 or "Lots"==0 and "Risk">0) - position volume (for manual defining);
  • Risk (or "Lots">0 and "Risk"==0 or "Lots"==0 and "Risk">0) - risk per trade as percent of free margin;
  • magic number - unique identifier of the EA.

Test results in the "Every tick" mode for all symbols on D1:

Uti_Puti_Trade All symbols D1

Translated from Russian by MetaQuotes Ltd.
Original code: https://www.mql5.com/ru/code/20635

exp_Amstell exp_Amstell

The EA uses a virtual Take Profit for closing gaining positions. Opening positions with a step. Catch the type of the last position and its price in OnTradeTransaction.

Exp_Sar_Tm_Plus Exp_Sar_Tm_Plus

A trading system based on indicator signals Parabolic Stop and Reverse system with the possibility to set a fixed position holding time.

e_Breakeven_v4 e_Breakeven_v4

An assistant Expert Advisor. It moves positions to a breakeven and then enables trailing.

e-News-Lucky e-News-Lucky

The Expert Advisor places pending Buy Stop and Sell Stop orders. If orders execute, the trailing stop is run for the positions.