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

Daily Breakdown - expert for MetaTrader 4

Views:
24583
Rating:
(18)
Published:
2011.02.28 09:54
Updated:
2014.04.21 14:55
Need a robot or indicator based on this code? Order it on Freelance Go to Freelance

Description:

Every day at time, specified in TimeSet variable, it places pending orders.

After execution of pending order, the other order removed.

The Buy Stop pending order is placed at the price, equal to High of the previous day + Delta (points) with Stop Loss and Take Profit levels, specified in SL and TP input variables.
The Sell Stop pending order is placed at the price, equal to Low of the previous day - Delta (points) with Stop Loss and Take Profit levels, specified in SL and TP input variables.




Input variables:

  • TimeSet = "07:32"; // Order place time, if TimeSet = "00:00", the EA works on the breakdown of the previous day.
  • Delta - Price shift (in points)
  • SL - Stoploss (in points)
  • TP - Takeprofit (in points)
  • risk - If 0 is a fixed lot
  • NoLoss - If 0 then there is "zero" setting
  • trailing - If 0 then there is no trailing
  • Lot - used only when risk = 0
  • Expose OpenStop-stop orders at the open order



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

VisualTrader-SimulatorEdtion VisualTrader-SimulatorEdtion

Use the tester as Simulator

Programmatic modification of Tester "From:" and "To:" fields with user32.dll Programmatic modification of Tester "From:" and "To:" fields with user32.dll

This script uses the Windows API to modify the "From:" and "To:" fields within the strategy tester according to user input. For this script the strategy tester should already be open. Tested on Windows 7 64 bit. If you are using another version of win

BBSqueeze Dark Indicator BBSqueeze Dark Indicator

Indicator shows buy and sell regions based on combination of Bollinger bands and Keltner channels.

Power Wave Oscillator Power Wave Oscillator

Power Wave Oscillator.