MQL4 and MetaTrader 4 - page 131

  Adding shift to indicator  (17   1 2)
Dears, Good day, Kindly need to add shift from +10 to -10 ( back bars ) to the attachment indicator. Thanks in advance
Do you guys have some other alternative for displaying a number in the chart window in a desired format other than NormalizeDouble function? I am asking because I have been using this function and, while this works quite ok in most of the cases, sometimes it seems to fail. Scenario : I am making
hello everyone. I am looking to save previous 10 prices changes in an array, and use these prices to see if the current price is above or lower then last price. I want to do this becuase i want to manage open orders. I know i have to create an array. but i dont know the
Hello, i found this mtf indicator not repainting the present and last bars as long as the MT4 is connected. once MT4/chart reset, it recalculate/repaint the values. can anybody help to make it NOT repaint the past at all? for example: i use typical parameter values: time frame=H4 (over m15 chart)
Hey :) I have an EA on an MT4 that needs to send a simple text message to another MT4 with an EA. See at the end of my text what I have already tried. It shouldn't be a method where the writing process has to be "opened" and "closed" first, because this leads to errors. I need a dll that will
Can anyone help me convert some pine script to an indicator I can use in MT4? Heikin Ashi RSI Oscillator — Indicator by JayRogers — TradingView // This source code is free to use, copy, and alter in any way you choose. // ...but credit is always nice :) //@version=4 //@author=JayRogers study(
Hi everyone. Can someone help me with %B indicator for MT4. Thanks and kindest regards
[Deleted]
Hi everyone, I would like an indicator buffer to be equal to it's previous value if a condition is not met. For example, I have PipsLenght = 0.001 (10pips) int limit; limit=rates_total-prev_calculated; if (prev_calculated> 0 ) limit++; for ( int i=limit- 1 ; i>= 0 ; i--) {
  Strategy Tester  (2)
Hi! One question: I am testing this EA with strategy tester , I test using open prices, and on 1Hr I get positive results. Then I test again on 4Hr and I get negative results. And I change again to 1Hr and I get negative results. I am using always same dates for testing, same currency, all I am
Hello Guys, I'm having difficulty trying to sum up and collect Total Bull Candle Body size and Total Bear Candle Body size for each day(resets everyday) from M5 to a single shift in H1 using a double loop for a few hours, Still I coulnd't get it to work correctly. So, every shift on H1, I'm trying
im trying to open more than one renko offline chart but the pc keeps crashing. with one offline renko chart on gb/us everything runs just fine, no problems i tried putting the same renko indicator on a dj30 chart, as soon as i opened the offline chart everything froze up, i could not do anything and
hello, i'm still fairly new to trading, but i was wondering why was the price lagging so bad from what i see on tradingview to what i see on mt4? anything i can do to fix it
  VPS FOR MT4  (1)
Hello friends am having challenges of renting vps for mt4 . when click on vps i was told to lunch mt5 platform and am not using mt5 platform can someone help please
Hi all! I have an EA that I sourced some additional code after the developer delivered it to me, and I've have ended up with two different ways to create strings: string comment= StringConcatenate ( "Today's Profit Target: $" , DoubleToStr( GlobalVariableGet (gDailyProfitTarget), 2 )); string
From my use of iCustom() in an Expert Advisor, and from several tests, I've made the conclusion that, in general, one cannot send or close orders on the same bar on which the signal is triggered. The reason for this issue is because: 1) the Indicator makes all its calculation 2) then it fills the
  Else If  (2)
if ( (LongFilter== true &&TimeFrame==Weekly&&( iHigh ( 0 , PERIOD_W1 , 0 )- iLow ( 0 , PERIOD_W1 , 0 ))>Range*point&&Bid<WPL&& YL== 1 && iLow ( 0 , PERIOD_W1 , 0 )< iLow ( 0 , PERIOD_W1 , 1 ))|| (LongFilter== true &&TimeFrame==Daily&&( iHigh ( 0 , PERIOD_D1 , 0 )- iLow ( 0 , PERIOD_D1 , 0
Morning, So I'm plotting a horizontal line on my chart, except I'm not. My code is the following: double sma = iMA ( NULL , 0 ,10, 0 , MODE_SMA , PRICE_OPEN , 0 ); ObjectCreate ( 0 , "Horiz_Line" , OBJ_HLINE , 0 , 0 ,sma); ObjectSetInteger ( 0 , "Horiz_Line" , OBJPROP_WIDTH , 3 );
Good day, I'm still learning MT4 and I have this quick question. Once I dragged the EA to the chart and clicked the auto trading button on the tools bar, will the EA trade on all symbols or it only will trade on the symbol of the current chart? if so how to trade on all other symbols? Regards
I've been trying to make a trailing stop EA for a while, and this is the first time I've nail it, sort of. when I do the back test I get the error 4108 (Invalid Ticket), when the EA tries to modify an order. I think it shouldn't happen since I use the OrderTicket() function to get it, has anyone any
Hi Gentlemen and Ladies, Is there an existing indicator that shows previous day high and low that plots with a text as per photo? I have the indicator but i dont have that text at the end of each line, is it possible to edit the indicator and have that text added at the end of the line? anyone with
Does anyone know how I can edit the notification messages that are sent from mt4 to phone. The notifications are too long for me and I want to shorten them
[Deleted]
I'm currently looking for a good Mt4 broker for scalping since my previous broker's trading conditions were not getting any better. A broker with tight spreads and a commission cost of $8 would be fine. Any suggestions
Hi all I want to run my EA on all pairs but to open on one pair only. So for an example, EA is currently running on EUR/USD,GBP/USD,XAU/USD etc. The EA decides to open a trade/s on EUR/USD, my EA will open trade/s on other pairs. Please help on how I can prevent this from happening. #property strict
  Close Old Orders  (3)
Hi All - I need help with the following scenario: Example I am creating an EA based on the EMA cross over/order. So when an EMA cross under I would do a sell and when it cross over I would do a buy. I am trying to close any previous position (buy/sell) when the EMA goes opposite to the order. If
#property strict #property indicator_separate_window #property indicator_buffers 17 //#property indicator_color1 DarkGreen // Color of the 1st line //#property indicator_color2 Navy // Color of the 2nd line //#property indicator_color3 Yellow // Color of the 1st line //#property
Full code in attachments. i can't understand why i can't properly move all active orders SL's to BreakevenPrice() Function simply not looping thru all SL's and return "Error 1" which means i try change SL with same SL, but BreakevenBuy() already moved father (ELI5 On attached image : I want to move
hello i have developed an EA that use to work well. but since almost a week ago when it wants to close orders, it gives me invalid Ticket and invalid Price error. the strange part is that right after the OrderClose a put an Alert to see if the Ticket or the Price is Wrong. but it is right. Alert
I take the original MQ RSI and add various levels, but the levels are above the RSI and it's ugly. How do I get them behind the RSI ? //+------------------------------------------------------------------+ //| RSI.mq4 | //|
Hello, I was wondering if is there anyway to acquire the date of the events from this function: void PrintCalendar() { MqlCalendarEvent events[]; //--- get EU currency events int count = CalendarEventByCurrency ( "EUR" ,events); Print ( "count = " , count); //--- 10 events are
Hello, Did anyone managed to connect MetaTrader4 to ***? What bridge did you use? Also I would like to use MetaTrader4 EA but*** is logging off overnight automatically. Is there any way to prevent this? Thank you in advance