|
|||||||
| Register in Forex TSD! | |
|
Trading Systems Leaders in this forum (automated trading systems) are winning more than 3000 pips in a month (30000$ investing one lot every time). Click here to register and get more information |
|
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
How do you show buy and sell arrows on an EA
I am able to show arrows on indicators but I can't figure it out on an expert advisor. It would be nice to see arrows that indicate buy and sell positions as well as closing of a position. Any help would be apreciated.
Thanks, Randy |
|
|||
|
Quote:
int mObjs; // at the beginning where you declare the variables. Then after opening a Buy, mObjs=ObjectsTotal()+1; ObjectCreate(""+mObjs, OBJ_TEXT, 0, Time[0], Ask); ObjectSetText(""+mObjs, ""+"B", 8, "Arial", Yellow); After opening a sell, mObjs=ObjectsTotal()+1; ObjectCreate(""+mObjs, OBJ_TEXT, 0, Time[0], Bid); ObjectSetText(""+mObjs, ""+"S", 8, "Arial", Red); Nothing really fancy, but it gives a visual indication when the order was placed. |
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| how to change arrows | fxbs | Indicators - Metatrader 4 | 1 | 03-23-2007 04:12 AM |
| Indicator DMI - Arrows | profeta | Suggestions for Trading Systems | 7 | 03-02-2007 06:10 AM |
| Arrows in EA? | arashas | Metatrader 4 | 4 | 02-04-2007 07:47 AM |