Simple strategy from Tradestation to MetaTrader MQL4

 

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 

 
apone: help me converting the code to Metatrader MQL4?
  1. Don't paste code
    Play video
    Please edit your post.
    For large amounts of code, attach it

  2. You have only three choices: Search for it, learn to code it, or pay (Freelance) someone to code it.
    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.