DislikedJust wondering why this file wont load please experts here kindly help to wake this file up from inactive. Thanks {file}Ignored
Attached File(s)
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
DislikedJust wondering why this file wont load please experts here kindly help to wake this file up from inactive. Thanks {file}Ignored
Disliked{quote} And this one is another victim guess its due to old age please help me o, i will be grateful for assistance to wake both of them up again {file} {image}Ignored
string filename = "\\Images\\alpha.bmp"; ObjectCreate( 0,"CC", OBJ_BITMAP_LABEL, 0, 0, 0 ); ObjectSetString( 0, "CC", OBJPROP_BMPFILE, filename ); ObjectSetInteger(0,"CC",OBJPROP_BACK,1);
DislikedCalling it a day, another small profit day, just under 1% but profit nonethelessIgnored
Dislikednot working, please check string filename = "\\Images\\alpha.bmp"; ObjectCreate( 0,"CC", OBJ_BITMAP_LABEL, 0, 0, 0 ); ObjectSetString( 0, "CC", OBJPROP_BMPFILE, filename ); ObjectSetInteger(0,"CC",OBJPROP_BACK,1);Ignored
int zy=100;
for(int z1=0;z1<OrdersTotal();z1 ++)
{
bool zz = OrderSelect(z1,SELECT_BY_POS,MODE_TRADES);
LB(OrderTicket(),OrderSymbol(),OrderType(),OrderOpenPrice(),OrderStopLoss(),OrderTakeProfit(),zy,OrderProfit());
zy=zy+20;
}
void LB(int OT,string S,int OTy,double P,double SL,double TP,int zy1,double PR)
{
string S3="BUY";
if (OTy==1) S3="SELL";
string S2 = IntegerToString(OT)+" "+S+" "+S3+" "+DoubleToStr(P,2)+" SL "+DoubleToStr(SL,2)+" TP "+DoubleToStr(TP,2)+" profit "+DoubleToStr(PR,2);
ObjectCreate(0,IntegerToString(OT),OBJ_LABEL,0,0,0);
ObjectSetInteger(0,IntegerToString(OT),OBJPROP_XDISTANCE,10);
ObjectSetInteger(0,IntegerToString(OT),OBJPROP_YDISTANCE,zy1);
ObjectSetText(IntegerToString(OT),S2,8,"Tahoma",Yellow);
} DislikedThis script lists all open orders on chart with basic requirements int zy=100; for(int z1=0;z1<OrdersTotal();z1 ++) { bool zz = OrderSelect(z1,SELECT_BY_POS,MODE_TRADES); LB(OrderTicket(),OrderSymbol(),OrderType(),OrderOpenPrice(),OrderStopLoss(),OrderTakeProfit(),zy,OrderProfit()); zy=zy+20; } void LB(int OT,string S,int OTy,double P,double SL,double TP,int zy1,double PR) { string S3="BUY"; if (OTy==1) S3="SELL"; string S2 = IntegerToString(OT)+" "+S+" "+S3+" "+DoubleToStr(P,2)+" SL "+DoubleToStr(SL,2)+" TP "+DoubleToStr(TP,2)+" profit "+DoubleToStr(PR,2);...Ignored
//+------------------------------------------------------------------+
//| ChartEvent function |
//+------------------------------------------------------------------+
void OnChartEvent(const int id,
const long &lparam,
const double &dparam,
const string &sparam)
{
if(id==CHARTEVENT_OBJECT_CLICK)
{
// Here, you need to use sparam in order to read the X label name,
// extract the order ticket,
// execute OrderClose()
}
}
//+------------------------------------------------------------------+ Disliked{quote} So, what you need to do first is add an "X" label. The best method would be to name the label including the order ticket string. Then you need the OnChartEvent() function: //+------------------------------------------------------------------+ //| ChartEvent function | //+------------------------------------------------------------------+ void OnChartEvent(const int id, const long &lparam, const double &dparam, const string &sparam) { if(id==CHARTEVENT_OBJECT_CLICK) { // Here, you need to use sparam in order to read the X label name, // extract...Ignored
Disliked{quote} Good Day Best many thanks for yesterday please have you ever come across a CANDLE TIMER with alert?Ignored
Disliked{quote} Good Day Best many thanks for yesterday please have you ever come across a CANDLE TIMER with alert?Ignored
Disliked{quote} Yes that's right, I just made the other colors as clrnone in the settings, just to show 2 lines for the sake of comparing tma/rsi/rsismooth.Ignored
The main problem I'm trying to solve is that I have tried several code examples from the web, but they often result in closing the trade with a much larger loss than the fixed level. This seems to happen due to slippage or the EA not being fast enough to close the order on the exact tick. The result is sometimes even worse than a normal, broker-side stop loss.
I need a solution that works as reliably as a traditional SL, but without the broker knowing its location.
Could someone please provide a code example that demonstrates how to achieve this reliably? I am specifically looking for the logic that would be placed in the OnTick() function to constantly monitor open trades and close them precisely at the virtual stop loss level.
Thank you in advance for your help!
Dislikedhello dear master please i just need some few modifications on this indi below.candlestick indicate if ma touch/cross wick (both upper shadow and lower shadow of any candle) in any direction as long as wick touch ma. no arrows! or points! just only candle colour change.
Just only make the indicated candle change colour anytime the body of the candle only crossess ma upward direction and downward direction, just exactly like the indi below. no arrows! or points! Thank you for helping me out once again this...
Ignored