Is there a way I can get some statistics on how often price successfully travels maybe 5 pips from the daily open (long & short) once per day or any chosen pair? Is there an EA that can be created ?
Thanks
Thanks
I will code your pivot EAs for no charge 24 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
Disliked{quote} Please can you release the MQ4 file? Ihanks for the good work.Ignored
#property indicator_chart_window #property indicator_buffers 4 #property indicator_color1 Lime #property indicator_color2 Red double CrossUp[]; double CrossDown[]; extern int FasterMode = 3; //0=sma, 1=ema, 2=smma, 3=lwma extern int FasterMA = 1; extern int SlowerMode = 3; //0=sma, 1=ema, 2=smma, 3=lwma extern int SlowerMA = 5; double alertTag; extern bool alertsOn = true; // Enable or disable alerts extern bool alertsOnCurrent = true; // Only alert on the current (still open) bar extern bool alertsMessage = true; // Show alert message on screen extern bool alertsSound = true; // Play sound alert extern bool alertsEmail = true; // Send email alert extern bool pushNotifications = true; // Send push notification to mobile device int lastAlertBar = -1; int init() { SetIndexStyle (0, DRAW_ARROW,5,0); SetIndexArrow (0, 233); SetIndexBuffer(0, CrossUp); SetIndexStyle (1, DRAW_ARROW,5,0); SetIndexArrow (1, 234); SetIndexBuffer(1, CrossDown); return(0); } int deinit() { return(0); } int start() { int limit, i, counter; double fasterMAnow, slowerMAnow, fasterMAprevious, slowerMAprevious, fasterMAafter, slowerMAafter; double Range, AvgRange; int counted_bars=IndicatorCounted(); if(counted_bars<0) return(-1); if(counted_bars>0) counted_bars--; limit=Bars-counted_bars; for(i = 0; i <= limit; i++) { counter=i; Range=0; AvgRange=0; for (counter=i ;counter<=i+9;counter++) { AvgRange=AvgRange+MathAbs(High[counter]-Low[counter]); } Range=AvgRange/10; fasterMAnow = iMA(NULL, 0, FasterMA, 0, FasterMode, PRICE_CLOSE, i); fasterMAprevious = iMA(NULL, 0, FasterMA, 0, FasterMode, PRICE_CLOSE, i+1); fasterMAafter = iMA(NULL, 0, FasterMA, 0, FasterMode, PRICE_CLOSE, i-1); slowerMAnow = iMA(NULL, 0, SlowerMA, 1, SlowerMode, PRICE_OPEN, i); slowerMAprevious = iMA(NULL, 0, SlowerMA, 1, SlowerMode, PRICE_OPEN, i+1); slowerMAafter = iMA(NULL, 0, SlowerMA, 1, SlowerMode, PRICE_OPEN, i-1); if ( (fasterMAnow > slowerMAnow) && (fasterMAprevious < slowerMAprevious) && (fasterMAafter > slowerMAafter)) { CrossUp[i] = Low[i] - Range*0.5; if (alertsOn && (!alertsOnCurrent || (alertsOnCurrent && i == 0))) { string message = StringConcatenate(Symbol(), " M", Period(), " MA cross BUY"); if (i != lastAlertBar) { if(alertsMessage) Alert(message); if(alertsSound) PlaySound("alert2.wav"); if(alertsEmail) SendMail(message,message); if(pushNotifications) SendNotification(message); lastAlertBar = i; } } alertTag = Time[0]; } else if ((fasterMAnow < slowerMAnow) && (fasterMAprevious > slowerMAprevious) && (fasterMAafter < slowerMAafter)) { CrossDown[i] = High[i] + Range*0.5; if (alertsOn && (!alertsOnCurrent || (alertsOnCurrent && i == 0))) { string message2 = StringConcatenate(Symbol(), " M", Period(), " MA cross SELL"); if (i != lastAlertBar) { if(alertsMessage) Alert(message2); if(alertsSound) PlaySound("alert2.wav"); if(alertsEmail) SendMail(message2,message2); if(pushNotifications) SendNotification(message2); lastAlertBar = i; } } alertTag = Time[0]; } } return(0); }
Disliked{quote} try adding another check if(SL!=0) if(OrderModify(OrderTicket(), OrderOpenPrice(), SL, OrderTakeProfit(), 0, CLR_NONE)){ Print("Stop Loss adjusted to ", pLockInPips, " pips"); PlaySound(gs144); } {file}Ignored
Disliked{quote} If you mean 2 new buffers for the start of new up/dn trend, then see the attached, simple dots on the new direction and seen in the data window {file} {image}Ignored
Disliked{quote} yes we got 2 new buffers but the issue is its still on back bar even bars are on open setting but new buffer appear on current close bar i want new buffer on current bar like bars appear thanks .Ignored
DislikedHello Jeanlouie, please help to add pop up alerts to the arrows on current/closed candle. Thanks in advance. {file}Ignored
DislikedHello, If you could help me with this jeanlouie...alarm should perform like this...earnforex.com...Ignored
Disliked{quote} I wont get around to it, someone else may, consider contacting earnforex for that feature.Ignored
Disliked{quote} All those gi-, gs-,gd-number named variables show its a decompiled file.Ignored