Welcome to Forex-TSD!, one of the largest Forex forums worldwide, where you will be able to find the most complete and reliable Forex information imaginable.
From the list below, select the forum that you want to visit and register to post, as many times you want. It’s absolutely free. Click here for registering on Forex-TSD.
Exclusive Forum
The Exclusive Forum is the only paid section. Once you subscribe, you will get free access to real cutting-edge Trading Systems (automated and not), Indicators, Signals, Articles, etc., that will help and guide you, in ways that you could only imagine, with your Forex trading.
Elite Section
Get access to private discussions, specialized support, indicators and trading systems reported every week.
Advanced Elite Section
For professional traders, trading system developers and any other member who may need to use and/or convert, the most cutting-edge exclusive indicators and trading systems for MT4 and MT5.
How would I go about creating an EA using the AMA(Kaufman) that enters positions on the bar after a colored ball appears? Do I need to put the AMA logic into the EA or should I be using global variables? I have a bit of programming knowledge, however in my tests using a global variable the EA only trades in one direction.
The logic in the indicator that I think identifies whether a ball appears or not is :
So what I did was put " datetime AMASig = GlobalVariableSet(string "AMASig", double ddK);" into the indicator to pull out the ddK. Then, in the EA I put:
if ((MathAbs(ddK)) > (dK*Point) && (ddK > 0))sig=1;
if ((MathAbs(ddK)) > (dK*Point) && (ddK < 0)) sig=2;
Where sig 1 is a buy and sig 2 is a sell, however the problem I described above persists. The EA only trades in one direction.
i hope this help u, but sorry i write this with notepad, so i don't know that any sintax was wrong....
sorry for my bad english, but if anyone here speak indonesian that would help