Trader1529 / Publications
Forum
EA sends orders every seconds
Good morning you all, I wrote an Expert Advisor that opens order when all the condition I put meets. Analyzing that, I noticed a problem. When the condition meets it opens order, but if the order do not open because the free margin of my account it's too low (the reason of that is because I have
Counter orders per day
Good mornig, I'm writing an expert advisor that set a counter for the order opened on the current symbol. This is the code. int CountSymbolPositions= 0 ; for ( int trade= OrdersTotal ()- 1 ;trade>= 0 ;trade--) { if (! OrderSelect (trade,SELECT_BY_POS,MODE_TRADES)) continue ;
Counter orders per day - EA MQL4
Good mornig, I'm writing an expert advisor that set a counter for the order opened on the current symbol. This is the code. int CountSymbolPositions= 0 ; for ( int trade= OrdersTotal ()- 1 ;trade>= 0 ;trade--) { if (! OrderSelect (trade,SELECT_BY_POS,MODE_TRADES)) continue
Send only one order when conditions meets
Good morning you all, I have a question. I'm coding an expert advison but I have a problem. I set many conditions and when all of them meets it should send a order (buy or sell it depends on the conditions). I'm testing it but it sends many orders at the same time but I want it send only one order
Indicator meaning
Good morning everyone, can someone help me to understand the meaning of this part of the code of my indicator? What does it do? if (val1 > 0 ) { v1[i] = High[i]; counter1 = 1 ; } else { v1[i] = v1[i+ 1 ]; counter1++;
Time[0]
Good morning everyone. I need to know what is the function "Time[0]" in MQL4 and what it do. Can someone please help me
How to open order
enum ordertype { buy= 1 , // Buy sell= 2 , // Sell notrade= 0 , // No Order }; //+------------------------------------------------------------------+ //| |
How to open order
count(); if (condition01== 1 ) { tick= OrderSend ( Symbol (),OP_BUY,lot,Ask, 5 , 0 , 0 , "condition1" ,magic, 0 , clrGreen ); time1=Time[ 0 ]; } Good morning, I'm writing an Expert Advisor, but I need to open the order at the closure of the candle and not
Send order at closure of the candle
count(); if (condition01== 1 ) { tick= OrderSend ( Symbol (),OP_BUY,lot,Ask, 5 , 0 , 0 , "condition1" ,magic, 0 , clrGreen ); time1=Time[ 0 ]; } Good morning, I'm writing an Expert Advisor, but I need to send the order at the closure of the candle and not
Select Days for execute EA on MT4
Good morning everyone, I wrote an Expert Advisor in MQL4 format, but I want that MT4 use my expert Advisor only in certains days (like Tuesday and Wednesday) but I don't know how to write it. Can someone please help me