int DIGITS = (int) MarketInfo(simbol,MODE_DIGITS);
double point = MarketInfo(simbol,MODE_POINT);
pv=NormalizeDouble(MarketInfo(simbol,MODE_TICKVALUE),DIGITS);
//NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNXXXXX
OpenBuy = 0;
OpenSell = 0;
OpenOrders1 = 0;
OpenOrders2 = 0;
x_price=0;
y_price=0;
xx_price=0;
yy_price=0;
xy_orders=0;
xy_p=0;
xy_vol=0;
XYZ=0;
XYZ1=0;
XYZ2=0;
Profit=0;
total_xp=0;
total_yp=0;
total_xv=0;
total_yv=0;
avg_xx=0;
avg_yy=0;
xtime=0;
ytime=0;
for(cnt=0; cnt<OrdersTotal(); cnt++)
{
select=OrderSelect(cnt, SELECT_BY_POS, MODE_TRADES);
{
if(OrderSymbol()==simbol &&(OrderMagicNumber() == MagicNumber_Buy))
{
OpenOrders1++;
}
if(OrderSymbol()==simbol &&(OrderMagicNumber() == MagicNumber_Sell))
{
OpenOrders2++;
}
if(OrderSymbol()==simbol && OrderMagicNumber() == MagicNumber_Buy && OrderType()==OP_BUY)
{
x_vol=OrderLots();
OpenBuy++;
total_xp +=OrderProfit();
Buy_Price=OrderOpenPrice();
SLB_PRICE=OrderStopLoss();
TPB_PRICE=OrderTakeProfit();
x_price +=OrderOpenPrice();
xx_price =NormalizeDouble((x_price/OpenBuy),DIGITS);
total_xv +=OrderLots();
avg_xx= NormalizeDouble(total_xp/total_xv/pv,DIGITS);
xtime=OrderOpenTime();
}
if(OrderSymbol()==simbol && OrderMagicNumber() == MagicNumber_Sell && OrderType()==OP_SELL)
{
OpenSell++;
y_vol=OrderLots();
Sell_Price=OrderOpenPrice();
SLS_PRICE=OrderStopLoss();
TPS_PRICE=OrderTakeProfit();
y_price +=OrderOpenPrice();;
yy_price =NormalizeDouble((y_price/OpenSell),DIGITS);
total_yv +=OrderLots();
total_yp +=OrderProfit();
avg_yy= NormalizeDouble(total_yp/total_yv/pv,DIGITS);
ytime=OrderOpenTime();
}
}
}
//=======================================================================================================================||
if((DIGITS==5||DIGITS==3)
&&(simbol!= ""+"XAU"+"" || simbol!="XAU"+"" ||simbol!="XAUUSDcheck" ||simbol!="XAUUSD" || simbol!="GOLD"))
pip=10;
else
pip=1;
if(DIGITS==3
&&(simbol== ""+"XAU"+"" || simbol=="XAU"+"" ||simbol=="XAUUSDcheck" ||simbol=="XAUUSD" || simbol=="GOLD"))
pip=100;
else
pip=10;
//Print(simbol," ",point," ",pip);
if(point == 0 || pip == 0)
continue;
Spread =NormalizeDouble((MarketInfo(simbol,MODE_ASK)-MarketInfo(simbol,MODE_BID))/point/pip,2);
MinLot=MarketInfo(simbol,MODE_MINLOT);
MaxLot=MarketInfo(simbol,MODE_MAXLOT);
if(MinLot==0.01)
Lot_Digits=2;
if(MinLot==0.1)
Lot_Digits=1;
if(MinLot==1)
Lot_Digits=0;
HideTestIndicators(true);
if(DayOfWeek()==1)
hari= Day1;
if(DayOfWeek()==2)
hari= Day2;
if(DayOfWeek()==3)
hari= Day3;
if(DayOfWeek()==4)
hari= Day4;
if(DayOfWeek()==5)
hari= Day5;
if(DayOfWeek()==6)
hari= Day6;
if(DayOfWeek()==7)
hari= Day7;
if(DIGITS==3|| DIGITS==5)
{
tolerance= slippage*10;
}
else
{
tolerance= slippage*1;
}
if(candle==0)
last_vol=1000;
if(candle==1)
last_vol=30;
AroonUp = 100.0*(AroonPeriod-iHighest(simbol,0,MODE_HIGH,AroonPeriod,candle)+candle)/AroonPeriod;
AroonDn = 100.0*(AroonPeriod- iLowest(simbol,0,MODE_LOW,AroonPeriod,candle)+candle)/AroonPeriod;
AroonUp2 = 100.0*(AroonPeriod-iHighest(simbol,0,MODE_HIGH,AroonPeriod,candle+1)+candle+1)/AroonPeriod;
AroonDn2 = 100.0*(AroonPeriod- iLowest(simbol,0,MODE_LOW,AroonPeriod,candle+1)+candle+1)/AroonPeriod;
buffer3 = AroonUp-AroonDn;
buffer4 = AroonUp2-AroonDn2;
if(buffer3> Filter && buffer4< Filter)
XXX="BUY";
else
XXX="NOBUY";
if(buffer3<-Filter && buffer4>-Filter)
YYY="SELL";
else
YYY="NOSELL";
if(Stoploss>0&& Stoploss*pip>MarketInfo(simbol,MODE_STOPLEVEL))
{
SLB=MarketInfo(simbol,MODE_ASK)-(Stoploss*pip*point);
SLS=MarketInfo(simbol,MODE_BID)+Stoploss*pip*point;//
}
if((Stoploss==0) || (Stoploss*pip<=MarketInfo(simbol,MODE_STOPLEVEL)))
{
SLB=0;
SLS=0;
}
if(TakeProfit>0 && TakeProfit*pip>MarketInfo(simbol,MODE_STOPLEVEL))
{
TPB=MarketInfo(simbol,MODE_ASK)+(TakeProfit*pip)*point;
TPS=MarketInfo(simbol,MODE_BID)-(TakeProfit*pip)*point;
}
if((TakeProfit==0)|| (TakeProfit*pip<=MarketInfo(simbol,MODE_STOPLEVEL)))
{
TPB=0;
TPS=0;
}
if(ReadyOpen && OpenOrders1==0 && dnNearestOrder(simbol,OP_BUY,MagicNumber_Buy)>Order_Distance*pip*point && Filter_TIme() && XXX=="BUY" && iVolume(simbol,0,0)<last_vol /*&& Filter_Trial() */)
if(AccountFreeMargin() <MarketInfo(simbol,MODE_MARGINREQUIRED)*AutoLot())
{
Print("No Enougt Money to Open NextOrder or Volume size is Over Maximum Lot.");// Please reset this EA by change your Magic Number");
return;
}
else
{
if(!BrokerIsECN)
ord_send=OrderSend(simbol,0,AutoLot(),MarketInfo(simbol,MODE_ASK),slippage*pip,SLB,TPB,comment,MagicNumber_Buy,0,Blue);
if(BrokerIsECN)
{
ord_send = 0;
ord_send=OrderSend(simbol,0,AutoLot(),MarketInfo(simbol,MODE_ASK),slippage*pip,0,0,comment,MagicNumber_Buy,0,Blue);
if(ord_send > 0)
{
bool seleksi = OrderSelect(ord_send,SELECT_BY_TICKET);
if(TPB > 0.0 && SLB > 0.0)
{
while(IsTradeContextBusy())
Sleep(100);
bool bool_60 = OrderModify(ord_send, OrderOpenPrice(), SLB, TPB, OrderExpiration(), CLR_NONE);
if(!bool_60)
{
int error_64 = GetLastError();
Print(Symbol(), " ||=========================> ECN SL/TP order modify failed with error(", error_64, "): ", ErrorDescription(error_64));
}
}
if(TPB != 0.0 && SLB == 0.0)
{
while(IsTradeContextBusy())
Sleep(100);
bool bool_60 = OrderModify(ord_send, OrderOpenPrice(), OrderStopLoss(), TPB, OrderExpiration(), CLR_NONE);
if(!bool_60)
{
int error_64 = GetLastError();
Print(Symbol(), " ||=========================> ECN TP order modify failed with error(", error_64, "): ", ErrorDescription(error_64));
}
}
if(TPB == 0.0 && SLB != 0.0)
{
while(IsTradeContextBusy())
Sleep(100);
bool bool_60 = OrderModify(ord_send, OrderOpenPrice(), SLB, OrderTakeProfit(), OrderExpiration(), CLR_NONE);
if(!bool_60)
{
int error_64 = GetLastError();
Print(Symbol(), " ||=========================> ECN SL order modify failed with error(", error_64, "): ", ErrorDescription(error_64));
}
}
}
}
return;
}
if(ReadyOpen && OpenOrders2==0 && dnNearestOrder(simbol,OP_SELL,MagicNumber_Sell)>Order_Distance*pip*point && Filter_TIme() &&YYY=="SELL" && iVolume(simbol,0,0)<last_vol /*&& Filter_Trial() */)
if(AccountFreeMargin() <MarketInfo(simbol,MODE_MARGINREQUIRED)*AutoLot())
{
Print("No Enougt Money to Open NextOrder or Volume size is Over Maximum Lot.");// Please reset this EA by change your Magic Number");
return;
}
else
{
if(!BrokerIsECN)
ord_send= OrderSend(simbol,1,AutoLot(),MarketInfo(simbol,MODE_BID),slippage*pip,SLS,TPS,comment,MagicNumber_Sell,0,Red);
if(BrokerIsECN)
{
ord_send = 0;
ord_send= OrderSend(simbol,1,AutoLot(),MarketInfo(simbol,MODE_BID),slippage*pip,0,0,comment,MagicNumber_Sell,0,Red);
if(ord_send > 0)
{
bool seleksi = OrderSelect(ord_send,SELECT_BY_TICKET);
if(TPS > 0.0 && SLS > 0.0)
{
while(IsTradeContextBusy())
Sleep(100);
bool bool_60 = OrderModify(ord_send, OrderOpenPrice(), SLS, TPS, OrderExpiration(), CLR_NONE);
if(!bool_60)
{
int error_64 = GetLastError();
Print(Symbol(), " ||=========================> ECN SL/TP order modify failed with error(", error_64, "): ", ErrorDescription(error_64));
}
}
if(TPS != 0.0 && SLS == 0.0)
{
while(IsTradeContextBusy())
Sleep(100);
bool bool_60 = OrderModify(ord_send, OrderOpenPrice(), OrderStopLoss(), TPS, OrderExpiration(), CLR_NONE);
if(!bool_60)
{
int error_64 = GetLastError();
Print(Symbol(), " ||=========================> ECN TP order modify failed with error(", error_64, "): ", ErrorDescription(error_64));
}
}
if(TPS == 0.0 && SLS != 0.0)
{
while(IsTradeContextBusy())
Sleep(100);
bool bool_60 = OrderModify(ord_send, OrderOpenPrice(), SLS, OrderTakeProfit(), OrderExpiration(), CLR_NONE);
if(!bool_60)
{
int error_64 = GetLastError();
Print(Symbol(), " ||=========================> ECN SL order modify failed with error(", error_64, "): ", ErrorDescription(error_64));
}
}
}
}
return;
}
if(OpenBuy>0)
{
Lot_MultiB= NormalizeDouble(x_vol*Multiplier,Lot_Digits);
}
Martin_SLB=SLB_PRICE;
Martin_SLS= SLS_PRICE;
if(MartingaleTrade_ON)
{
if(OpenBuy>0 && OpenBuy<MaxTrades_EachSide && X_Distance())
if(AccountFreeMargin() <MarketInfo(simbol,MODE_MARGINREQUIRED)*Lot_Multi1())
{
Print("No Enougt Money to Open NextOrder or Volume size is Over Maximum Lot.");
return;
}
else
{
if(!BrokerIsECN)
ord_send=OrderSend(simbol,OP_BUY,Lot_Multi1(),MarketInfo(simbol,MODE_ASK),slippage*pip,SLB_PRICE,0,comment,MagicNumber_Buy,0,Aqua);
if(BrokerIsECN)
{
ord_send = 0;
ord_send=OrderSend(simbol,OP_BUY,Lot_Multi1(),MarketInfo(simbol,MODE_ASK),slippage*pip,0,0,comment,MagicNumber_Buy,0,Aqua);
if(ord_send > 0)
{
bool seleksi = OrderSelect(ord_send,SELECT_BY_TICKET);
if(SLB_PRICE != 0.0)
{
while(IsTradeContextBusy())
Sleep(100);
bool bool_60 = OrderModify(ord_send, OrderOpenPrice(), SLB_PRICE, OrderTakeProfit(), OrderExpiration(), CLR_NONE);
if(!bool_60)
{
int error_64 = GetLastError();
Print(Symbol(), " ||=========================> ECN SL order modify failed with error(", error_64, "): ", ErrorDescription(error_64));
}
}
}
}
}
if(OpenSell>0 && OpenSell<MaxTrades_EachSide && Y_Distance())
if(AccountFreeMargin() <MarketInfo(simbol,MODE_MARGINREQUIRED)*Lot_Multi2())
{
Print("No Enougt Money to Open NextOrder or Volume size is Over Maximum Lot.");
return;
}
else
{
if(!BrokerIsECN)
ord_send=OrderSend(simbol,OP_SELL,Lot_Multi2(),MarketInfo(simbol,MODE_BID),slippage*pip,SLS_PRICE,0,comment,MagicNumber_Sell,0,Magenta);
if(BrokerIsECN)
{
ord_send = 0;
ord_send=OrderSend(simbol,OP_SELL,Lot_Multi2(),MarketInfo(simbol,MODE_BID),slippage*pip,0,0,comment,MagicNumber_Sell,0,Magenta);
if(ord_send > 0)
{
bool seleksi = OrderSelect(ord_send,SELECT_BY_TICKET);
if(SLS_PRICE != 0.0)
{
while(IsTradeContextBusy())
Sleep(100);
bool bool_60 = OrderModify(ord_send, OrderOpenPrice(), SLS_PRICE, OrderTakeProfit(), OrderExpiration(), CLR_NONE);
if(!bool_60)
{
int error_64 = GetLastError();
Print(Symbol(), " ||=========================> ECN SL order modify failed with error(", error_64, "): ", ErrorDescription(error_64));
}
}
}
}
}
}
TSP=(TrailingStep+Trailing_Stop)*pip;
if(Trailing_Stop_ON)
{
for(cnt=OrdersTotal()-1; cnt>=0; cnt--)
{
Select=OrderSelect(cnt, SELECT_BY_POS, MODE_TRADES);
if(OrderSymbol()==simbol && OrderMagicNumber() == MagicNumber)
{
if(OrderType()==OP_BUY && OpenOrders1==1)
{
if(Trailing_Stop>0 && Trailing_Stop*pip>MarketInfo(simbol,MODE_STOPLEVEL))
{
if(MarketInfo(simbol,MODE_BID)-OrderOpenPrice()>=point*Trailing_Stop*pip)
{
if((OrderStopLoss()<= MarketInfo(simbol,MODE_BID)-point*TSP)|| (OrderStopLoss()==0))
{
Modif=OrderModify(OrderTicket(),OrderOpenPrice(),MarketInfo(simbol,MODE_BID)-(point*Trailing_Stop*pip),OrderTakeProfit(),0,Lime);
return;
}
}
}
}
else
if(OrderType()==OP_SELL && OpenOrders2==1)
{
if(Trailing_Stop>0 && Trailing_Stop*pip>MarketInfo(simbol,MODE_STOPLEVEL))
{
if((OrderOpenPrice()-MarketInfo(simbol,MODE_ASK))>=point*Trailing_Stop*pip)
{
if((OrderStopLoss()>=MarketInfo(simbol,MODE_ASK)+ point*TSP) || (OrderStopLoss()==0))
{
Modif=OrderModify(OrderTicket(),OrderOpenPrice(),MarketInfo(simbol,MODE_ASK)+(point*Trailing_Stop*pip),OrderTakeProfit(),0,Red);
return;
}
}
}
}
}
}
}
if(OpenBuy>0)
{
BEP_XXX= NormalizeDouble((MarketInfo(simbol,MODE_BID)-avg_xx*point),DIGITS);
TPB_ALL=NormalizeDouble((BEP_XXX+(Average_TP*pip*point)),DIGITS);
}
if(OpenSell>0)
{
BEP_YYY= NormalizeDouble((MarketInfo(simbol,MODE_ASK)+avg_yy*point),DIGITS);
TPS_ALL=NormalizeDouble((BEP_YYY - (Average_TP*pip*point)),DIGITS);
}
if(Average_ALL==true && Average_TP>0)
{
// cnt=0;
for(cnt=OrdersTotal()-1; cnt>=0; cnt--)
{
select=OrderSelect(cnt,SELECT_BY_POS,MODE_TRADES);
if(OrderSymbol()==simbol && OrderMagicNumber()==MagicNumber_Sell)
{
if(OrderType()==OP_SELL && OpenSell>1&& TPS_PRICE==0)
{
modif=OrderModify(OrderTicket(),OrderOpenPrice(),OrderStopLoss(),NormalizeDouble((BEP_YYY - (Average_TP*pip*point)),DIGITS),0,Yellow);
}
}
}
}
if(Average_ALL==true && Average_TP>0)
{
cnt=0;
for(cnt=OrdersTotal()-1; cnt>=0; cnt--)
{
select=OrderSelect(cnt,SELECT_BY_POS,MODE_TRADES);
if(OrderSymbol()==simbol && OrderMagicNumber()==MagicNumber_Buy)
{
if(OrderType()==OP_BUY && OpenBuy>1 && TPB_PRICE==0)
{
modif=OrderModify(OrderTicket(),OrderOpenPrice(),OrderStopLoss(),NormalizeDouble((BEP_XXX+(Average_TP*pip*point)),DIGITS),0,Yellow);
}
}
}
}
//MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
if(Hidden_TP==true)
{
for(cnt=OrdersTotal()-1; cnt>=0; cnt--)
{
select= OrderSelect(cnt, SELECT_BY_POS, MODE_TRADES);
if(OrderSymbol()==simbol && OrderMagicNumber() == MagicNumber_Sell)
{
if((OrderType()==OP_SELL && OpenSell==1&& MarketInfo(simbol,MODE_ASK)<=Sell_Price-hidden_takeprofit*pip*point)
|| (OrderType()==OP_SELL && OpenSell>1 && MarketInfo(simbol,MODE_ASK)<=BEP_YYY-Average_HTP*pip*point))
{
ord_close=OrderClose(OrderTicket(),OrderLots(),OrderClosePrice(),slippage,Red);
}
}
}
}
//XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX||
if(Hidden_TP==true)
{
for(cnt=OrdersTotal()-1; cnt>=0; cnt--)
{
select= OrderSelect(cnt, SELECT_BY_POS, MODE_TRADES);
if(OrderSymbol()==simbol && OrderMagicNumber() == MagicNumber_Buy)
{
if((OrderType()==OP_BUY &&OpenBuy==1 && MarketInfo(simbol,MODE_BID)>=Buy_Price+hidden_takeprofit*pip*point)
|| (OrderType()==OP_BUY &&OpenBuy>1 && MarketInfo(simbol,MODE_BID)>=BEP_XXX+Average_HTP*pip*point))
{
ord_close=OrderClose(OrderTicket(),OrderLots(),OrderClosePrice(),slippage,Blue);
}
}
}
}
//XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX||
//XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX||
/*
if ( Filter_Trial()==false && Filter_Time_For_Trial==true )
{
string_window( "EA Trial", 5, 5, 0);
ObjectSetText( "EA Trial",trial_version , 15, "Impact", Red);
ObjectSet( "EA Trial", OBJPROP_CORNER,0);
string_window( "EA Trial2", 5, 25, 0);
ObjectSetText( "EA Trial2", trial_version2 +Trial_Time , 15, "Impact", Blue);
ObjectSet( "EA Trial2", OBJPROP_CORNER,0);
}
else{ ObjectDelete("EA Trial"); ObjectDelete("EA Trial2"); }
*/
if(iVolume(simbol,0,0)%2==0)
clr_price= clrLime;
else
clr_price= clrRed;
if(AccountEquity()> AccountBalance())
clr_eq= clrBlue;
else
clr_eq= clrMagenta;
Range =NormalizeDouble((iHigh(simbol,1440,0)- iLow(simbol,1440,0))/point/pip,2);
Spread= (MarketInfo(simbol,MODE_ASK)-MarketInfo(simbol,MODE_BID))/point;
if(ACCOUNT_INFO /*&& simbol == Symbol()*/)
{
string_window("hari", 5, 18, 0); //
ObjectSetText("hari",hari +", "+DoubleToStr(Day(),0)+" - "+DoubleToStr(Month(),0) +" - "
+DoubleToStr(Year(),0)+" "+IntegerToString(Hour())+":"+IntegerToString(Minute())+":"+IntegerToString(Seconds()),text_size+1, "Impact", Yellow);
ObjectSet("hari", OBJPROP_CORNER,text_corner);
string_window("Balance", 5, 15+20, 0); //
ObjectSetText("Balance","Balance : " +DoubleToStr(AccountBalance(),2), text_size, "Cambria", color_text);
ObjectSet("Balance", OBJPROP_CORNER,text_corner);
string_window("Equity", 5, 30+20, 0); //
ObjectSetText("Equity","Equity : " + DoubleToStr(AccountEquity(),2), text_size, "Cambria", clr_eq);
ObjectSet("Equity", OBJPROP_CORNER, text_corner);
string_window("AF", 5, 65, 0); //
ObjectSetText("AF","Free Margin : " + DoubleToStr(AccountFreeMargin(),2), text_size, "Cambria", clr_eq);
ObjectSet("AF", OBJPROP_CORNER, text_corner);
/*
string_window( "Leverage", 5,60+20, 0);
ObjectSetText( "Leverage","Leverage : " + DoubleToStr(AccountLeverage(),0), text_size, "Cambria", color_text);
ObjectSet( "Leverage", OBJPROP_CORNER, text_corner);
*/
Spread =NormalizeDouble((MarketInfo(Symbol(),MODE_ASK)-MarketInfo(Symbol(),MODE_BID))/Point,2);
string_window("Spread", 5,60+20, 0);
ObjectSetText("Spread","Spread : " + DoubleToStr(Spread,1), text_size, "Cambria", color_text);
ObjectSet("Spread", OBJPROP_CORNER, text_corner);
Range =NormalizeDouble((iHigh(Symbol(),1440,0)- iLow(Symbol(),1440,0))/point/pip,2);
string_window("Range", 5, 75+20, 0); //
ObjectSetText("Range","Range : " + DoubleToStr(Range,1), text_size, "Cambria", color_text);
ObjectSet("Range", OBJPROP_CORNER, text_corner);
string_window("Price", 5, 120, 0); //
ObjectSetText("Price","Price : " + DoubleToStr(MarketInfo(Symbol(),MODE_BID),DIGITS), text_size, "Cambria", clr_price);
ObjectSet("Price", OBJPROP_CORNER, text_corner);
if(OpenSell>0)
{
string_window("sell", 5, 155, 0); //
ObjectSetText("sell","Sell Order : " + DoubleToStr(OpenSell,0) +" | Sell Lot : " + DoubleToStr(total_yv,2)
, text_size, "Cambria", color_text);
ObjectSet("sell", OBJPROP_CORNER, text_corner);
}
else
{
ObjectDelete("Tps");
ObjectDelete("SLs");
ObjectDelete("sell");
}
if(OpenBuy>0)
{
string_window("buy", 5, 140, 0); //
ObjectSetText("buy","Buy Order : " + DoubleToStr(OpenBuy,0) +" |Buy Lot : " + DoubleToStr(total_xv,2)
, text_size, "Cambria", color_text);
ObjectSet("buy", OBJPROP_CORNER, text_corner);
}
else
{
ObjectDelete("Tp");
ObjectDelete("SL");
ObjectDelete("buy");
}
/*
string_window( "Profit", 5, 170, 0);
ObjectSetText( "Profit", "Buy Profit : " +DoubleToStr( total_xp,2) + " | Sell Profit : " +DoubleToStr( total_yp,2) , text_size, "Cambria", clr_eq);
ObjectSet( "Profit", OBJPROP_CORNER, text_corner);
string_window( "MX", 5, 185, 0);
ObjectSetText( "MX", "Min Lot : " +DoubleToStr( MinLot,Lot_Digits) + " | Max Lot : " +DoubleToStr( MaxLot,0) , text_size, "Cambria", clr_eq);
ObjectSet( "MX", OBJPROP_CORNER, text_corner);
*/
string_window("EA_NAME", 5, 5, 0);
ObjectSetText("EA_NAME",EA_NAME, text_size+3, "Impact", clr_eq);
ObjectSet("EA_NAME", OBJPROP_CORNER, 3);
}
}