Hi, can anyone share with me a working source code to build CONSTANT RANGE BAR charts ? Pseudocode is also accepted, i have no clue how to do it, and I cant find any tutorial on the internet which would explain how CRB charts are constructed. I dont
Hi , can somebody please tell me the expanded version of the function , that is how it is calculated: MarketInfo(Symbol(),MODE_MARGINREQUIRED) So that i can rebuild it myself and check it
I have an indicator which looks at 15 different pairs at the same time to find a trend. It works perfectly on H1 timeframe, however on any other timeframe it is blank.I suppose it is because there is no historical data on that pair downloaded. But
I just finished making an EA run it on demo account and suddently when it initializes it shows error 4024 for no reason. I`ve checked the code, it has no bugs or compile errors, and it didnt do anything yet.Either the MT4 is bugged here or am i
Does the Bid variable work correctly in strategy tester , if so then what value it returns. And does it return the same value as Close[0] in Strategy Tester, or not
Yes i know that you can make any variations of the trailstop put into a script or EA, but i`m curious how the built -in trailstop work. So for example: if i enter long at ask 1.2345 , and the stoploss is 20 pips (1.2325), but the trailstop is 10 pips
Please help me calculate rollover, i`m so confused about it. So here is the formula that my broker has on its site Rollover= Swap rate / 10000 * [POSITION SIZE] * [NR OF DAYS] And for Yen Rollover= Swap rate / 100 * [POSITION SIZE] * [NR OF DAYS] I
I get error code 5004 when reading a file, whereas it worked with all previous builds.I think it is because of the introduction of FILE_TXT and similar parameters, since i`m not familiar with them yet, so please help me fix my code.Here is it: int
Hi i`m curious how the MT4 handles the shifting of the arrays after each tick.And here i`m mostly interested in the Volume[] Array. My question is that what algoritm shifts back the entire array by 1 element after each new data (in our case tick
How to check the alltime low and alltime high of the price, with iLowest() and iLow(), they are new functions and the documentation doesnt explain it very clearly, so please help
How to jump to a past date on the chart with an MQL4 code. I want this to be done by my indicator, with MQL4 code, for example if i write into my indicator to jump to 2010.1.1, then the indicator should move the chart to that date. Is it possible, if
What is close[0], since it represents the current tick,it must be the current quoted price, so: Is it the current Bid or the Ask price, and how does the MT4 choose which one? Or is it the average of them? For example currently on my broker
I have tick historical data, each ~15 GB, which is alot, and i wanted to import them into MT4,but for some reason it doesnt want to import it. The format of the tick database is: Timestamp,Bid price,Ask price,Bid volume,Ask volume 20120112
Hi i`m wondering if i leave the takeprofit to 0 in the OrderSend() will be equivalent to a very high number where the price can never get? So are they equivalent: OrderSend ( Symbol (), OP_BUY , 0.01 , NormalizeDouble ( Ask , Digits ),MAX_SLIPPAGE, 0
I`ve just wanted to put a time filter in my EA to only trade between 7 Am and 16 PM (london- ny session) and for some reason, it took trades even after 20 PM yesterday, so it might be a glitch: if ( Hour ()>= 7 && Hour() <= 16
Hi, i need the full function of iMA() especially the exponential moving average.I would like to study how a moving average is calculated so please give me the full iMA() function, thanks :)
Hi, i please need a code/ formula which resizes the lot size based on Account Risk % calculated by including the STOPLOSS, and taking in consideration that my account is in EUR. What i have is this: extern double RISK= 1 ; //1% RISK