Juraj Ondrusek / Publications
Forum
replace value
Hi. Please help: I have file with name values.ini in file is: scroll=1 shift=1 I need only change the value 1 to 0. How to do it in MQL? Thanks I have: ------------------------------------------------------------------ string file_name = "values.ini"; int fileHandle= -1, lasterror = 0;
One Click Trading panel Show/Hide MQL command
Hi. Does anyone know MQL command for Show/Hide One Click Trading panel? Thx
Delete object when order is closed
Hi, I need to help. Know anybody, how to delete object (TEXT_OBJECT with name=OrderTicket()), when that order is already closed? EXAMPLE: for(int z=OrdersTotal()-1; z>=0; z--) { int sel = OrderSelect(z, SELECT_BY_POS); string ticket = (string)OrderTicket(); Object_Create(ticket); }
How to save MARGIN LEVEL to a file
Please, how to change this line in the way to write a MARGIN LEVEL % into a file MARGIN.TXT? if(!FileWriter("SEURUSD.TXT", (string)(MarketInfo("EURUSD",MODE_SPREAD)/mult) )) return(false); ===> if(!FileWriter("MARGINL.TXT", ???...................... return(false);
EURUSD price write to file
Please, anybody know write code EA - "write current price to file"? For example: Pair: EURUSD Filename: EURUSD.txt At all time, on every change (=every second/milisecond) must EA write current sell price of EURUSD to txt file. In file can not be other as price only. For example 1.3520. No more
write EURUSD price to file
Please, anybody know write code EA - "write current price to file"? For example: Pair: EURUSD Filename: EURUSD.txt 1.EA check sell price of EURUSD 2.write it to a txt file 3.repeat from step 1. (real-time = fast response) In file can not be other as price only. For example "1.3520". No more. THANK
EA: Place order from external file
PLEASE, know anybody write code EA? : For example: I have file: ORDER.TXT Inside is: SELL ; 0.1 ; 20 ; 10 ; 0 It is: order type ; volume ; TP ; SL ; TS How to works: 1.Run EA 2.EA must check if the file ORDER.TXT is exist. If not, must still cheking (very fast response) 3.I create file ORDER.TXT