Forum

getting init failed on this code

Hi guys I seem to be getting init failed when I try this code could someone help me?? thanks alot. int OnInit ( void ) { //--- Initializing expert if (!ExtExpert.Init( Symbol (),LowerTime,Expert_EveryTick,Expert_MagicNumber)) { //--- failed printf ( __FUNCTION__ + ": error

Angle indicator keeps returning 0.000

Hi guys, Sorry to disturbed you guys again but I wrote this code and it keeps return 0.0000. All the values in CiMA signal are the same and I'm not sure why. I have a refresh function in the code I am hoping someone can help. Sorry to be annoying and thank you for help. This is one of my first

Indicator and debugger won't start

Hi guys, I built this indicator for calculating an angle of moving average over a given number of bars but when I try and debug it using breakpoints it won't start at all. The sub_window loads up but nothing else happens. I don't know whats wrong could someone help. Could someone check that my code

CiMA changing indicator colour

Hi guys below is a code for a simple moving average add to chart expert. How would I change the colour of the indicator from the code??? What if I had several indicators such as bollinger bands , momentum in a sub-window and two moving averages what would be the easiest way to change the colour

Adaptive RSI, is this the correct formula???

I've been trying to code an adaptive RSI based on the formula below. I am fairly certain my code is correct and have tested numerous possible outcomes and all I ever get is a low number ranging between 0.9-1 not an RSI number (0-100). Could anyone confirm the below formula for adaptive RSI is

Creating an MA angle indicator not working

Hi guys, I am messing about with MQL4 and only recently learned to code. As a project for myself I have decided to create numerous indicators I always wanted starting with an MA angle indicator. The code I have created is as such however it is not working an the MA angle constantly returns 0. Could

copybuffer for bollinger bands

Hi guys, I'm new to MQL5 and programming as a whole and want to know how do I go about using copybuffer with bollinger bands??? Do I need to define BBUP,BBDOWN and BBMIDDLE and set one copybuffer for each??? Here is my code btw. I'm trying to build a multitimeframe multicurrency indicator which

calling a custom indicator from the code

How would I go about calling a custom indicator from the code?? I want to use the bollinger bandwidth indicator but dno where to start. could you give me example please also how would I go about creating an indicator of indicator. sorry to sound noobish I'm just learning programming and this