ukezguy Posted June 1, 2012 Report Share Posted June 1, 2012 Can anyone code an ea using any good indicator. My strategy is "when a new candle is open it doesn't open a trade at once but a pending trade and just keeps riding with the candle".If the candle opens in a buy,the robot would place a pending buy but if it goes down to a sell,the pending buy changes to pending sell with tp of 3pips adjusting to the different order type.Backtest won't work on this robot. Second idea:Use MA indicator to create an ea of simple parameters but thoughtful entry. double diClose0=iClose(NULL,5,0); double diMA1=iMA(NULL,5,7,0,MODE_SMA,PRICE_OPEN,0); double diClose2=iClose(NULL,5,0); double diMA3=iMA(NULL,5,6,0,MODE_SMA,PRICE_OPEN,0); if ((diClose0<diMA1)){ OpenSell(); return(0); } if ((diClose2>diMA3)){ OpenBuy(); return(0); }. Takeprofit=3(according to symbol spread) stoploss=0(adjustable) lot=0.01 trailingstop=0(adjustable) tradingstart=21:00 tradingstop=10:00 If you have any idea that would benefit us both,it is welcome(two heads better than one). Thanks in advance. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.