Thank you.
Please look at the illustration attached and see what needs to change. Stay Blessed
1
I will code your pivot EAs for no charge 25 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} i love what you did with the indicator, especially with the button added. Thank you. Please look at the illustration attached and see what needs to change. Stay Blessed {image}Ignored
Disliked{quote} tell me if everything is ok ...{image}{image} {file}{file} God bless you vicol and God bless everyone!
Ignored
Disliked{quote} tell me if everything is ok ...{image}{image} {file}{file} God bless you vicol and God bless everyone!
Ignored
Disliked- forget about coding for the moment, whats the output supposed to look like? Subtracting the previous tick from the current one, which is the change in bid/ask price with each new tick, will give a number that is in the range of single points big, like 0.90005 to 0.90006 gives +0.00001. Is it just for the previous and current tick, or all new incomming ticks and making displaying a history? What it's supposed to look like is still not clear.Ignored
QuoteDislikedTick_Change - plots the change in bid/ask prices - input to show the last x ticks
DislikedHey Everyone, Just want to give another shout-out to CJA. The first EA you created with the timer was exactly what I needed since I can set the 1-minute interval on a higher timeframe chart. I have been testing this on demo since the week began and I am astonished that this simple EA is so effective; Ensuring that my focus is only on where to enter the market to minimize the cost of the oscillation. The beauty is that I am always holding the right direction. I realized you fully understood what I wanted to accomplish from the start. This revelation...Ignored
DislikedHello Coders I have a script for set orders with SL and TP. The script open the trades but SL and TP will not set And a warning by compiling also: return value of "OrderSend" should be checked somebody can have view into the code, please {file}Ignored
DislikedHello! Are you still willing to code EA's for free for people? If so I have one that I would like coded if you are willing to do so The parameters are as follows: sell if price is within 20 pips of the previous day's low; buy if price is within 20 pips of the previous day's high Stop loss is 20 pips, take profit is 20 pips. Standard lot size is 0.01 (per my broker) but this is a value that I'd like the ability to be changed in the opening window when I load the EA on a chart. Other key info: EA only trades from 12am - 10am CST time Monday through...Ignored
#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 3 double b_bid[]; #property indicator_type1 DRAW_LINE #property indicator_color1 clrPurple #property indicator_width1 1 #property indicator_style1 STYLE_SOLID double b_ask[]; #property indicator_type2 DRAW_LINE #property indicator_color2 clrBlueViolet #property indicator_width2 1 #property indicator_style2 STYLE_SOLID double b_close[]; #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[]; double arr_close[]; int OnInit() { IndicatorSetInteger(INDICATOR_LEVELS,2); IndicatorSetDouble(INDICATOR_LEVELVALUE,0,30); IndicatorSetDouble(INDICATOR_LEVELVALUE,1,70); //set draw buffers SetIndexBuffer(0,b_bid); SetIndexEmptyValue(0,EMPTY_VALUE); SetIndexBuffer(1,b_ask); SetIndexEmptyValue(1,EMPTY_VALUE); SetIndexBuffer(2,b_close); SetIndexEmptyValue(2,EMPTY_VALUE); //size the dynamic arrays to tickcount ArrayResize(arr_bid,tick_count); ArrayResize(arr_ask,tick_count); ArrayResize(arr_close,tick_count); //start them off with 0's ArrayInitialize(arr_bid,0); ArrayInitialize(arr_ask,0); ArrayInitialize(arr_close,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; static double prev_close; //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); int delta_close = int((Close-prev_close)/_Point); //if the previous ask/bid is non existent if(prev_ask ==0) delta_ask = 0; if(prev_bid ==0) delta_bid = 0; if(prev_close ==0) delta_close =0; //set values of prev ask/bid for next call prev_ask = Ask; prev_bid = Bid; prev_close = Close; //update display display_update(delta_ask, delta_bid, delta_close); return(rates_total); } //+------------------------------------------------------------------+ //+------------------------------------------------------------------+ //| | //+------------------------------------------------------------------+ bool display_update(int d_ask, int d_bid, int d_close) { //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]; arr_close[i] = arr_close[i-1]; } //insert new 0 element arr_ask[0] = d_ask; arr_bid[0] = d_bid; arr_close[0] = d_close; //update buffer display for(int i=0; i<tick_count; i++){ b_ask[i] = arr_ask[i]; b_bid[i] = arr_bid[i]; b_close[i] = arr_close[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; b_close[tick_count-1+1] = EMPTY_VALUE; return(true); } //+------------------------------------------------------------------+ //| | //+------------------------------------------------------------------+ void OnDeinit(const int reason) { }
QuoteDislikedtried adding a line for Close Prices as well but it wont compile
QuoteDislikeddivide by _Points Im guessing is to get nicer numbers to display
QuoteDislikedadd a smoothing to the values being displayed. Can I use the existing iMA function