//+------------------------------------------------------------------+ //| Double Spred.mq4 | //| Copyright © 2006, GallantFX | //| http://www.gallantfx.com | //+------------------------------------------------------------------+ #property copyright "Copyright © 2006, GallantFX " #property link "http://www.gallantfx.com" //---- input parameters extern double Lots_all=2.0; extern double slippage_all=2.0; extern double stoploss_all=0; extern double takeprofit_all=6.0; //+------------------------------------------------------------------+ //| script program start function | //+------------------------------------------------------------------+ int start() { //---- int ticket_buy; ticket_buy=OrderSend(Symbol(),OP_BUY,Lots_all,Ask,slippage_all,0,Ask+takeprofit_all*Point,"BUY & Take Profit",10000,0,Blue); if(ticket_buy<0) { Print("OrderSend failed with error #",GetLastError()); return(0); } int ticket_sell; ticket_sell=OrderSend(Symbol(),OP_SELL,Lots_all,Bid,slippage_all,0,Bid-takeprofit_all*Point,"SELL & Take Profit",10001,0,Red); if(ticket_sell<0) { Print("OrderSend failed with error #",GetLastError()); return(0); } //---- return(0); } //+------------------------------------------------------------------+
Sample
Analysis
Market Information Used:
Indicator Curves created:
Indicators Used:
Custom Indicators Used:
Order Management characteristics:
It automatically opens orders when conditions are reached
Other Features: