
11-26-2007, 12:25 AM
|
|
Freshman
|
|
Join Date: Nov 2007
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Unable to make this EA work.
Quote:
Originally Posted by scorpion
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!
|
For some reason, I can not get this EA to work. I made a trend line and named it tx. Then I attached the EA to the same chart and did not get a buy or a sell when the price crossed the trendline. I put the EA in the expert advisor section and not the scripts section. Any suggestion?
|