canca / Publications
Forum
Put a delay on next Trade after Stop loss hit
Hi, I am trying to put a 20 sec delay after STOP LOSS hits and wrote some code about it but it fails, where am i wrong, any help please? Orange highlighted area is the part where i am trying to put some delay int start() { //---- double MaCurrent; int ticket, total; if ( Bars < 20 )
Horizontal lines dont move
I am trying to draw 4 horizontal line calculated using a MA but when i run this code, it draw the lines but dosnt update them What should i do? int start() { //---- BURADA EMA'YA GORE +-30 ve +-300 RANGE'leri çiziyor. double x; x = iMA ( NULL , 0 ,EMA, 0 , MODE_EMA , PRICE_CLOSE , 0 );
Basic EA with price-MA difference
Hi, I am trying to learn MT4 EA programming but it makes me so confused , so i need help for a basic code to study on and learn the logic. What i need is a basic buy/sell EA which uses price and an exponantial moving avreage difference. Any help will be appreciated
Need help on a basic algorithm
Hi, I am trying to write my first MQL4 algorithm but it doesnt work as i expected :) My basic algoritm will work on CHINA50 and it needs to do; When price moves above moving average for 30 pips, go short and take profit 12 pips, stop loss 20 pips When price moves below moving average for 30 pips