No Tipster, I think you misunderstood. I know that I don't need Mt4 for exporting the CSV file. I wanted to know what is needed to be exported by Amibroker so that Metatrader is able to read all order possibilities. And I'm not familiar with MT4 order management. Here there is the description of the mql script
QuoteDislikedAPPEARS TO WORK BUT NOT FULLY TESTED This is a crude "API" for MT4. It allows external programs to control MT4 to execute, modify, close and delete trades Store in experts/scripts and compile This script Polls folder experts/files every Repeat_Delay_Seconds for a file commandfile.txt If it exists, reads a single trade command as per examples below.:
QuoteDislikedOrderSend,AUDUSD,OP_BUY,1,Ask,5,0,0,Order1,9999,0,Orange OrderSend,AUDUSD,OP_BUYSTOP,1,0.7670,5,0,0,Order2,9999,0,Orange OrderModify,Order1,0.7695,0.7620,0.7720,0,Orange OrderClose,Order1,1,Bid,5,Purple OrderDelete,Order1 Note that the format of the CSV lines is similar to the original function calls.
QuoteDislikedAn important point about managing existing orders ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ The commands OrderModify, OrderClose and OrderDelete locate the order that they are targetting by its Comment, NOT by its ticket number.
QuoteDislikedIf the command in commandfile.txt is successful it is deleted and the command is written to commandfile_log.txt Unsuccessful commandfiles are renamed "FAILED command .txt" Maintains list of open orders in openorders.txt in format: OrderOpenTime,OrderComment,OrderMagicNumber,OrderSymbol,OrderType,OrderLots,OrderOpenPrice,OrderStopLoss,OrderTakeProfit