View Single Post
  #6 (permalink)  
Old 01-11-2006, 09:27 AM
scorpion's Avatar
scorpion scorpion is offline
Administrator
 
Join Date: Aug 2004
Posts: 1,956
Thanks: 113
Thanked 378 Times in 151 Posts
scorpion is a splendid one to beholdscorpion is a splendid one to beholdscorpion is a splendid one to beholdscorpion is a splendid one to beholdscorpion is a splendid one to beholdscorpion is a splendid one to beholdscorpion is a splendid one to beholdscorpion is a splendid one to behold
Send a message via MSN to scorpion Send a message via Yahoo to scorpion
Default

Because if trendline is diagonal, the order price must be constantly modified to go along with the line. So if order price is needed to be constantly modified, it's the job of Expert Advisor not script, because script, like you said, run only one-time when you double click on it.

By the time I described to you, I've coded the expert advisor for you already, so check it out in Forward Testing not Backtesting. You must draw a trendline and name it tx (case sensitive). Attach the expert to the same chart that trendline is drawn. Then you can choose to open only Long, Short, Both, or none in the settings window. When bid price crosses up the trendline, buy at market price. When bid price crosses down the trendline, sell at market price.

Enjoys!
Attached Files
File Type: mq4 TrendlineOrder.mq4 (10.0 KB, 981 views)
Sponsored Links Shark EA Ultimate
Actual Profits on Live Account: +975%
Since Jan 2007. View Live Statements.
__________________
Make easy pips with the Advanced Economic Calendar for Forex Trading.
Reply With Quote
The Following 10 Users Say Thank You to scorpion For This Useful Post:

Registered members have access to special online forex currency trading tools, software, mt4 expert advisors and indicators. Register now

Main Menu

Economic Forecast