//+-----------------------------------------------------------+ //| MACD History Test.mq4 | //| Eaglehawk | //| http://www.forex-tsd.com/members/Eaglehawk.html | //+-----------------------------------------------------------+ #property copyright "Eaglehawk" #property link "http://www.forex-tsd.com/members/Eaglehawk.html" //-------------------------------Global Variables-------------------------------// int PB = 0;//will become the average profit expected from a buy signal int PS = 0;//will become the average profit expected from a sell signal int LB = 0;//will become the average loss expected from a buy signal int LS = 0;//will become the average loss expected from a buy signal int TotalB = 0;//Total of buy signals givin int TotalS = 0;//Total of sell signals givin int Total = 0;//Total of both buy and sell signals givin int handle = 0;//used for filewrite string FileTitle = "MACD Sig for ",Symbol(),Period(),".txt"; //+----------------------------+ //| Script (de-)/Initilization | //+----------------------------+ int init() { return (0); } int deinit() { return(0); } //+----------------------------+ //| Script Start function | //+----------------------------+ int start() { handle = FileOpen(FileTitle,FILE_READ|FILE_WRITE); if(handle != -1) { if(handle != -1) { FileSeek(handle,0,SEEK_SET); FileWrite(handle,"Current Chart is,",Symbol(),". The Timeframe is,",Period()); FileFlush(handle); FileClose(handle); } } return(0); } //+-------------------------------------------------------------------------------------------------+