chua le
chua le
chua le
Added topic Lowercase and uppercase variables declaration
Hi, Can I declare similar alpahet in lowercase and uppercase, example m and M?  I wish to use the same alpabet as variable , so can I differeciate both variables by using lowercase and uppercase
chua le
Added topic How to append to end of csv file ,starting from second last row ?
Hi, I have the csv file format like below (to append  d2, e2 ,d3,e3 value) : i have used  before FileSeek(handle,-2, SEEK_END ) to append to end of file (in this case : d3,e3)  but I dont know what is the FileSeek (handle
chua le
Added topic Exluding Weekends & Hoildays in Calculating Time Difference
Hi, How to exclude weekends and holiday in calculating many sets of time differences between two dates? Please help
chua le
Added topic Questions on User Defined Function
Hi, I have the following questions on user defined function: Question 1. Can I put a if statement within the function as I want to combine two functions into one ? Question 2. Can I use the same variable (a and b) in two different functions, does it
chua le
Added topic User Defined Function
while (pos>= 0 ) { // ******** SLmin Function **********    double Func_SLmin (iCxu)        
chua le
Added topic File Function
handle= FileOpen ( "File1.csv" , FILE_CSV | FILE_READ | FILE_WRITE , ',' ); FileSeek (handle, 0 , SEEK_END ); FileWrite (handle, Symbol (),TimeToStr(CurTime(), TIME_DATE | TIME_SECONDS ),Profit); FileClose (handle); handle= FileOpen ( "File1.csv"
chua le
Added topic Two indicators in the same chart
Hi, I have two indicators in the same chart whereby some variables used are the same, is it going to cause confusion ? I am worry the value of variable of one indicator will be mistakenly used by another indicator. I want to  clarify whether the
chua le
Added topic File Function Not Working
Hi, I have the file function as in coding section, it will work when the following is not inserted. The following code is inserted to only write once every hour. Kindly help why it doesnt work when code to write once every hour is inserted ? Also I
chua le
Added topic Dema Lines
Hi, I tried to plot three lines, Dema 4 (period =4), Dema 12 (period=12), Wma150 (weighted ,period=150) butit only plot the weighted moving avrage with period 150. Kindly //+------------------------------------------------------------------+
chua le
Added topic The purpose of return(0) within a if statement within curly bracket
Hi, I am trying to figure out  what is the purpose of return(0)? In my if statement within the curly bracket, i tested with and without retrun(0) in it and the results is the same.  So, does it mean return(0) doesnt really serve any
chua le
Added topic YTD and Gain % not Correct?
Hi, I extract this table and did the calculations for Year To Date (YTD) , Daily Gain, Monthly Gain and All Time Gain and found it is not tally with that from the table. My questions are as below: 1) For year 2018 : YTD =
chua le
Added topic Absolute Drawdown and Maximum Drawdown OutPut Not Correct?
Hi, I have done the backtest using EA : Moving Average.ex4 for EURUSD from 11.21.2018 to 11.24.2018.  I have spent a lot of time to calculate the Absolute Drawdown and Max Drawdown by hand and it does not tally with MT4 output. Is there a
chua le
Added topic OrderProfit() Not Correct
#property copyright "Ch Le" // External variables extern double Lots = 0.01 ; extern double StopLoss  = 300 ; extern double TakeProfit = 600 ; extern int Slip = 3 ; extern int MagicNumber = 123 ; // Global variables double M15Ema5
chua le
Added topic Custom EMA
Hi, I try to create multiple EMAs which is parallel to H1 Ema 20 with 10 pips interval by editing the custom moving average as follow (highlighted ) and it doesnt create parallel lines but overlap on existing ema 20 line. The completed file is
chua le
Added topic ECN Brokers Test
Hi, I am using MT4. Can I use  OrderSend with SL and TP and having error 130 to find out whether the broker is an ECN broker? Is this method the correct way and accurate? Or is there any other method to determine whether a broker is truely ECN
chua le
Added topic while lopp operator
Dear All,   Can I use the expression as below? Meaning can I use || the OR operaror in the expression? while ((PA<=20 && PA>0) || (PA>=-20 && PA<0)) .........  .......   Thanks 
chua le
Added topic Ema of Previous Bar
2016.08.02 13:00 Indicator USDCAD,H1: USDCAD H1 Ema20:Ema201= 1.3105: 1.3108 2016.08.02 12:00 Indicator USDCAD,H1: USDCAD H1 Ema20:Ema201= 1.3110 : 1.3110 2016.08.02 11:00 Indicator USDCAD,H1: USDCAD H1 Ema20:Ema201= 1.3111 :1.3110 Dear All, Above
chua le
Added topic Array - Constant Expression Required
//+------------------------------------------------------------------+ //| Pips
chua le
Added topic Exit from if statement and loop back to int start()
1 : int start() 2 : { 3 : 4 : if ( code 1 ) 5 :   { 6 : 7 :     if (code 2 ) 8 :     { 9 :      code 3 ; 10 :     code 4 ; 11
chua le
Added topic Single Alert within One Bar
//+------------------------------------------------------------------+
12