File write issue ... unable to write

 

Hi

I am trying to write in file but every time is only able to create but unable to write in the file... Please help

I have attached the script.

Files:
filetest.mq4  4 kb
 
Date,Time,Time Zone,Currency,Event,Importance,Actual,Forecast,Previous
Sun Dec 1,01:00,GMT,cny,CNY Manufacturing PMI,Medium,51.4,51.1,51.4
Sun Dec 1,21:45,GMT,nzd,NZD Terms of Trade Index (QoQ),Low,7.5%,2.9%,4.7%
Sun Dec 1,22:30,GMT,AUD,AUD AiG Performance of Manufacturing Index,Medium,47.7,,53.2
Sun Dec 1,23:00,GMT,AUD,AUD RPData/Rismark House Px (MoM),Low,0.1%,,1.3%
Sun Dec 1,23:30,GMT,aud,AUD TD Securities Inflation (MoM),Low,0.2%,,0.1%
Sun Dec 1,23:30,GMT,aud,AUD TD Securities Inflation (YoY),Medium,2.4%,,2.1%
Sun Dec 1,23:50,GMT,jpy,JPY Capital Spending,Medium,1.5%,3.6%,0.0%
Sun Dec 1,23:50,GMT,jpy,JPY Loans & Discounts Corp (YoY),Low,1.99%,,2.00%
Sun Dec 1,23:50,GMT,jpy,JPY Capital Spending excl Software,Low,2.3%,4.5%,1.4%
Sun Dec 1,23:50,GMT,jpy,JPY Company Sales,Low,0.8%,,-0.5%
Sun Dec 1,23:50,GMT,jpy,JPY Company Profits,Low,24.1%,,24.0%
Mon Dec 2,00:01,GMT,gbp,GBP Hometrack Housing Survey (MoM),Low,0.5%,,0.5%
Mon Dec 2,00:01,GMT,gbp,GBP Hometrack Housing Survey (YoY),Low,3.8%,,3.1%
Mon Dec 2,00:30,GMT,aud,AUD Building Approvals (MoM),Low,-1.8%,-5.0%,16.9%
Mon Dec 2,00:30,GMT,aud,AUD Building Approvals (YoY),Low,23.1%,17.0%,22.2%
Mon Dec 2,00:30,GMT,aud,AUD Company Operating Profit (QoQ),Low,3.9%,1.0%,0.4%
Mon Dec 2,00:30,GMT,aud,AUD Inventories,Low,-0.5%,0.0%,0.4%
Mon Dec 2,01:45,GMT,cny,CNY HSBC/Markit Manufacturing PMI,Medium,50.8,50.5,50.9
Mon Dec 2,04:45,GMT,jpy,JPY BoJ Governor Kuroda Speaks in Nagoya,Medium,,,
Mon Dec 2,05:00,GMT,jpy,JPY Vehicle Sales (YoY),Low,13.3%,,17.3%
Mon Dec 2,05:30,GMT,aud,AUD Commodity Index,Low,89.9,,88.6
Mon Dec 2,05:30,GMT,aud,AUD RBA Commodity Index SDR (YoY),Low,-1.9%,,-0.5%
Mon Dec 2,05:54,GMT,cny,CNY Leading Index,Low,99.54,,99.57

See News events and market times on your chart (Author: deVries)

Indicator displays News with a market clock.
 
athar48:

Hi

I am trying to write in file but every time is only able to create but unable to write in the file... Please help

I have attached the script.

There is no problem with this code, if used properly.

Do you understand that you have to enter values in input parameters ? Do you understand the usage of "break;" ? Do you understand that start() function is called on each tick ?

Reason: