How to code? - page 11

 

So always look inside the code of the indicator (or EA) even if you are not coder.

For all iCustom please go to Codersguru training section.

For CatFx50 go to Nina section.

You do not have your personal section yet so you should go to other people's section.

 

Translate MetaStock Code

Hello all,

i would like to ask your help to translate this piece of code into MT4 language :

( mov (zig,4,c),4,e)

i believe there's connection between zigzag indikator and moving average..

Very very thank you... please help.

Vic

 

can some show me the correct place/thread/forum to ask...?

 

Hi,

can you give us more code (inputs and so on), because I think this formula has a mistake?

 

metastick formula is syntatically correct, but it is not that easy to make the same mq4 code.

first you have to make equivalent percent zigzag and only then apply MA on it.

 
Beluck:
metastick formula is syntatically correct, but it is not that easy to make the same mq4 code. first you have to make equivalent percent zigzag and only then apply MA on it.

it goes something like this :

if(mov(zig(4,c),4,e) - mov(zig(9,c),7,e)

 

Translate Metastock code into MT4

Hello all, I would like to ask your help to translate this piece of code into MQ4:

Ref(Mov(CLOSE,CY1,S),CY1/2)+M1*ATR(CY1);

this code is a section of Hurst Channel for Metastock platform, now I try to translate to MT4 language, please help.

thanks a lot

Jon

 

pretty easy MT4 indicator code question

Maybe this will get more views in this section

i have two simple questions i think..

how can i make the heiken ashi Candles be thickness of 5 by default instead of 3? everytime i bring up a new chart they go back to 3.

Also, how can i make a mark above or below the candle depending on an RSI indicator of a certain period (being above or below a constant)

I understand some about programming but don't know the syntax of this...so act like i know nothing

i did just use the Indicator Wizard in MT4..that gets a good start.

PS that expert advisor builder is NICE, is there and INDICATOR builder too? that would be amazing

SKor

 

hi,

open the code and copy the following below:

SetIndexStyle(0,DRAW_HISTOGRAM, 0, 5, Red);

SetIndexBuffer(0, ExtMapBuffer1);

SetIndexStyle(1,DRAW_HISTOGRAM, 0, 5, DodgerBlue);

SetIndexBuffer(1, ExtMapBuffer2);

SetIndexStyle(2,DRAW_HISTOGRAM, 0, 5, Red);

SetIndexBuffer(2, ExtMapBuffer3);

SetIndexStyle(3,DRAW_HISTOGRAM, 0, 5, DodgerBlue);

SetIndexBuffer(3, ExtMapBuffer4);

the above should accomplish your goal

let me know

mwbro

 

I assume this is for the HEIKEN issue..

I'll try it out

Thanks FROZONE

what's crazy is that I assumed that the 5's were the default thickness in the original code (they were 1's and 3's)

so i changed the 3's to 5's and restarted and it didn't work for some reason.

It Works now.

Thanks

Now i get the arrow to pop up based on RSI and i'll be happy

(have to color those candles based on another value but that's a later step)