Hi...
Scorpion..
I had tried many times draw horizontal trendline as you mention and name it tx ( using "text" and "text label" ) and apply your indicator but nothing happen.. and I checked on expert window beside mailbox and jurnal mention
"TrendLineOrder loaded sucessfully" but at the same time "TrendLineOrder removed.What I gona to do.....sorry my bad english....
pls help me..scorpion or others lovely trader.
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!
|