Watch how to download trading robots for free
Find us on Facebook!
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
Views:
11538
Rating:
(25)
Published:
2015.12.11 11:02
simple_news.mq4 (5.02 KB) view
Need a robot or indicator based on this code? Order it on Freelance Go to Freelance

The Expert Advisor places a grid of orders in both directions five minutes before the specified time (news release time). Once the orders trigger the EA trails the Stop Loss order. Ten minutes after specified time the EA deletes the untriggered pending orders.

EA Parameters:

  • news_time — news release time.
  • amount of deals — the amount of pending orders to be opened in each direction after a step.
  • step between them — the step between the orders to be opened in one direction.
  • distance from current price — the distance between the first order and the current price.
  • trail sl (in pips) — the value of the Trailing Stop of the Stop Loss order, activated after the order is opened by market.
  • take profit from order price — the value of the Take Profit order.
  • tolerance for trail — tolerance for the Stop Loss order change during trailing. Required to decrease the amount of calls to the server.
  • magic number — the unique magic number of the order grid.
  • lot size — the size of the positions to be opened.


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

ClusterBox_DayHistogramm - horizontal cross-section of the market by days ClusterBox_DayHistogramm - horizontal cross-section of the market by days

Tick volumes drawn by days as a histogram of clusters.

ClusterBox_Histogramm - horizontal cross-section of the market ClusterBox_Histogramm - horizontal cross-section of the market

Tick volumes of a specified interval drawn as histogram of clusters.

Levels with Trail Levels with Trail

The Expert Advisor trades based on the support/resistance levels set by the user, while trailing the Stop Loss order.

The function of program operation by time The function of program operation by time

The function allows the execution of the specific code in the specified time interval.