MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal

Source code library - Expert Advisors, Indicators and Scripts

MetaTrader Market - the place where newest trading robots appear
To post a new code, please log in or register

Interesting script?
So post a link to it -
let others appraise it

You liked the script? Try it in the MetaTrader 5 terminal

2013.09.24 06:48
Open Position v3a - Updated for MT4 Build 600

Open Position v3a - Updated for MT4 Build 600 - indicator for MetaTrader 4

| English Spanish Portuguese

Views:
5348
Rating:
votes: 1
Open Positions v2 ( updated - see below)

  1. Open Position V2 has been updated to Open Position v3a for MT4 Build 600.
  2. Remove all old instances of Open Position v2 from all charts.
  3. Delete all instances of the old file Open Position v2 from the experts / indicator folder and all instances of Open Position v2 transfered to the MQL4 / Indicators folder.
  4. Install Open Postion v3a in MQL4 / Indicators folder.

This indicators is a modifications of the MetaQuotes iExposure indicator.

  1. Locked to the top right corner of the secondary window.
  2. The indicator should open as a secondary window below the main window.
  3. The indicator can also be dragged onto any secondary window such as Stocastics or MACD etc,
  4. If the indicator does not open as a secondary window (unlikely) and is preferred to occupy its own secondary window then install Blank.mq4 and drag the indicator onto Blank.mq4.
  5. The indicator is only visible when one or more positions are open.
  6. p = points. MT4 calculates in points not pips. Compare chart p numbers in included demo image against numbers* under Profit Heading in (Account) Terminal. **
  7. Use Column_Spacer to increase or decrease distance between columns. Too large an increment may result in the indicator moving off the display area. For finer control use decimal increments.
  8. For bold fonts set Fonts_Bold: true.

* If you find your MT4 Terminal numbers differ from the installed Indicator proceed as follows: Open Terminal(Ctrl+T). Right-click heading Profit. Shift cursor to → Profit menu. Select → as Points.

** Put focus on the chart and bring up the cross hairs (Ctrl+F) or click mouse scroll wheel. Hold the left mouse button down and drag a line at about 45 degree angle. Below image: 5 is bar displacement, 131 is price displacement in Points, 1.64573 is price.

Calculate the value of a move: The point value can be quickly calculated. As per above Image, AUDUSD (117.12/(10.43 x 18)) = (117.12/187.74) = 0.62384. In this case £0.62, but for greater accuracy retain 5 decimal placing. So a if 18 points move @ 10.43 lots = 117.12 then 180 points (18 x10 ) move at 10.43 lots = 117.12 x 10 = 1,171.20. Proof using point value: 10.43 x 180 x 0.62384 = 1,171.20.

The image illustrates trades taken to check the below cases against the MT4 Terminal values.:

  1. A Buy profit
  2. A buy loss
  3. A Sell profit
  4. A Sell loss

Tick Generator: Indicator update can lag the terminal in fast market, on slow PCs or slow connections. A tick-generator keeps all indicators up-dating current. Free – Here. Says for EA but keeps indicators up-dating current as well.

Last comments | Go to discussion (2)
file45
file451 | 25 Sep 2013 at 17:50
Forgot to include Blank.mq4. Unlikely to be needed. A copy can be got - Here
file45
file451 | 9 Jan 2014 at 09:20

Why keep re-setting a Scrip, Indicator or EA default parameter from, say, 34 to 50 ? Permanently change the default setting to 50 or make a copy with default 50 !

See HERE for instruction. It's dead easy ! - author: file45