MQL4 OnTrade() Alternative

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

Author:

Coders' Guru

Description:

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.

 

Regards,

Coders' Guru

 

Image:

Tester example

How useful was this post?

Click on a star to rate it!

Average rating 0 / 5. Vote count: 0

No votes so far! Be the first to rate this post.

We are sorry that this post was not useful for you!

Let us improve this post!

Tell us how we can improve this post?



Author: Forex Wiki Team
We are a team of highly experienced Forex Traders [2000-2023] who are dedicated to living life on our own terms. Our primary objective is to attain financial independence and freedom, and we have pursued self-education and gained extensive experience in the Forex market as our means to achieve a self-sustainable lifestyle.