Dislikedwow it is nice to see the levels... is it available for stocks and commodities? it shows 106 errors{quote} {image}
Ignored
see this forum
http://www.forexfactory.com/showthre...26#post6539426
I will code your pivot EAs for no charge 28 replies
I will code your scalping EAs for no charge 163 replies
Oanda MT4 - Indicators and EAs not showing 2 replies
EAs and indicators relating to moutaki... 22 replies
InterbankFX has loaded its MT4 platform with custom EAs, indicators and scripts 1 reply
Dislikedwow it is nice to see the levels... is it available for stocks and commodities? it shows 106 errors{quote} {image}
Ignored
Disliked{quote} befor code is not cerrect. now fix. //-----Close Buy or Sell Orders when Closed trade { int total = OrdersTotal(); for(int i=total-1; i>=0; i--) { if(OrderSelect(i,SELECT_BY_POS)) { if(OrderSymbol()==Symbol() && OrderMagicNumber() == MagicNumber) { // Close order if(OrderType()<=OP_SELL) bool closed = OrderClose(OrderTicket(),OrderLots(),OrderClosePrice(),Slippage,clrRed); //Close all Buy orders else closed = OrderDelete(OrderTicket()); } } } }Ignored
Disliked{quote} Hi 919Gilead can you help me with your minicharts on the right side please? ThanksIgnored
{
int total = OrdersTotal(); //Use OrdersTotal
for(int i=total-1; i>=0; i--) //Search for latest ticket
{
if(!OrderSelect(i,SELECT_BY_POS)) //Latest order, Select ticket number
Print("unable to select an order"); //if cannot select order, print "unable to select an order"
double _op = OrderOpenPrice();
datetime _ot = OrderOpenTime();
double _oc = OrderClosePrice();
double _otp = OrderTakeProfit();
int type = OrderType();
double _lots = OrderLots();
int _ticket = OrderTicket();
bool result = false;
if(type == OP_BUY && _oc == _otp)
{
result = OrderClose( OrderTicket(), OrderLots(), MarketInfo(OrderSymbol(), MODE_BID), 5, Red );
}
if(type == OP_SELL && _oc == _otp)
{
result = OrderClose( OrderTicket(), OrderLots(), MarketInfo(OrderSymbol(), MODE_ASK), 5, Red );
}
}
} Disliked{quote} Hi Intrepidpips the indicator you show from CIA : where can I find it please? ThanksIgnored
DislikedStill trying to close my open orders when one of the order hitting TakeProfit { int total = OrdersTotal(); //Use OrdersTotal for(int i=total-1; i>=0; i--) //Search for latest ticket { if(!OrderSelect(i,SELECT_BY_POS)) //Latest order, Select ticket number Print("unable to select an order"); //if cannot select order, print "unable to select an order" double _op = OrderOpenPrice(); datetime _ot = OrderOpenTime(); double _oc = OrderClosePrice(); double _otp = OrderTakeProfit(); int type = OrderType(); double _lots = OrderLots(); int _ticket = OrderTicket();...Ignored
//---- Close Open BUY and Pending BUY by Selected Symbols and Selected Profit of Open BUYS
{
double orderTP = OrderTakeProfit();
int Btotal2=OrdersTotal();
for(int iii=Btotal2-1; iii>=0; iii--)
{
if(OrderSelect(iii,SELECT_BY_POS,MODE_TRADES)==true)
{
if(OrderSymbol()==_Symbol&& OrderClosePrice()==orderTP)
{
if(OrderType()==OP_BUY )
{
bool resultbuy = OrderClose(OrderTicket(),OrderLots(),OrderClosePrice(),3,Red);
}
if(OrderType()==OP_BUYSTOP) bool resultbuystop = OrderDelete(OrderTicket());
{
if(OrderType()==OP_BUYLIMIT) bool resultbuylimit = OrderDelete(OrderTicket());
}
}
}
}
}
//---- Close Open SELL and Pending SELL by Selected Symbols and Selected Profit of Open SELLS
{
double orderTP = OrderTakeProfit();
int Stotal2=OrdersTotal();
for(int jjj=Stotal2-1; jjj>=0; jjj--)
{
if(OrderSelect(jjj,SELECT_BY_POS,MODE_TRADES)==true)
{
if(OrderSymbol()==_Symbol&& OrderClosePrice()==orderTP)
{
if(OrderType()==OP_SELL )
{
bool resultsell = OrderClose(OrderTicket(),OrderLots(),OrderClosePrice(),3,Red);
}
if(OrderType()==OP_SELLSTOP) bool resulsellstop = OrderDelete(OrderTicket());
{
if(OrderType()==OP_SELLLIMIT)bool resultselllimit = OrderDelete(OrderTicket());
}
}
}
}
return;
} Dislikediwan, I can't remember how much it costs - but I do remember that it is not cheap - but you get what you pay for. and it works - THAT is the important thing to consider!! MindyIgnored
Disliked{quote} Alrightie then, I finally am coming a little bit closer to where I want to be. This is the new code I have used //---- Close Open BUY and Pending BUY by Selected Symbols and Selected Profit of Open BUYS { double orderTP = OrderTakeProfit(); int Btotal2=OrdersTotal(); for(int iii=Btotal2-1; iii>=0; iii--) { if(OrderSelect(iii,SELECT_BY_POS,MODE_TRADES)==true) { if(OrderSymbol()==_Symbol&& OrderClosePrice()==orderTP) { if(OrderType()==OP_BUY ) { bool resultbuy = OrderClose(OrderTicket(),OrderLots(),OrderClosePrice(),3,Red); } if(OrderType()==OP_BUYSTOP)...Ignored
DislikedHi, this is kind of a repainting indicator. I would like to keep it this way. It repaints an arrow when the following candle shows a counter arrow (e.g. Candle 1 shows up arrow, Candle 2 immediately shows down arrow, the up arrow on Candle 1 will be removed once refreshed.) Now the problem is that the arrows are only removed once you refresh the indicator/template. Is there a way to either a. code it so the arrow is removed (not change the calculation process but just this feature) - maybe an additional feature in the source code b. the indicator...Ignored
Dislikedhi guys... can anyone plz show me to a good Andrews' Pitchfork indicator ? was hoping for an indicator that can draw the line auto in MT4 like this page http://traderhq.com/trading-strategi...how-to-use-it/ thanks amillion and happy trading guysIgnored
Disliked{quote} hi kentsos...... read this ... http://www.forexfactory.com/showthread.php?t=76597Ignored