Detected Country () : English
Enumeration - codingforex.com

Welcome to CodingForex.Com!

Knowledge portal where you can learn how to create forex indicators and robot.

Click button below to choose level that suite you:

Enumeration

Quick Tips [2018-06-04 13:17:35] - by hillzx
Featured Image

Enumeration is a way to swap / customize data types, we can create your own data type to facilitate forex coding.

Example:

enum EnumPojokan  // enumeration of named constants
  {
   LeftTop=0,
   RightTop=1,
   LeftBottom=2,
   RightBottom=3
  };

extern EnumPojokan TextPosition=RightTop;

This means we represent LeftTop with numbers 0, RightTop with number 1, and so on. So in the inputs menu we can choose the choice of text rather than numbers that sometimes make us forget.

 

enum

 

Here is the full code :

enum2


Let us try, do not forget to share and follow our facebook and our youtube channel, happy trading!


Previous Article

Featured Image

Alert

Next Article

Featured Image

What is Bars?




- Provided by HiLLzSoft Studio -