//+------------------------------------------------------------------+ //| 123456.mq4 | //| Copyright © 2009, MetaQuotes Software Corp. | //| http://www.metaquotes.net | //+------------------------------------------------------------------+ #property copyright "Copyright © 2009, MetaQuotes Software Corp." #property link "http://www.metaquotes.net" double sell_level,unit; //+------------------------------------------------------------------+ //| expert initialization function | //+------------------------------------------------------------------+ int init() { //---- sell_level=Ask; unit=0.01; //---- return(0); } int deinit() { //---- //---- return(0); } //+------------------------------------------------------------------+ //| expert start function | //+------------------------------------------------------------------+ int start() { if(Ask>sell_level) { OrderSend(Symbol(),OP_SELL,unit,Bid,2,0,Ask-0.10); unit=unit+unit; sell_level=sell_level+0.05; } return; } //+------------------------------------------------------------------+