//+------------------------------------------------------------------+ //| fisher.mq4 | //| favoritefx | //| http://www.metaquotes.net | //+------------------------------------------------------------------+ #property copyright "favoritefx" #property link "http://www.metaquotes.net" //---- input parameters extern int TakeProfit=50; extern int StopLoss=30; extern double Lots=0.1; //+------------------------------------------------------------------+ //| expert initialization function | //+------------------------------------------------------------------+ int init() { //---- //---- return(0); } //+------------------------------------------------------------------+ //| expert deinitialization function | //+------------------------------------------------------------------+ int deinit() { //---- //---- return(0); } //+------------------------------------------------------------------+ //| expert start function | //+------------------------------------------------------------------+ int start() { //---- double price; double stop; double profit; double RSI; double MARSI_Fast; double MARSI_Slow; if (AccountFreeMargin() < 1200 * Lots) return (0); //---- if (( (OrdersTotal() == 0))) { RSI = iCustom(Symbol(),0,"TrendRSI_v1",13,8,55,0,1); //0 áóôåð MARSI_Fast = iCustom(Symbol(),0,"TrendRSI_v1",13,8,55,1,1); //1 áóôåð MARSI_Slow = iCustom(Symbol(),0,"TrendRSI_v1",13,8,55,2,1); //2 áóôåð if (RSI<MARSI_Slow ) { stop = NormalizeDouble(Ask - StopLoss * Point, Digits); profit = NormalizeDouble(Ask + TakeProfit * Point, Digits); OrderSend(Symbol(), OP_BUY, Lots, Ask, 3, stop, profit, NULL, 0, 0, Green); } if (RSI>MARSI_Slow) { stop = NormalizeDouble(Bid + StopLoss * Point, Digits); profit = NormalizeDouble(Bid - TakeProfit * Point, Digits); OrderSend(Symbol(),OP_SELL,Lots,Bid,3,stop,profit,NULL,0,0,Green); //Print(AccountBalance()); } } //---- return(0); } //+------------------------------------------------------------------+
Sample
Analysis
Market Information Used:
Indicator Curves created:
Indicators Used:
Custom Indicators Used:
TrendRSI_v1
Order Management characteristics:
Checks for the total of open orders
It automatically opens orders when conditions are reached
Other Features: