
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Thank you my friends, i will try !
Regards..
Hy friends !
I tryed, but it is not working
, take a look, this is my code:
The idea is to do only one buy and sell trade per day when the MA1>MA2 to buy and MA1<MA2 to sell, not more than one trade of buy and sell per day. Not have importance the hour of the order is send, but need be only one order per day when the MA1 (Moving Average Low) up than MA2 (Moving Average High).
So guys, please, help me, lets work to trade !
--------------------------------------------------------------------------------
if (Buy_Orders)
if (MA1 > MA2 && Sinal_Hour==1 && Sinal_Buy ==1) /////
{
OrderSend(Symbol(), OP_BUY, Lot, Ask, Slippage,StopLossBuy, TakeProfitBuy, EA_Comment, Magic_Number, 0, Lime);
}
if (Sell_Orders)
if (MA1 < MA2 && Sinal_Hour==1 && Sinal_Sell ==1)/////
{
OrderSend(Symbol(), OP_SELL, Lot, Bid, Slippage, StopLossSell , TakeProfitSell, EA_Comment, Magic_Number, 0, Red);
}
for(i=0;i<Total;i++)
{
OrderSelect(i,SELECT_BY_POS,MODE_TRADES);
if ((OrderSymbol()==Symbol()) && (OrderMagicNumber()==Magic_Number))
{
if (OrderType()==OP_BUY)
Buy++;
if (OrderType()==OP_SELL)
Sell++;
}
}
if (Buy==1)
Sinal_Buy=2;
if (Sell==1)
Sinal_Sell=2;
if (Hour()== 1 && TimeMinute(TimeCurrent())== 0)
Sinal_Hour=1;
Sinal_Hour=1;
EA setup from menu
Hi guys,
I explain to you the context. I have a EA with some indicators in setup menu:
Quote:
[1] = BreakBox
[2] = CCI
[3] = ADX
[4] = GMMA
[5] = MACD
[6] = TrendFollowing
There are 6! possibilities, i think.
For example, user can turn on BreakBox, MACD and ADX and turn off other choice.
In fact, the bot will trade if BreakBox, MACD and ADX are in good trend (BUY or SELL)
I need some help to translate this menu in mt4 language, not the Buying and SELLing code.
Anyone can help me ?
Very best Regards,
S. Teel
Hi,
I know to buld the menu:
But, i don't know to build logical algorythme in int start() or int init() sections for listed only choice where bool is set to true.
Friends, thank you of your time, i found the code on the MQL4 forum. Thank you!
See ya !!
hello
hello I am newer here,I need help,but my english is poor .I want to make a EA,us MACD and CCI.Who can help me ?
thanks
Hi guys,
I explain to you the context. I have a EA with some indicators in setup menu:
As a variant:
....
extern bool BreakBox=false;
.....
int start()
{
....
if(BreakBox)//your code
...
Open the new order only at the close price
Hi,
I want to programm an EA, which only open a new order when the close price of the candle matches my requirements.
How can I programm it, that the EA has only to look at the close time of the actual candle or at the start time from the following.
I hope you can understand my problem and give me a tipp for the solution.
Perhaps I have only a black out and that is a very silly question?!
Lot's of thanks!
need help to add mtf
could anybody help me to add mtf for that indicator
keep trying but noway