Jump to content

Idea for robot.


ukezguy

Recommended Posts

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.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...