Amps

Monday, June 18, 2018

How difference between mt4 input extern

MT4 input extern

Wondering, how difference between MT4 input and extern. Both variable used for specific variable, which in visual programming like, Visual basic, C#, Delphi or Lazarus those would know in properties section.
input and extern in MT4 is the variable, which used in MA, some programmer call global variable 

input

A variable with the input modifier can't be changed inside mql4-programs

extern

extern ones also determine the input parameters of an mql4 program. They are available from the Properties window, values of extern variables can be modified in the program during its operation.


note: photo by doc mql4

Global Variables

Global variables are created by placing their declarations outside function descriptions, they are not local in any block. Global variable can be used in any function of EA.
Example:
int GlobalFlag=10;   // Global variable
int OnStart()
  {
   ...
  }

Short note buy and sell

Open Buy use ask price
TP buy use ask price

Open Sell use bid price
TP sell use bid price

Sunday, June 17, 2018

Best Forex Trading Strategies on EMA

Best Forex Trading Strategies on EMA

BladeRunner Trading Method

Document from forexfactory

This example is for a long entry. The opposite rules apply for a short entry

Indicator Use EMA 8/21/89
MACD Color TF H4 (5,13,1)
MACD Color TF H1 (8,13,1)

Buy Example

On TF H4
price closing above the 8EMA with the 8/21EMA starting to separate

Access TF H1
Enter long on the next 1 hour close that turns the MACD histogram back to green as long as the close is above the 8EMA on the 1 hour.
Place a 10 pip stop loss at the low of the bar you entered on. Progressively move the stop loss up on all positions to the new stop loss. In other words, all long positions will be closed out at the same price.
Note: 1 pip = 10 point

The highlighted area of the 1 hour chart below shows every long entry (vertical
line) that would have been entered before being stopped out after entry #10.

The short black horizontal bars show where your stop loss would have been moved up after each entry.

This method is best suited for strong trending markets.Refer to daily charts to get a larger picture of what the longer term trend is.

Trade breakdown with spread. Stop loss is at 10 pips below the low of the entry:
1) Buy at 1.4263 with a stop at 1.4237
2) Buy at 1.4280 move stop to 1.4245
3) Buy at 1.4320 move stop to 1.4282
4) Buy at 1.4325 move stop to 1.4302
5) Buy at 1.4338 move stop to 1.4014
6) Buy at 1.4363 move stop to 1.4314
7) Buy at 1.4379 move stop to 1.4350
8) Buy at 1.4388 move stop to 1.4354
9) Buy at 1.4410 move stop to 1.4498
10) Buy at 1.4425 move stop to 1.4402
All ten positions stopped out at 1.4402

If price closes below the 8EMA on the 1 hour charts, it may be the start of the trend slowing down.
If price closes below the 8EMA on the 4 hour charts your positions may all get stopped out.