Forum

Tick Value in Base Currency

Being a newbie, I am struggling with understanding concept of TickValue. A query with MarketInfo(GBPUSD, MODE_TICKVALUE) gives me 0.6515 for BID/ASK of 1.53513/1.53531, my deposit currency being GBP. Going by definition of tickValue -> ("Tick value in the deposit currency") and tick size being

FileWrite() New line Problem

Hil, I am having problem with file written EA as it seems like only a single line is written. Is following code ok ? handle= FileOpen ( "TestFile.csv" , FILE_CSV | FILE_WRITE , ';' ); if (handle> 0 ) { FileWrite (handle, Ask,Count1,Count2,X,TickCount); // Alert(" Write to File : "

Buffer not Working

Hi I am creating a buffer of 20 elements to store profit for last 20 ticks .. want to calculate a weighted average from this buffer. However my buffer variable ProfitBuffer[i] which is declared a global seems not to hold any value. Any ideas why ? Cheers // Gobal declaration double ProfitBuffer [

MT4 1 Hr Chart - How are bars drawn ?

Hi, I have a newbie question on charting in MT4 .. If I take 1 Hr chart, how are open and close prices for each bar determined ? Is the bar drawn to the clock .i.e price@07:00:00 is open pos, price@08:00:00 as close for 7am-8am bar or is there some other logic used ? Thanks in Advance