just a simple ea,
place buy / sell order on ema, sma, stochastic and rvi crossing.
and close trades on these crossing.
but isnt it should come out with profit result ?
albert_lim83:
but the backtest result seem not good.
I to think like this....
how to add price action into ea ??
anyone know about this ??
how to coding iBars ?
anyone knows this ?
ainampeterson:
I to think like this....
I to think like this....
i will keep improve it.
can anyone tell me how to coding
if (previous bar > 20 pips)
{
ordersend(symbol(), OP_BUY ......
else return(0);
im trying to coding if previous bar is larger than 20 pips,
then only ordersend.
orderticket problem solved.
You can introduce this:
double SizeWanted= 20; int StopMultiDigits; int digits= Marketinfo(Symbol(), MODE_DIGITS) if (digits= 5) {StopMultiDigits = 10}; else {StopMultiDigits = 1}; double Size= Normalizedouble(SizeWanted*StopMultiDigits*Point,digits) double Close= iClose(Symbol(),Period_H1,1); double Open= iOpen(Symbol(),Period_H1,1); double CandleUP = Close-Open; // apply to a bull Candle double CandleDown= Open-Close; // apply to a bearish Candle if(CandleUp > Size) //Action OR if(CandleDown > Size) //ActionHope it will help you.
Kane59:
You can introduce this:
Hope it will help you.double SizeWanted= 20; int StopMultiDigits; int digits= Marketinfo(Symbol(), MODE_DIGITS) if (digits= 5) {StopMultiDigits = 10}; else {StopMultiDigits = 1}; double Size= Normalizedouble(SizeWanted*StopMultiDigits*Point,digits) double Close= iClose(Symbol(),Period_H1,1); double Open= iOpen(Symbol(),Period_H1,1); double CandleUP = Close-Open; // apply to a bull Candle double CandleDown= Open-Close; // apply to a bearish Candle if(CandleUp > Size) //Action OR if(CandleDown > Size) //Actionthanks for this..
how to code it if either 1 direction is opened, then the opposite direction is skip.
because i wrote 6 condition into ea.

You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
but the backtest result seem not good.