| / | Forum |
|
cleon
2006.02.17 12:18
Hello all,
I'm want to monitor an order in a way so I can know when it changes from pending to open and from open to closed. I don't use price to check this because I must have sure that the order was hit, so I use ticket number (Fractal_Buy[4] has the ticket number).
My questions are: 1 - Is there a more simple or easy way to do this? 2- Does MQL have something like events? So when a position is open or hit by SL we can check? Thank you. Cleon |
|
Simultaneous Displaying of the Signals of Several Indicators from the Four Timeframes While manual trading you have to keep an eye on the values of several indicators. It is a little bit different from mechanical trading. If you have two or three indicators and you have chosen a one timeframe for trading, it is not a complicated task. But what will you do if you have five or six indicators and your trading strategy requires considering the signals on the several timeframes? |
|
CockeyedCowboy
2006.02.18 16:59
What I have done in the past was to have the order numbers on the screen along with
a bullet. The color of the order nume and the bullet lets me know what the status
of the order is. In the code be low if the order number is white and the bullet
is white as well the order is active but not triggered (pending), white numers
are active orders gray numbers are closed orders. the color of the bullets are
green in profit red at a loss yellow is at even profits. dark green or dark yellow
stoploss is at break even with a profit or zero profits. when the numbers are gray
the orders are inactive and the bullet color shows if the orders are closed at
profit at a loss or at break even. This may sound complicated but will show some
screen shots.
I also have develop a way to have the screen information rotate with different information on an ongoing bases. In this case there are 6 different screens runtime screens and two debuging screens. some of the screen info was still under construction when this shot was taken. the two booms at current bar are trailing stops.
|
|
cleon
2006.02.21 17:37
Hi CockeyedCowboy,
Thank you. Your code gave me the confirmation I needed about this topic. That rotating information is a very good way to keep important data without filling all screen. Very nice idea. Thank you. Regards, Cleon |
|
CockeyedCowboy
2006.02.22 06:38
cleon
This is some code that alternates the out put between different screens, you will have to convert it for your needs. This has seven screens to rotate through and if you trow a switch at the begining of the EA (not shown) it will show debuging screen information as well. The debuging screens are useful for when your writing the the oringinal code. It is turned off but not removed as it will be needed to make future changes and up dates to the code. The first code block is the rotating engine.
The next two code blocks are the functions that displays two of the seven sceens, these are the two displaying time information.
and the second time screen;
Hope this will give you some idears for your own work. The CockeyedCowboy |