"

RosePipsIndicator

by Dr.Hamdi Boukamcha
Name:
RosePipsIndicator
Author: Louis Christian Stoltz (2014.02.11 14:58)
Downloaded: 135
Download:
RosePipsIndicator   RosyPipsIndicator.mq4 (7.9 Kb) View
Author: Louis Christian Stoltz

Description:

This indicator will calculate pips wins and losses for any pair with a parsar and doji star trading strategy. You can see pip targets and losses and see if you can find a winning pair with this.

5MIN charts are the best on current settings. Dont risk your account on this, there still high pip losses I see that are high risk. If you use micro lots then maybe its ok.

This can save your life in forex.

Image:

RosePipsIndicator

Here is an expert to backtest. You can see its pretty risky so use microlots. This is just for studying the market, I havent traded with this.

#property link      "[email protected]"

/**
Louis Christian Stoltz

                        _____
                      /  ___  \
                    /  /  _  \  \
                  /( /( /(_)\ )\ )\
                 (  \  \ ___ /  /  )
                 (    \ _____ /    )
                 /(               )\
                |  \             /  |
                |    \ _______ /    |
                 \    / \   / \    /
                   \/    | |    \/
                         | |
                         | |
                         |_|
**/

/**
  Global Variables
**/  

double glbOrderProfit;
double glbOrderOpen;
double glbOrderStop;
double glbOrderType;
double glbOrderTicket;
int gblOrderPips;

int start()
{
int MagicBuy = 7647;
int MagicSell = 7648;

double sell = iCustom(Symbol(),Period(),"RosyPipsIndicator",0,1);
double buy = iCustom(Symbol(),Period(),"RosyPipsIndicator",1,1);

  if(OrderFind(MagicSell,Symbol()) == false && OrderFind(MagicBuy,Symbol()) == false && sell != 0){
  OrderSend(Symbol(),OP_SELL,5,Bid,3,Bid+2500*Point,Bid-100*Point,"Sell Order" + Symbol(),MagicSell,0,Green); 
  }
  if(OrderFind(MagicSell,Symbol()) == false && OrderFind(MagicBuy,Symbol()) == false && buy != 0){
  OrderSend(Symbol(),OP_BUY,5,Ask,3,Ask-2500*Point,Ask+100*Point,"Buy Order" + Symbol(),MagicBuy,0,Green); 
  }
}

/**

  Order Find Function

**/  

bool OrderFind(int Magic, string symbol) 
{

   glbOrderType = -1;
   glbOrderTicket = -1;
   glbOrderProfit = 0;
   glbOrderOpen = -1;
   glbOrderStop = -1;
   gblOrderPips = 0;
   int total = OrdersTotal();
   double point =MarketInfo(symbol,MODE_POINT);
   bool res = false;

   for(int cnt = 0 ; cnt < total ; cnt++)

     {

       OrderSelect(cnt, SELECT_BY_POS, MODE_TRADES);

       if(OrderMagicNumber() == Magic && OrderSymbol() == symbol)

         {

           glbOrderType = OrderType();
           glbOrderTicket = OrderTicket();
           glbOrderProfit = OrderProfit();
           glbOrderOpen = OrderOpenPrice();
           glbOrderStop = OrderStopLoss();
           if (glbOrderType == OP_BUY)gblOrderPips = (OrderClosePrice() - OrderOpenPrice())/point;
           if (glbOrderType == OP_SELL)gblOrderPips = (OrderOpenPrice() - OrderClosePrice())/point;
           res = true;

         }

     }

 return(res);

}

Share this article

Leave a comment