Download MetaTrader 5
To add comments, please log in or register
How to earn at MQL5.community? Come and find out!
yilmazkahya
305
yilmazkahya 2014.01.06 18:29 

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
Moderator
5394
Ubzen 2014.01.06 18:34  
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
305
yilmazkahya 2014.01.06 19:03  
thank u ubzen. i m looking these.
whroeder1
13596
whroeder1 2014.01.06 19:06  
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
305
yilmazkahya 2014.01.06 20:06  

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
13596
whroeder1 2014.01.06 21:06  
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
305
yilmazkahya 2014.01.06 21:18  

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
13596
whroeder1 2014.01.06 22:30  
WHRoeder: and the nature of your problem.
You've stated no problem, so I'll assume your question has been answered.
yilmazkahya
305
yilmazkahya 2014.01.06 22:48  
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
240
Mehmet Bastem 2014.01.07 06:25  
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
17963
Simon Gniadkowski 2014.01.07 09:25  
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