Download MetaTrader 5

indicator for information.

To add comments, please log in or register
yilmazkahya
310
yilmazkahya  

i want write an indicator that use eur/usd chart but show usd/chf and usd/jpy ask and bid price,(maybe previously prices)

how can i search this in this site ?

how can i start this subject ?

what can i write in search button ? :)

thanks.

Ubzen
5390
Ubzen  
yilmazkahya:

i want write an indicator that use eur/usd chart but show usd/chf and usd/jpy ask and bid price,(maybe previously prices)

how can i search this in this site ?

how can i start this subject ?

what can i write in search button ? :)

thanks.

You need to get the basics of mql4 programming. I would recommend the book. For your question, try searching for "multi currency" || "access other symbol prices".

The Search Box is in the upper-right corner of the forum.

yilmazkahya
310
yilmazkahya  
thank u ubzen. i m looking these.
whroeder1
15719
whroeder1  
yilmazkahya: i want write an indicator that use eur/usd chart but show usd/chf and usd/jpy ask and bid price,(maybe previously prices)
Why are you posting this when you already know how to get the prices? Your previous post
yilmazkahya
310
yilmazkahya  

no i want display like this, then

eurchf....

usd jpy...

....
if i can write i want display previous candles prices too. maybe it's easy for you but for me, impossible now. i want learn :S

whroeder1
15719
whroeder1  
yilmazkahya: i want learn
Then learn to code, or pay someone. We're not going to code it FOR you. We are willing to HELP you when you post your attempt (using SRC) and the nature of your problem.
yilmazkahya
310
yilmazkahya  

i asked this ? ubzen answered then i look at book and "multi currency" search, i make this codes.

i m learning still slowly. and i fixed some problem for me. what's wrong ? i didn't know Comment() code and i learn it tonight. you can write "use comment() code" it's more helpful for beginners.

i m only set this for now :/

//+------------------------------------------------------------------+
//|                                                
//+------------------------------------------------------------------+
#property copyright 
#property link      


//---- indicator settings
#property indicator_chart_window


//---- indicator parameters
double EURJPY=0;
//---- indicator buffers




//+------------------------------------------------------------------+
//| Custom indicator initialization function                         |
//+------------------------------------------------------------------+
int init()
  {
//---- drawing settings
      
      
//---- 
   
//---- initialization done
   return(0);
  }

int deinit()
  {
//----
  
  
   return(0);
  }

int start()
  {
   double EURJPY = iClose("EURJPY",PERIOD_M5,1);
   Comment("USDJPY önceki degeri: ",DoubleToStr(EURJPY,5), "\n" , "Saat: ", TimeToStr(TimeCurrent()));
   
    
//---- done
   return(0);
  }
//+------------------------------------------------------------------+
whroeder1
15719
whroeder1  
WHRoeder: and the nature of your problem.
You've stated no problem, so I'll assume your question has been answered.
yilmazkahya
310
yilmazkahya  
WHRoeder:
You've stated no problem, so I'll assume your question has been answered.


i know,you helped me before. thank you.

RaptorUK, Ubzen and you are my heroes. but i don't know well mql language. sometimes i even don't know true question of my problem.sorry.

see you.

Mehmet Bastem
242
Mehmet Bastem  
yilmazkahya:

i asked this ? ubzen answered then i look at book and "multi currency" search, i make this codes.

i m learning still slowly. and i fixed some problem for me. what's wrong ? i didn't know Comment() code and i learn it tonight. you can write "use comment() code" it's more helpful for beginners.

i m only set this for now :/

indikatör kullanıyorsunuz ama son değeri-1 alıyorsunuz

basit olarak şöyle

int i,limit, counted_bars=IndicatorCounted();

if(counted_bars > 0) limit=Bars-counted_bars;

for(int i=0; i < limit; i++){

double EURJPY=iClose("EURJPY",PERIOD_M5,i-1);

Comment("USDJPY önceki degeri: ",DoubleToStr(EURJPY,MarketInfo("EURJPY",MODE_DIGITS), "\n", "Saat: ", TimeToStr(TimeCurrent()));

}

int start()
  {
   double EURJPY = iClose("EURJPY",PERIOD_M5,1);
   Comment("USDJPY önceki degeri: ",DoubleToStr(EURJPY,5), "\n" , "Saat: ", TimeToStr(TimeCurrent()));
Simon Gniadkowski
Moderator
18021
Simon Gniadkowski  
Mehmet:

indikatör kullanıyorsunuz ama son değeri-1 alıyorsunuz

basit olarak şöyle


This is a English language Forum, if you wish to post please post in English.
To add comments, please log in or register