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

4 comments:

  1. This comment has been removed by a blog administrator.

    ReplyDelete
  2. For those who want to try FOREX without investing, Get these no-deposit Bonus at FREE FOREX BONUS

    ReplyDelete
  3. Ok...

    This might sound a little weird, maybe even a little "supernatural"

    BUT what if you could simply click "PLAY" and LISTEN to a short, "magical tone"...

    And magically bring MORE MONEY to your LIFE??

    And I'm talking about thousands... even MILLIONS of DOLLARS!!

    Sound too EASY?? Think this couldn't possibly be for REAL??

    Well, I'll be the one to tell you the news.

    Usually the most magical miracles in life are the easiest to RECEIVE!!

    In fact, I will provide you with PROOF by allowing you to listen to a real-life "magical abundance tone" I've produced...

    And TOTALLY FOR FREE

    YOU simply hit "PLAY" and watch how money starts piling up around you... starting pretty much right away...

    GO here NOW to experience this magical "Miracle Wealth Building Tone" as my gift to you!!

    ReplyDelete
  4. According to Stanford Medical, It is in fact the SINGLE reason women in this country live 10 years longer and weigh on average 19 KG less than we do.

    (And realistically, it has NOTHING to do with genetics or some secret-exercise and EVERYTHING related to "how" they are eating.)

    P.S, I said "HOW", and not "what"...

    Click this link to uncover if this little quiz can help you release your real weight loss possibilities

    ReplyDelete