| New signals service! | |
|
|||||||
| 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 |
|
|||
|
EA question
I'm writing an EA. I have a couple indicators I want to use that I would like to trade if they change colors. For instance, if the indicator is green, buy. If the indicator is yellow, sell. Any help would be appreciated.
|
|
|||
|
Use iCustom statement such as:
Note: PM1 or PM2 is variable name - can be changed. int BuyValue=0, SellValue=0; PHP Code:
PHP Code:
if(PM1>PM2 && PM1_1<PM2_1) { BuyValue=1; } if(PM1<PM2 && PM1_1>PM2_1){ SellValue=1; } When Buy or Sell Value=1, then Buy or Sell Statement to open ticket. Dave P.S. Up is normally Buffer 0, Dwn is normally Buffer 1! Last edited by Dave137; 09-02-2008 at 12:39 AM. |
|
|||
|
Ok, I've been trying to get my EA to work. I just want it to trade when the indicator changes from one color to another. I don't think it should be that hard but I make everything difficult. Does anyone have a simple EA that trades based on only one indicator changing color? For an example, so I can see how horrible my programming skills really are.
|
|
|||
|
Looking for someone who could write mt4 code
hello, I know nothing about codes but was curious to know if it would be possible to write a code using info from a stoc and a cci on a 5 and 15 min time frame and when they line up for some type of alert go off. IS this possible, and does anyone know anyone who could do it?
please advise. |
|
|||
|
Please can someone explain to me how can I get rid of an "OrderModify error 1" problem. I been looking and it seams I need to NormalizeDouble(), but I've normalized everything from here to the moon and still I'm getting the error.
Once I understand it I think I'll be able to figure it out, please can someone help. thanks. |
|
|||
|
Take a look in the MQLEditor help file at the icustom function and/or do a search here for it.
Good luck Lux
__________________
Build An Expert Advisor. FREE E-course As Seen On TV ![]() ForexArea.com Users of Gap Trader from 'Forex-Assistant' MUST Read This |
|
|||
|
Hi,
I'm building/modfying some EAS. What is the comand that I need to use to CLOSE some BUY or SELL Order if my Profit reaches some value. Lets say I want to Close every order that reaches the PROFIT = +30.00 How Can I do that?? thanks in advance. |
![]() |
| Bookmarks |
| Tags |
| automated close order, close, eas, forex, learn mql4, learn mql4 video, mql4 learning, OrderCloseBy, profit, reach, secure profit function, T101_v1.11_orest_IBFXm.mq4, learning mql4 |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Learning Cycles For New Traders | Dan7974 | General Discussion | 350 | 01-18-2008 07:04 PM |
| Learning to code for autotrading | GoatT | Metatrader Programming | 8 | 01-10-2007 09:55 PM |
| Self learning expert | mrtools | Expert Advisors - Metatrader 4 | 32 | 10-22-2006 06:29 PM |