apone: help me converting the code to Metatrader MQL4?
|
|
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Dear all,
I am a very newbie on EA programming, I would like to implement a simple EA operating on JPYUSD based on what is happening on GOLD. A friend of mine developed this simple code in Tradestation for EURUSD in correlation with USDJPY, can you please help me converting the code to Metatrader MQL4?
time frame is 30 minutes.
input:loss(50),win(25),soglia_1(65),soglia_2(30);
If rsi(c,14) Cross over threshold_1 then begin
If rsi(c of data2,14) < threshold_2 then begin
buy this bar at close;
end;
end;
setstoploss(loss);
setprofittarget(win);
Thank you in advance,
Marco