El script "History Deals and Orders" muestra absolutamente todas las propiedades para las transacciones y órdenes de la historia en el intervalo temporal indicado.
Se permite la muestra tanto en la pestaña "Expertos" del terminal, como en un archivo de texto (el archivo de texto se ubica en [data folder]\MQL5\Files). Si la muestra se realiza en un archivo de texto, el algoritmo será el siguiente:
Para ver y abrir el archivo de texto es necesario:
Ejemplo para el archivo de prueba:
Deal: |Ticket |Order |Time |Time msc |Type |Entry |Magic |Reason |Position ID |144059549 |160789141 |2017.08.02 10:35:46 |1501670146218 |DEAL_TYPE_SELL |DEAL_ENTRY_IN |0 |DEAL_REASON_CLIENT |160789141 |Volume |Price |Commission |Swap |Profit |Symbol |Comment |External ID |0.01 |1.18265 |0.00 |0.00 |0.00 |EURUSD | | Order: |Ticket |Time setup |Type |State |Time expiration |Time done |Time setup msc |Time done msc |Type filling |160789141 |2017.08.02 10:35:46 |ORDER_TYPE_SELL |ORDER_STATE_FILLED |2017.08.02 10:35:46 |2017.08.02 10:35:46 |1501670146217 |1501670146218 |ORDER_FILLING_FOK |Type time |Magic |Reason |Position id |Position by id |1970.01.01 00:00:00 |0 |ORDER_REASON_CLIENT |160789141 |0 |Volume initial |Volume current |Open price |sl |tp |Price current |Price stoplimit |0.01 |0.00 |1.18265 |0.00000 |0.00000 |1.18265 |0.00000 |Symbol |Comment |Extarnal id |EURUSD | | Deal: |Ticket |Order |Time |Time msc |Type |Entry |Magic |Reason |Position ID |144059588 |160789184 |2017.08.02 10:35:55 |1501670155724 |DEAL_TYPE_BUY |DEAL_ENTRY_OUT |0 |DEAL_REASON_CLIENT |160789141 |Volume |Price |Commission |Swap |Profit |Symbol |Comment |External ID |0.01 |1.18276 |0.00 |0.00 |-0.09 |EURUSD | | Order: |Ticket |Time setup |Type |State |Time expiration |Time done |Time setup msc |Time done msc |Type filling |160789184 |2017.08.02 10:35:55 |ORDER_TYPE_BUY |ORDER_STATE_FILLED |2017.08.02 10:35:55 |2017.08.02 10:35:55 |1501670155724 |1501670155724 |ORDER_FILLING_FOK |Type time |Magic |Reason |Position id |Position by id |1970.01.01 00:00:00 |0 |ORDER_REASON_CLIENT |160789141 |0 |Volume initial |Volume current |Open price |sl |tp |Price current |Price stoplimit |0.01 |0.00 |1.18276 |0.00000 |0.00000 |1.18276 |0.00000 |Symbol |Comment |Extarnal id |EURUSD | |
Traducción del ruso realizada por MetaQuotes Ltd
Artículo original: /ru/code/19019
Expert
Biblioteca de lectura/escritura de los parámetros de los asesores.
ColorPsychological
Indicador Psychological en forma de histograma, con envío de alertas, notificaciones push y mensajes de correo.
Pending orders UP
El script coloca varias órdenes pendientes por encima del precio actual.
Pending orders DOWN
El script coloca varias órdenes pendientes por debajo del precio actual.