11//+------------------------------------------------------------------+
22//| Position Size Calculator.mq4 |
3- //| Copyright © 2015 - 2016, Leonardo Ciaccio |
3+ //| Copyright © 2015 - 2016, Leonardo Ciaccio |
44//| https://github.com/LeonardoCiaccio/Position-Size-Calculator |
55//| |
66//| Donate Bitcoins : 1KHSR2S58y8WV6o3zRYeD5fBApvfTMtj8B |
77//| Donate PayPal : microlabs@altervista.org |
88//+------------------------------------------------------------------+
99
10+ #property copyright " Copyright © 2015-2016, Leonardo Ciaccio"
11+ #property link " https://github.com/LeonardoCiaccio/Position-Size-Calculator"
12+ #property indicator_chart_window
13+ #property description " Calculate the value of size in real-time with mode Money and Percentage."
14+ #property strict // Extern/Input box trick ;) - http://docs.mql4.com/basis/preprosessor/compilation
1015
1116enum __money {
1217
13- FreeMargin ,
18+ FreeMargin , //Free Margin
1419 Balance ,
1520 Equity
1621
1722};
1823
1924enum __position {
2025
21- TopLeft = 0 ,
22- TopRight = 1 ,
23- BottomLeft = 2 ,
24- BottomRight = 3
26+ TopLeft = 0 , // Top Left
27+ TopRight = 1 , // Top Right
28+ BottomLeft = 2 , // Bottom Left
29+ BottomRight = 3 // Bottom Right
2530
2631};
2732
@@ -32,37 +37,35 @@ enum __mode{
3237
3338};
3439
35- #property copyright " Copyright © 2015-2016, Leonardo Ciaccio"
36- #property link " https://github.com/LeonardoCiaccio/Position-Size-Calculator"
37- #property indicator_chart_window
3840
39- extern string Info = " [ App Info ]" ;
41+
42+ extern string Info = " --------------------------------------------------------" ; // ------- INDICATOR INFORMATION
4043extern string Name = " Position Size Calculator" ;
41- extern string Version = " v.1.0.3 " ;
44+ extern string Version = " v.1.0.4 " ;
4245extern string Contact = " leonardo.ciaccio@gmail.com" ;
4346extern string Web = " https://github.com/LeonardoCiaccio/Position-Size-Calculator" ;
44- extern string Donate_Bitcoins = " 1KHSR2S58y8WV6o3zRYeD5fBApvfTMtj8B" ;
45- extern string Donate_PayPal = " microlabs@altervista.org" ;
47+ extern string Donate_Bitcoins = " 1KHSR2S58y8WV6o3zRYeD5fBApvfTMtj8B" ; // Donate Bitcoins
48+ extern string Donate_PayPal = " microlabs@altervista.org" ; // Donate PayPal
4649
47- extern string Setup = " [ App Setup ] " ;
48- extern __money AccountMoney = Balance ;
49- extern __mode Mode = Percentage ;
50- extern double StopLossPips = 30 ;
51- extern double RiskPercentage = 5 ;
52- extern double RiskMoney = 25 ;
50+ extern string Setup = " -------------------------------------------------------- " ; // ------- SETUP INDICATOR
51+ extern __money AccountMoney = Balance ; // Money For The Calculation
52+ extern __mode Mode = Percentage ; // Mode For The Calculation
53+ extern double StopLossPips = 30 ; // Stop Loss In Pips
54+ extern double RiskPercentage = 5 ; // Risk In Percentage
55+ extern double RiskMoney = 25 ; // Risk In Money
5356
54- extern string Box = " [ App Box ] " ;
55- extern color Color_BackGround = Black ;
56- extern color Color_Lots = Red ;
57- extern color Color_Profit = LightBlue ;
58- extern color Color_Tick = Orange ;
59- extern color Font_Color = LightBlue ;
60- extern int Font_Size = 12 ;
61- extern string Font_Face = " Courier" ;
57+ extern string Box = " -------------------------------------------------------- " ; // ------- SETUP BX STYLE
58+ extern color Color_BackGround = Black ; // Color Of Background Box
59+ extern color Color_Lots = Red ; // Color Of Size
60+ extern color Color_Profit = LightBlue ; // Color Of Profit
61+ extern color Color_Tick = Orange ; // Color Of Ticks
62+ extern color Font_Color = LightBlue ; // Color Of Common Fonts
63+ extern int Font_Size = 12 ; // Font Size
64+ extern string Font_Face = " Courier" ; // Font Face
6265extern __position Position = BottomLeft ;
63- extern int Distance_X = 25 ;
64- extern int Distance_Y = 15 ;
65- extern int BackGround_Size = 180 ;
66+ extern int Distance_X = 25 ; // Distance Of Box Horizontal
67+ extern int Distance_Y = 15 ; // Distance Of Box Vertical
68+ extern int BackGround_Size = 180 ; // Size Of Box ( ignore it )
6669
6770double MyPoint = 0.0 ;
6871string MySymbol = " " ;
0 commit comments