Codes

MAM_Crossover Trader for MetaTrader 4

EA Based on MAM_Crossover Indicator by pramono72 Code base: http://codebase.mql4.com/7113

Forum

How can I shift the handle to the end of an openned csv file?

Hi there, I am trying to open a csv file and add some information to the end of it. I use for example: string filename="test.csv"; int Handle=FileOpen(filename, FILE_CSV|FILE_WRITE ,';'); to open a csv file and: string date=TimeToStr(TimeLocal(),TIME_DATE); string

EA supposed to start on each tick. Were they desiged to start on each bar in older MT Versions??

Sometimes I read in forums that are outdated, about EA's that start at the start of each upcomming bar. As I started with MT4, my question is: " Was that a feature of EA's to start at the start of each bar on the opening of each bar in earlier MetaTrader versions??? If yes what should I change in

How can I add capability to my EA to close all the open positions and DO NOTHING in specific circumstances

All of EA's that I have worked with open ie. long position and when condition changes close the open position and goes for short position right a way. There is always another condition that EA should close all the open positions and simply do NOTHING. Can you guide me how can I add this capability