EA code modification

To add comments, please log in or register
huntrader64
11
huntrader64  

Hi guys,

can somebody help to modify the code for this EA. I would like the EA to wait after a buy and sell signal a specified number of pips to take the trade. So I can input 10, 15... pips in the settings.

 

Thanks very much!

Here is the part of the code: (MQL4)

 

void OnTick()
{
  CheckProfit();

  if(TotalTrades==2) return;
  if(CloseOne!=Close[1])
  {
     if(!BuysNotAllowed && Order_Type!=1 && Close[0]<=PriceForBuy && RSIBuyCheck(1)) OpenTrade("Buy");
     if(!SellsNotAllowed && Order_Type!=0 && Close[0]>=PriceForSell && RSISellCheck(1)) OpenTrade("Sell");

     CloseOne=Close[1];

  } 

Alain Verleyen
39032
Alain Verleyen  

Forum on trading, automated trading systems and testing trading strategies

Script/EA to open buy/sell position few pips away from current

Alain Verleyen, 2016.03.30 10:46

Welcome,

  • Usually people who can't code don't receive free help on this forum, though it could happen if you are lucky, be patient.
  • If you show your attempts and describe well your problem, you will most probably receive an answer from the community.
  • If you don't want to learn to code, nothing bad, you can either look at the Codebase if something free already exists, or in the Market for paid products (sometimes free also).
  • Finally, you also have the option to hire a programmer in the Freelance section.

Good luck.


Alain Verleyen
39032
Alain Verleyen  
To add comments, please log in or register