Hello All,
Can someone help to convert the Mt4 EA attached below to mt5 EA?
Can someone help to convert the Mt4 EA attached below to mt5 EA?
Attached File(s)
I will code your scalping EAs for no charge 71 replies
Need help to code EAs for MT4 and MT5 5 replies
I will code your pivot EAs for no charge 20 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} Check. TP and SL must now be entered as for the 5-digit. {file}Ignored
Disliked{quote} Williams AD +MA MTF TT [x3 AG] Indicator repaints in MTF mode! ALERTBAR corrected for MTF. {image} {file}Ignored
Disliked{quote} Check. TP and SL must now be entered as for the 5-digit. {file}Ignored
Disliked{quote} you will do something like this. ObjectCreate(0,"L",OBJ_LABEL,0,0,0); ObjectSetText("L",T,12,"Tahoma",Yellow); ObjectSet("L",OBJPROP_CORNER,GN); ObjectSetInteger(0,"L",OBJPROP_XDISTANCE,25); ObjectSetInteger(0,"L",OBJPROP_YDISTANCE,100); ObjectCreate(0,"L2",OBJ_LABEL,0,0,0); ObjectSetText("L2",d,12,"Tahoma",Yellow); ObjectSet("L2",OBJPROP_CORNER,GN); ObjectSetInteger(0,"L2",OBJPROP_XDISTANCE,25); ObjectSetInteger(0,"L2",OBJPROP_YDISTANCE,120) Also,you should have XDistance, YDistance so that it knows where it can start placing its label....Ignored
DislikedThanks Sir for your help please i attached your indicator on Renko chart, please see the attached, is there any possibility to work good?Ignored
Dislikedafter trying many strategies, indies & robot from FF & other source. finally i came to this simple robot. THIS IS VERY BASIC, don't use it as is if you not a stupid person like me. please do some tweak or add some filter for better result. wish green pips for everyone {image} {file}Ignored
Disliked{quote} RenkoLiveChart v600,6 [indicator] Range bars EA new format 1 [expert] don't forget to enable DLL... {image} {image} {file} {file} {file}Ignored
Disliked{quote} I don't think you can capture two at once. However, you can capture KeyDown and next, Check Property of object to act on. This video might help - Mql4 Lesson 42 Makiing ShortCut Keys - YouTube Basically, you will capture event of KeyDown with specific key value. ( + sign ) Next, if that happens, check the object properties such as OBJPROP_SELECTED or if this is button OBJPROP_STATE example of button object is pressed .. //do something if object button is pressed if (ObjectGetInteger(ChartID(),...Ignored
DislikedHello All, Can someone help to convert the Mt4 EA attached below to mt5 EA? {file}Ignored
Disliked{quote} Hello bluerain If you can help me, I need simple script to read a .CSV-file and draw horizontal lines onto the chart. three columns in csv file. first is symbol name, then low price red lines and last column green line prices. EURUSD 1.331 1.361 USDJPY 136.66 139.56 XAUUSD 1742.657 1749.225 XAUUSD 1743.657 1747.851 {file}Ignored
Disliked{quote} I don't think you can capture two at once. However, you can capture KeyDown and next, Check Property of object to act on. This video might help - Mql4 Lesson 42 Makiing ShortCut Keys - YouTube Basically, you will capture event of KeyDown with specific key value. ( + sign ) Next, if that happens, check the object properties such as OBJPROP_SELECTED or if this is button OBJPROP_STATE example of button object is pressed .. //do something if object button is pressed if (ObjectGetInteger(ChartID(),...Ignored
Disliked{quote} You could use fractal swing highs . and Lows of higher tf for lower tf support and resistance. What you should do is code an indicator to identify the most 2 most recent bullish and bearish engulfing candlestick patterns above and below current market price. Have MTF feature of the indicator. For bullish engulfing candle patterns the open price of the engulfed candle have a horizontal line stretched to current Data and horizontal price line at the low of the engulfing candle pattern that form a zone . For bearish engulfing candle pattern...Ignored
//+------------------------------------------------------------------+ //| !jl_Tick_Change.mq4 | //| Copyright :copyright: June 2022, jeanlouie | //| www.forexfactory.com/jeanlouie | //| www.mql5.com/en/users/jeanlouie_ff | //+------------------------------------------------------------------+ #property copyright "Copyright :copyright: June 2022, jeanlouie" #property link /*"www.mql5.com/en/users/jeanlouie_ff"*/"https://www.forexfactory.com/jeanlouie" #property description "www.forexfactory.com/jeanlouie" #property description "www.mql5.com/en/users/jeanlouie_ff" //#property version "1.00" //+------------------------------------------------------------------+ //| | //+------------------------------------------------------------------+ input int tick_count = 1000; //Show last x ticks //+------------------------------------------------------------------+ //| | //+------------------------------------------------------------------+ #property strict #property indicator_separate_window #property indicator_buffers 2 double b_bid[]; #property indicator_type1 DRAW_LINE #property indicator_color1 clrYellow #property indicator_width1 1 #property indicator_style1 STYLE_SOLID double b_ask[]; #property indicator_type2 DRAW_LINE #property indicator_color2 clrWhite #property indicator_width2 1 #property indicator_style2 STYLE_SOLID #property indicator_levelcolor clrSilver #property indicator_levelwidth 1 #property indicator_levelstyle STYLE_DOT #property indicator_level1 0 //+------------------------------------------------------------------+ //| Custom indicator initialization function | //+------------------------------------------------------------------+ //place to store stuff double arr_bid[]; double arr_ask[]; int OnInit() { //set draw buffers SetIndexBuffer(0,b_bid); SetIndexEmptyValue(0,EMPTY_VALUE); SetIndexBuffer(1,b_ask); SetIndexEmptyValue(1,EMPTY_VALUE); //size the dynamic arrays to tickcount ArrayResize(arr_bid,tick_count); ArrayResize(arr_ask,tick_count); //start them off with 0's ArrayInitialize(arr_bid,0); ArrayInitialize(arr_ask,0); IndicatorDigits(_Digits); return(INIT_SUCCEEDED); } //+------------------------------------------------------------------+ //| Custom indicator iteration function | //+------------------------------------------------------------------+ int OnCalculate(const int rates_total, const int prev_calculated, const datetime &time[], const double &open[], const double &high[], const double &low[], const double &close[], const long &tick_volume[], const long &volume[], const int &spread[]) { if(prev_calculated<0)return(-1); if(IsStopped())return(-1); //save the last ask/bid prices static double prev_ask; static double prev_bid;
//get the current ask/bid change from the previous int delta_ask = int((Ask-prev_ask)/_Point); int delta_bid = int((Bid-prev_bid)/_Point);
//if the previous ask/bid is non existent if(prev_ask==0)delta_ask = 0; if(prev_bid==0)delta_bid = 0; //set values of prev ask/bid for next call prev_ask = Ask; prev_bid = Bid; //update display display_update(delta_ask,delta_bid); return(rates_total); } //+------------------------------------------------------------------+ //+------------------------------------------------------------------+ //| | //+------------------------------------------------------------------+ bool display_update(int d_ask, int d_bid) { //move array elements back 1 position, stop at index 1 //i50=i49 ... i1=i0 //array is array indexing, but treated as timeseries by filling new from index 0 for(int i=tick_count-1; i>=1; i--){ arr_ask[i] = arr_ask[i-1]; arr_bid[i] = arr_bid[i-1]; } //insert new 0 element arr_ask[0] = d_ask; arr_bid[0] = d_bid; //udpate buffer display for(int i=0; i<tick_count; i++){ b_ask[i] = arr_ask[i]; b_bid[i] = arr_bid[i]; } //set the previous left buffer val outside the tick count to empty or 0 b_ask[tick_count-1+1] = EMPTY_VALUE; b_bid[tick_count-1+1] = EMPTY_VALUE; return(true); } //+------------------------------------------------------------------+ //| | //+------------------------------------------------------------------+ void OnDeinit(const int reason) { }
QuoteDislikedShouldnt the calculation above have a bunch of decimals in it? How come its an int variable?
int delta_ask = int((Ask-prev_ask)/_Point);
QuoteDislikedWhen I remove the divide by Points, the code compiles but does not draw any lines. I dont get why that is?
Disliked{quote} Hi this was the one i wrote you about which you said you may look into if posted here since you stopped handling such stuff via mail well i put it here and the arrow has been attached but theres no alert to complete it please kindly assist me.What is needed here is a breakout alert on the candle that closes outside the horizontal lines just like what the arrow has done. Thanks{image}{file}Ignored
Disliked{quote}...idea is to combine the action of holding down a key (for example the "S" key) with a right mouse click...Ignored
int keycode = 65;//keyboard code for a static bool keyhold;//switch to start waiting for a click event static long t_keyhold;//time of keypress/hold int t_msc_max = 500;//maximum milliseconds after a keypress/hold if(id==CHARTEVENT_KEYDOWN){ if(keyhold==false && lparam==keycode){ t_keyhold = GetTickCount();//save the msc passed since program start keyhold = true; } } if(keyhold==true){ if(GetTickCount()-t_keyhold>t_msc_max){//timeout for keyhold, reset it keyhold = false; } else if(id==CHARTEVENT_CLICK){//target event combination, within timer Print("key pressed/held with a mouse click"); } }