- Ask!
- Help needed with script coding: monitor text file and execute trades
- Need Help on OrderModify().
int start(){ int count=0; for(int iPos = OrdersTotal()-1; iPos >= 0 ; iPos--) if ( OrderSelect(iPos, SELECT_BY_POS) // Only my orders w/ && OrderMagicNumber() == Magic.Number // my magic number && OrderSymbol() == chart.symbol // and my pair, ){ count++; } if (count == 0) Print("no trades open");
Assuming you are using the file as a means of communicating with EA's attached to different Brokers.
Instead of deleting the file blank the file or write a zero to it not using 'append' mode.
Dear Ickyrus:
The problem occurs if the file still exists in the system and I try to load the expert say for the first time in a day.
Difficult to answer properly when what you are trying to do with the file is not clear.
Difficult to answer properly when what you are trying to do with the file is not clear.
Dear Ickyrus:
I will explain again. I need MY EA to delete any possible attached file when I load it for the first time each day. However, I do not want the EA to delete the same file after it has been loaded. That is, at the point of loading, if it finds any file to delete, but, after a few seconds of running it should not delete the same files if it receives them.
Dear Ickyrus:
I will explain again. I need MY EA to delete any possible attached file when I load it for the first time each day. However, I do not want the EA to delete the same file after it has been loaded. That is, at the point of loading, if it finds any file to delete, but, after a few seconds of running it should not delete the same files if it receives them.
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use