anybody know how to display eur/usd chart inverted in metatrader ? like usd/eur ?
thanks.
thanks.
How to invert a chart 33 replies
Invert MT4 charts 0 replies
Add a invert option to this indicator dollar index 0 replies
invert the operation 0 replies
SMA Invert 0 replies
//+------------------------------------------------------------------+
//| USD Index.mq4 |
//| Copyright © 2008, Adam Parusel |
//| http://esolvix.de |
//+------------------------------------------------------------------+
#property copyright "Copyright © 2008, Adam Parusel"
#property link "http://esolvix.de"
#property indicator_separate_window
#property indicator_buffers 1
#property indicator_color1 Lime
//---- buffers
double ExtMapBuffer1[];
//+------------------------------------------------------------------+
//| Custom indicator initialization function |
//+------------------------------------------------------------------+
int init()
{
SetIndexStyle(0,DRAW_LINE);
SetIndexBuffer(0,ExtMapBuffer1);
return(0);
}
//+------------------------------------------------------------------+
//| Custom indicator deinitialization function |
//+------------------------------------------------------------------+
int deinit()
{
return(0);
}
//+------------------------------------------------------------------+
//| Custom indicator iteration function |
//+------------------------------------------------------------------+
int start()
{
int limit;
int counted_bars=IndicatorCounted();
//---- check for possible errors
if(counted_bars<0) return(-1);
//---- the last counted bar will be recounted
if(counted_bars>0) counted_bars--;
limit=Bars-counted_bars;
//---- main loop
for(int i=0; i<limit; i++)
{
double eurusd = iClose(Symbol(),0,i);
ExtMapBuffer1[i] = MathPow(eurusd,-1.0);
}
return(0);
}