//+------------------------------------------------------------------+ //| neroTrade.mq4 | //| Copyright © 2008 Gryb Alexander | //| | //+------------------------------------------------------------------+ #property copyright "Copyright © 2008 Gryb Alexander" #property link "" extern double TP = 15; extern double lots = 1; int slippage = 3; datetime curTime; //+------------------------------------------------------------------+ //| expert initialization function | //+------------------------------------------------------------------+ int init() { //---- //---- return(0); } //+------------------------------------------------------------------+ //| expert deinitialization function | //+------------------------------------------------------------------+ int deinit() { //---- //---- return(0); } //+------------------------------------------------------------------+ //| expert start function | //+------------------------------------------------------------------+ int start() { //---- //if((Time[0]!=curTime)) //{ // curTime=Time[0]; if(OrdersTotal()==0) { if(Close[0]>High[1]) OrderSend(Symbol(),OP_BUY,lots,Ask,slippage,Ask+TP*Point,0); if(Close[0]<Low[1]) OrderSend(Symbol(),OP_SELL,lots,Bid,slippage,Bid+TP*Point,0); } //---- return(0); } //+------------------------------------------------------------------+
Sample
Analysis
Market Information Used:
Series array that contains close prices for each bar
Series array that contains the highest prices of each bar
Series array that contains the lowest prices of each bar
Indicator Curves created:
Indicators Used:
Custom Indicators Used:
Order Management characteristics:
Checks for the total of open orders
It automatically opens orders when conditions are reached
Other Features: