MQL4 Learning - page 98

 

Reset Code Required

Would someone be kind enough to share a piece of code that will reset an EA after completing a trade, the EA I am using will not take any more trades after the initial trade unless you remove it from the chart then re-apply.

Hoping someone could help

 

xx3xxx, not sure what you mean see forum suggestion, there has been none to my knowledge.

Manually doing this was not what I required

 

-- close all-- shortcut keyboard key

EA -- very advanced and sophisticated ones -- got MM functions and options

simple EA -- only turn ON / OFF by EA TOGGLE button -- ON / OFF

 

need Help

Hello, i hope you can understand me, i speak a little bit English sorry

I needed a mql4 code for my EA. I need a function: when open a new Bar

I work with a EA Generator and this function is not available Thank you very much for your help !

 

EA code for take profit ?

The problem is that some brokers don't accept stop loss and take profit when you open a new position.

Now I want to modify my EA that it open a order, then it place the take profit.

How can I do it? I dont know the code.

I hope someone can help me.

Thank you.

 
cai:
The problem is that some brokers don't accept stop loss and take profit when you open a new position.

Now I want to modify my EA that it open a order, then it place the take profit.

How can I do it? I dont know the code.

I hope someone can help me.

Thank you.

you mean with ECN's?

in this case you can first open orders without sl and tp

like in

int ticket ;

ticket = OrderSend(.....)

then you can modify the order and set your sl and tp's

if(ticket >=0 ){

OrderModify(ticket,..... ) etc

}

-guyver

 

Hello,

thank you I have tried but it dont work I think I done something wrong.

can you modify the TP code please in this EA?

rapidshare.com/files/397543053/Generic_MA_Cross_Expert.mq4.html

please please please

 

can't use this type of sorce

i want to cre EMA of EMA (yes , use calculation of EMA from EMA price)

i try use this :

double em1=iMA(NULL,0,5,0,MODE_EMA,PRICE_CLOSE,1);

double em2=iMAOnArray(em1,0,5,0,MODE_EMA,1);

and then i order to write a line but it don't wok , can anyone help told me the code to use that "i want price of em1 and em2 for calculation"

other i just want know how to use ama

i want to use this

AMA( C, cmo/100 )

i want to know did iuse it correctly ?? i confused with AMA and not sure how it use

thk, for advice and if someone can make code is best

 
cai:
Hello,

thank you I have tried but it dont work I think I done something wrong.

can you modify the TP code please in this EA?

rapidshare.com/files/397543053/Generic_MA_Cross_Expert.mq4.html

please please please

Hi cai,

This may be just the 4-5 digit brokers thing.. try this one ( you need to fill the info as well tp/sl/ breakeven stuff etc etc )

 

the best way to learn it -- is still from working example

sometime, the HELP MENU in the EDITOR is not that helpful

e.g. array -- putting variable in a fixed array is not that easy

e.g. template that always forgot our setting, when we reload it

I just discovered , that the THICKNESS in color are DEFINED in duplicate level , ie. defined twice

so it always reset to what the program said -- not what the external input parameter set

some stuff are hard to learn, but what worst, after you get the syntax right, the result indicator is not useful at all in LIVE trading

better to modify some commonly use function and already quite good indicator -- to make it more perfect

help -- better click [sync] button , then search it in [navigator] pane

codeguru also produced some starter guide -- but still illustrated by example is the best with existing cool indicator

Reason: