Forum

How to get the 2nd value of the ZigZag indicator for the stop loss in a buy trade?

Sir / Mam, I don't want to get the 1st and 3rd Values in the ZigZag indicator Because I want to get the 2nd Value for the stop loss in a buy trade. How to get the 2nd Value of the ZigZag indicator for the stop loss in a buy trade? Please solve this code 👇 // MQL5 Code double Zig_Zag( int

The indicator buffer is showing an unusually large number like '5161657722...' in the Data Window.. Please help me solve it...

👆 Please see the screenshot (Yellow Colour Marked). The indicator buffer is displaying an unusually large number like '5161657722...' in the Data Window, which seems to be a bug. The chart is correctly plotting Downward & Upward arrows, but the corresponding buffer value is incorrect. Please help

I have an Expert Advisor code that was incorrectly converted to an indicator code

I converted Expert Advisor Code to Indicator code in MQL5 Expert Advisor Code :- void OnTick () { static bool isNewBar = false ; int currBars = iBars ( Symbol (), _Period ); static int prevBars = currBars; if (prevBars == currBars) { isNewBar = false ; } else if

MT5 Strategy Tester doesn't work in News Calendar

struct economicNews { MqlCalendarEvent event ; MqlCalendarValue value ; MqlCalendarCountry country; }; //+------------------------------------------------------------------+ //| |

Trade History to Convert MQ4 to MQL5

Sir , I want to Convert MQL4 to MQL5 Source code 👇 MQL4 :- for ( int pos = OrdersHistoryTotal() - 1 ; pos >= 0 ; pos--) { if ( OrderSelect (pos, SELECT_BY_POS, MODE_HISTORY)) { if (OrderProfit() != 0.0 ) { if (OrderClosePrice() !=

"Array out of Range" in Volume Indicator

Sir, I created this Volume Indicator but I am getting error " Array out of Range ". I have some wronged this Source code. Please check this 👇 #property indicator_separate_window #property indicator_minimum 0 #property indicator_buffers 3 #property indicator_color1 clrBlack #property

I want to Next 30 Candle to Buy or Sell Trades in 1 Minute Chart

Sir, I want to Next 30 Candle to Buy or Sell Trades in 1 Minute Chart. Please see this Photo :- https://charts.mql5.com/38/555/eurusd-m1-octa-markets-incorporated.png How to do code it ? I tried it but it doesn't work to Next 30 Candle to Buy or Sell. datetime m_prev_bars = 0 ; bool New_bar() {

BreakEven Order Modify Error 1

Sir, I learned this MQL5 Programming but I want to practice this MQL4 Programming because What is the result difference b/w MT4 & MT5 in my Real account . I am getting error "Order Modify Error 1" too many times.... Please use this OctaFX Broker MT4 Terminal ....because you are using another broker

I am getting too many error "Faied Modify [Invalid Stop] " in BreakEven Source code

Sir, I have 20 StopLevel & 19 Spread in OctaFX Broker. I am getting too many error " Invalid Stop ".....(Please see this Attached Photo What am I wrong this Source code ? //+------------------------------------------------------------------+ //| Breakeven Gain & Breakeven

I was backtest 10,000 steps and it took 50 minuts and it cost $9.45 in MQL5 Cloud !!!

Sir, I backtested into 10,000 steps optimisation and it took 50 minutes and cost $9.45 in MQL5 Cloud !!! Please see attached this Photo Anyone have good solution low cost in MQL5 Cloud