Thread: How to code?
View Single Post
  #527 (permalink)  
Old 12-07-2007, 06:13 AM
nakata79087 nakata79087 is offline
Junior Member
 
Join Date: Oct 2007
Posts: 6
nakata79087 is on a distinguished road
Other question

now my EA like this

if(FastMA2 <= SlowMA2 && FastMA1 > SlowMA1)
{
ClosePositions();
OrderSend(Symbol(),OP_BUY,Lots,Ask,Slippage,Ask-SLpips*Point,Ask+(45*Point),"",MAGIC,0,Blue);
return(0);


i want to change like this

1. 15minutus timeflame happen buy sign

2. if then 5minutes timeflame MA cross buy sign already ,too
ClosePosition. and get new position

if then 5minutes timeflame MA change sell sign already
wait 5minutes timeflame change buy sign ,
then ClosePosition. and get new position


Please tell me how to write this program.
Reply With Quote