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);
}
//+------------------------------------------------------------------+
Figured it out :-)
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
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.