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.
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); } //+------------------------------------------------------------------+
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.
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()));
indikatör kullanıyorsunuz ama son değeri-1 alıyorsunuz
basit olarak şöyle

- 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 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.