MQL4 OnTrade() Alternative

0
(0)
Nomen:
MQL4 OnTrade() Alternative
Author: codersguru (2014.02.17 14:07)
Downloaded: 122
Download:
MQL4 OnTrade() Alternative 1
Simulator.mq4 (27.3 Kb) Visum

Author:

Coders' Guru

Descriptio:

While discovering the MQL4 New build (610) capabilities I found a very useful even OnTrade() highlighted in MetaEditor.

I clicked F1 to see its implementation but unfortunately it's not supported yet in MQL4.

That's why I created my own Simulator.

This code will raise events on these cases:

OnOpen: When open a new instant order.

OnModify: When the order modified.

OnStopLoss: When the order close because its StopLoss.

OnTakeProfit: When the order close because its TakeProfit.

OnClose: When the order close (Not by SL or TP).

Please give it a test and tell me your comments.

 

Respicit,

Coders' Guru

 

Image:

Tester example

Quam utile fuit hoc post?

Click on a stella ad rate it!

Mediocris rating 0 / 5. Suffragium Comitis: 0

Nulla suffragia usque! Primus ad rate esto post haec.

Dolemus quod haec posta tibi non utilis fuit!

Emendare post haec!

Dic nobis quomodo hanc postem emendare possimus?



Author: Praenomen to Team
Nos sumus quadrigis maxime peritus congue mercatores [2000-2023] qui vitam nostram vivendo sunt addicti. Primarium propositum nostrum est libertatem ac libertatem attingere, et sui educationem secuti sumus et in Forexino foro peritia multa consecuti sumus ut media ad vitam sustinendam sui sustentandam..