Off Topic Posts - page 12

To add comments, please log in or register
70991050
5
70991050  

Hello 

What do you use as 'login' when you are registering the mt4? 

Thanks

1400053814
10
1400053814  

Basic question I'm sorry guys.

If I have forgotten my do I recover my password on MQL5 if I have forgotten it?

1111738007
13
1111738007  

MT4 is not getting installed on my laptop, I have latest windows 10. Can anyone advise

Sergey Golubev
Moderator
116886
Sergey Golubev  
1111738007:

MT4 is not getting installed on my laptop, I have latest windows 10. Can anyone advise

Use MT4 thread here:
New MetaTrader 4 Platform build 1260
New MetaTrader 4 Platform build 1260
New MetaTrader 4 Platform build 1260
  • 2020.05.31
  • www.mql5.com
The MetaTrader 4 update will be released on Friday, January the 24th, 2020. The update provides bug fixes and stability improvements...
legendofcibola
12
legendofcibola  
I need a code on fr instance if the candle has moved front to 10 pips ,i want to take a trade whn the candle has moved back to 2pips..frm 2 pips i want to take a trade ..can someone help me (MQL4)
William Roeder
22339
William Roeder  
  1. Don't Hijack other threads for your off-topic post. Next time, make your own, new, thread.

  2. Please post only in English on this forum. "fr", "whn", "frm" are not words.
              Please don't write ur - it's "you are" or "your" - MQL4 programming forum 2014.03.04

  3. Candles do not move front to back. They stay on your screen.

  4. Your post is unintelligible, except you need code. № 5

  5. Help you with what? You haven't stated a problem, you stated a want. Show us your attempt (using the CODE button) and state the nature of your problem.
              No free help 2017.04.21

    Or pay someone. Top of every page is the link Freelance.
              Hiring to write script - General - MQL5 programming forum 2018.05.12

Ahmad Zuhairdi Noh
2889
Ahmad Zuhairdi Noh  
Chinedu Onuoha:

HI,

I have been trying to put together my first self made EA I ahve been able to solve the 1st issue with stochastic now its the candle wick length. I want to instruct the EA to only take trades when the upper wick is greater than or equal to 20pips for a sell and the lower wick is greater than or equal to 20pips. Below is a code I created but I am not sure if it is correct because it does not work well:

For buy


For sell.


Is there standard way of writing this?

well this is how I did to find top wick:

double topwick() {
   double output = 0; //initialize the value for the following function
   double close = iClose(NULL,0,1); //value of close for previous candle
   double open = iOpen(NULL,0,1); //value of open for previous candle
   double high = iHigh(NULL,0,1); //value of high for previous candle
   if(close > open){ //if the candle is moving up
      output = (high - close)/Point;
   }else{ //if the candle is moving down
      output = (high - open)/Point;
   }
   return NormalizeDouble(output,0); // return a result for topwick() function 
}

then use the function for something else for example:

bool buy_condition_3() { return (topwick() >= 20/*point*/);}

you can modify the function for bottom wick.

There is no standard way of writing this. Its all depend on your coding style.

William Roeder
22339
William Roeder  
      output = (high - open)/Point;
   }
   return NormalizeDouble(output,0); // return a result for topwick() function in pips

PIP, Point, or Tick are all different in general.
          What is a TICK? - MQL4 programming forum 2014.08.03

Ahmad Zuhairdi Noh
2889
Ahmad Zuhairdi Noh  
William Roeder:

PIP, Point, or Tick are all different in general.
          What is a TICK? - MQL4 programming forum 2014.08.03

Yeah, right. Sorry. Your link is definitely useful. Thank you.
Agus Wahyudi
123
Agus Wahyudi  
Please delete my signal account
To add comments, please log in or register