extern and int difference

 
Small question.
I have this EA that has external input following as  focusing on the pipcount in the mt4 settings.
extern double  PipCount    = 20;

If I need the pipcount  not to  be able to be edited in the mt4 terminal setting I should use the following?

int PipCount    = 30;

or do I use the following?

double  PipCount    = 30;
 
drop the extern. Perhaps you should read the manual.
Similar to input-variables, extern ones also determine the input parameters of an mql4 program.
          Extern Variables - Variables - Language Basics - MQL4 Reference
 
whroeder1:
drop the extern. Perhaps you should read the manual.

i kinda figured that.
Thanx for the input.
I am no developer. I am only trying to edit my own EA.

 

Franzel Botha:

or do I use the following?

@whroeder1 already answered your question about extern.

As for int vs. double:

I typically use double for pips and int for points. Depending upon your currency pair, a portion of a pip is meaningful (10 points to 1 pip for 3 and 5 digit prices), ergo double.

 
Anthony Garot:

@whroeder1 already answered your question about extern.

As for int vs. double:

I typically use double for pips and int for points. Depending upon your currency pair, a portion of a pip is meaningful, ergo double.

thnx. makes sense.

 

in mql5 extern doesn't work correctly. 

extern int XT = 10;

 Not displayed in the output window.

pls help.

 
abdi65 :

in mql5 extern doesn't work correctly. 

extern int XT = 10;

 Not displayed in the output window.

pls help.

Use 'input'. Forget about ' extern'.

Reason: