Forum

Calculation Pips Difference between Indicator and Close

I would like to calculate the „Pips“ difference between a indicator and the Close. The Parameters which I need for my calculation (in my opinion) 1. Breakout indicator (Support/ Resistance) 2. Close Course My Try in code it works: //Initizilation (BarClose) double BarClose= iClose (

Download History of ***

Hi There,is there a Website/ or anything else which offers for free full and correct data for ***?( Expert Advisor testing )i think i did not need to mention why. Warm Regards C.B

Loop Problem

The Code is working 99% properly my real Problem is the While Loop I use it that way: while (bar< Bars - 1 ) But the way I need is: while (highNumber>Close[I+ 1 ]) But when I use it that way the whole System crashes. Pls See my full code: //--- //Special Loop to avoid Array Out of Range int

Rebuild TrailingStop problem "Freezing while loop"

The Algorithm of the Trailingstop only Long Example: My Try: for ( int i= 0 ;i<limit;i++){ double currentShortMA= iMA ( NULL , 0 , 7 , 0 , MODE_EMA , PRICE_CLOSE ,i+ 1 ); double currentLongMA= iMA ( NULL , 0 , 13 , 0 , MODE_EMA , PRICE_CLOSE ,i+ 1 ); double previousShortMA= iMA ( NULL , 0 , 7

Expert Advisor eats space like crazy

Hi guys if I try to do a backtest on my custom Expert Advisor it starts eating diskspace like crazy within 5minutes easily 100GB, I have no idea why maybe the loops inside my code? #property copyright "Copyright 2021, MetaQuotes Software Corp." #property link " https://www.mql5.com " #property

how can I read this Line? no Buffer given

For example only Long PLS SEE ATTACHED PICTURE TO UNDERSTAND MY PROBLEM 1. Indicator shows BullishDivergence: Bullish Arrow (Green) -THIS IS THE ENDPOINT OF THE DIVERGENCE 2.Indicator has now a line which goes from Endpoint (BullishDivergence Arrow (Green)) TO A STARTPOINT (DIVERGENCE LINE GREEN)

Adding MagicNumber easy way? not like this

I'm working the course of Jim Hodges at the moment he is teaching how to use magicNumbers, my question is there a better way to do it or is this the normal way(generating Magicnumber)? //+------------------------------------------------------------------+ //|

MarketInfo(Symbol(),MODE_STOPLEVEL) to get the minimum Stoploss or Takeprofit level still error 130

From the topic u will get fast my problem I'm a beginner EA programmer, this is my first EA pls see my Code I really dont get why its still not working, I mean why do I get still "invalid error" //+------------------------------------------------------------------+ //|

last bid or last ask

When i want to have the last Course i can write Close[1] but how can i get the last bid Bid[1] is not available, would be very thankful for help (i'm a newbie at the coding)

first pullback from High first pullback from low on current bar point out with Dot

Its very difficult for me to explain it in English but I hope u guys can understand me: example: candle0 open=1euro close=1euro low=1euro high=1euro candle0 open=1euro close=2euro low=1euro high=2euro (price rises to 2 euro) candle0 open=1euro close=3euro low=1euro high=3euro (price rises to 3 euro)