Thread: How to code?
View Single Post
  #1019 (permalink)  
Old 06-10-2008, 09:11 PM
forexcel forexcel is offline
Junior Member
 
Join Date: Oct 2006
Posts: 12
forexcel is on a distinguished road
Help Needed to code a simple ea, please...

Hello All,

I'd like to thank everyone who has help me in the past. Righ now, i have a new request.
Can someone help me code this ea and here are the parameters:

My ea is based on an doji bar and an inside bar.

For an Inside bar :

Place a BUY-STOP/BUY-LIMIT at the HIGH of the next bar
Place a SELL-STOP/SELL-LIMIT at the LOW of the next bar

Clarifications :
Inside Bar is bar 0 (zero)
The next Bar is where we going to to place buy and sell limit or stop
The bar after next is where the long or short will be triggered.

On a one hour chart, if we have an inside bar at 9 AM, then we place our BUY-STOP or LIMIT and SELL-Stop otr LIMIT at the high and low of the 10 AM bar. The long or shor will be triggered at the 11 AM bar providing that price goes higher or lower than the 10 AM bar.


For a Doji bar :

Place a BUY-STOP/BUY-LIMIT at the HIGH of the previous bar
Place a SELL-STOP/SELL-LIMIT at the LOW of the previou bar

Clarifications :
Doji Bar is bar 0 (zero)
The Previoust Bar or Bar before the doji bar is where we going to to place buy and sell limit or stop at the high and low.
The bar after the doji bar is where the long or short will be triggered.

On a one hour chart, if we have doji bar at 9 AM, then we place our BUY-STOP or LIMIT and SELL-Stop otr LIMIT at the high and low of the 8 AM bar. The long or shor will be triggered at the 10 AM bar providing that price goes higher or lower than the 8 AM bar.


...maybe, it's not that simple. If it was i would have done it 2 weeks ago.

Thanks in advance!

Best Regards,

forexcel
Reply With Quote