pek4christ
pek4christ
pek4christ
Added topic want to create a serial key for my ea that works only in one account per serial key
Good Day Friend, I'm having a challenge Try to Create Serial key for my new ea, a serial key that work one only one account per serial key. I got this example from mql4 code base but it doesnt show how on serial key is restricted to one account here
pek4christ
pek4christ
Please can any one help me out... I made a fuction in an EA that is surpose to close only all profit trades at a certain profit, But its closing both profit and loss trade Here is the Function:

void CloseOrderBuy() {

for (int i = OrdersTotal() - 1; i >= 0; i--) {
if(OrderSelect(i, SELECT_BY_POS, MODE_TRADES))
{
if (OrderSymbol() == Symbol() && OrderMagicNumber() == MagicNumberSeries)
{
if (OrderType() == OP_BUY)
{

bool CloseOrder=(OrderClose(OrderTicket(),OrderLots(),Bid,3,0));

}
}
}

}
}

I will really appreciate your responds... Thanks in advace.
Oksana Berenko
Oksana Berenko 2018.02.22
if(OrderProfit()>0) {close}
pek4christ
Added topic An EA that Open Buy and Sell Order according to the step Range
Please can any one help me fix this problem? I'm to build an EA that Opens Buy and Sell Position according to the RS_Step,that means if the Step is 10pips the EA Opens a buy and a Sell trade every 10pips move, I tried writting it but the problem I'm
pek4christ
pek4christ 2017.04.05
It Seems this post is a very difficult one not even one comment to solve the problem... so surprise
pek4christ
Added topic Array out of Range with My Grid Line indicator
Good day Guys, can any one help me fix this problem? I'm trying to build a Grid Line Indicator and its saying Array is out of Range . Here is the source Code : #property strict #property indicator_chart_window #property indicator_buffers 1 #property
pek4christ
Added topic can anyone convert this gridline indicator to array?
Hey Guys,            From the teachings in this forum and personal excersice i have discovered how to build a grid indicator, But there is a little problem Im having : building the indicator as a
pek4christ
Added topic how to calculate the price values of the vartical scale of the chart in mql4 plaform
Good day guys,  there is one little favor i want to ask from you guys,I'm trying to build an ea that open pending orders on vertical scale of the price  values in a windows chart, the vartical scale in mt4  consist of 11 values on the
pek4christ
Registered at MQL5.community