View Single Post
  #8 (permalink)  
Old 11-29-2007, 10:34 PM
natsirte natsirte is offline
Junior Member
 
Join Date: Oct 2006
Posts: 24
natsirte is on a distinguished road
Hi everybody



This is the correction. (Thanks to Jerome M !)

Take the indicator 3MACROSS and add in the EA this :


//*******
int start()

{



int recovering_direction = GlobalVariableGet("ok_trade");
}

//***************



// But now I saw that the Indicator is wrong because Order=SiGNAL_BUY never work!!

if (recovering_direction == 1 ) { Order = SIGNAL_BUY; }
if (recovering_direction == 2) { Order = SIGNAL_SELL; }



and if I do that :

if (recovering_direction == 2 ) { Order = SIGNAL_BUY; }
if (recovering_direction == 1) { Order = SIGNAL_SELL; }



Order = SIGNAL_SELL never work!!

Why?????



best regards
Reply With Quote