How to read blue and red arrows of an indicator?

To add comments, please log in or register
Ashish Kulkarni
979
Ashish Kulkarni  

I am looking to use this indicator - 

This indicator generates a blue arrow to indicate start of buy trade and red arrow to indicate start of sell trade.

How can I read the blue and red arrows in the OnTick() function of Expert Advisor?

Best regards,

Ashish.

Ashish Kulkarni
979
Ashish Kulkarni  

My current code:


//+------------------------------------------------------------------+

//|                                           AshMarketScannerEA.mq4 |

//|                        Copyright 2017, MetaQuotes Software Corp. |

//|                                             https://www.mql5.com |

//+------------------------------------------------------------------+

#property copyright "Copyright 2017, MetaQuotes Software Corp."

#property link      "https://www.mql5.com"

#property version   "1.00"

#property strict

#property  indicator_color1  Red

#property  indicator_color2  Blue

//+------------------------------------------------------------------+

//| Expert initialization function                                   |

//+------------------------------------------------------------------+

int OnInit() {

//---

   

//---

   return(INIT_SUCCEEDED);

}

//+------------------------------------------------------------------+

//| Expert deinitialization function                                 |

//+------------------------------------------------------------------+

void OnDeinit(const int reason) {

//---

   

}

//+------------------------------------------------------------------+

//| Expert tick function                                             |

//+------------------------------------------------------------------+

void OnTick() {

//---

   int buff = 0;

   int shift = 0;

   double Arrow=iCustom(NULL, 0, "Market\\Market Scanner", 10, 500, indicator_color1, indicator_color2, 0, buff, shift);

   Print ("Arrow ",Arrow);

   

}

//+------------------------------------------------------------------+


Ashish Kulkarni
979
Ashish Kulkarni  

Figured it out :-)

To add comments, please log in or register