Is It Possible To Create A SELL/BUY Order With A FREE HAND SIMPLE TREND LINE ???

 
Hello together,

i am a new meta trader 4 user and mostly trading with free hand simple trend lines !!! I think to myself should i am opening a new account and i think i will do this by ALPARI UK in the next few days !!! But right here right now i am testing the demo version ...

My easy silly question (for metatrader prgrammers) is : IS IT POSSIBLE TO CREATE A SELL/BUY ORDER WITH A FREE HAND SIMPLE TREND LINE ???

http://forexfactory.com/attachment.php?attachmentid=122395&d=1213715533

I created a simple trend line in the Attach File above !!! Is it possible to programm a code which SELL/BUY the EURUSD if the candlesticks are getting touching with the simple trend line ???

I think this shouldn`t be a problem for a metatrader veteran programmer !!! Can anybody help me !? Or give me some instructions ??? Thanks ahead ...


Best trades
 
Sure it is possible. If you want to do it yourself study ObjectGet() function.
 
There is an EA already created called "TrendMeLeaveMe"...find it at mql codebase:

https://www.mql5.com/en/code/7066
 
There is an EA already created called "TrendMeLeaveMe"...find it at mql codebase:

https://www.mql5.com/en/code/7066



Great Stuff, Sweet Pip !!!

I have only the problem that i am a real metatrader rookie !!! So can you tell me where i have to copy the TrendMeLeaveMe.mq4 Data on my PC ??? I mean in which folder and what i have after that to do ???

Thanks ahead for really really good help !!!

Neo
 
There are a couple of ways but basically first you need to save the .mq4 file in the "Experts" folder.

If you are familiar with programming, then open the EA file with MT4's MetaEditor. Then click the "Compile" button, and go back to MT4 charts and it should show up in your "Navigator" window of indicators & experts in MT4.

If you are not familiar with programming, then you will have to close MT4 and then restart it so it will display the new EA in the Navigator window.

Note to MT4....is there a "refresh" navigator button...seems everybody just recommends closing and reopening MT4 whenever a new indicator or EA is added which is rather annoying.

Hope that helps :)