Forum

Help on MathLog

How do I get log with base 2. There are two options in mt4: 1. MathLog - which return natural log for a number 2. MathLog10 - which return log with base 10 for a value. In my program, I need to get log with base 2. How do I do that? What line of code should i write

Need Help with programming my EA

Hello friends, I am building my first EA and have all my calculations done. I want the calculations to run every time a new candle opens on a 1H chart. How do i start the code for that? For Example: Every time a new candle opens: 1. A calculation is done. 2. Based on that calculation, a new order is

help on a code

Hello Everyone, I am dummy at programming. I want a simple calculation but do not know how to program it. I want to get standard deviation for last two candles on any timeframe but do not understand how to write this code or how to do it. if someone could help me on how do i get standard deviation