Forum

Simple question on indicator loop

Hi on all the indicators i m creating i m using a while loop (below). Lately i came across on this debate on this thread Contradictory information on IndicatorCounted() - MQL4 forum (thanks to WHRoeder for pointing that to me) so questions arise. My code looks like this extern int history= 300 ;

Question on iCustom

Hi I ve got three indicator. indA, indB and indC. The code following is what i m using in all of the three indicators. The key point is that they look back up to a N amounts of bars specified in the extern history variable. extern int history= 300 ; ... .. start() { ... counted_bars =

Indicators question

Hi on some indicators like when you backtest them the results are not the same on the chart as when you compare the same indicator on a live chart the same time period. Meaning that crosses are different etc (depending on the indicator style). This means that the indicator is not working correctly

DEMA is not working with backtest properly

Hi I m working with DEMA indi but when i m using it on a backtest it does not display the same. Anyone knows why? int start() { int limit= Bars - 1 -IndicatorCounted(); //---- static double lastEMA, lastEMA_of_EMA; double weight= 2.0 /( 1.0 +PERIOD); //set default var the first time if

Moving Regression indy not working in backtest, question.

Hi i ve worked on some regression code i ve found and i altered it so to create a different version of it. Although it seems to work as part of an indincator, when i m backtesting it the results are totally different! I really cant find where the problem is. Any ideas/help? Here is the code: reg240

How to check for closed trades

ok for some reason i cant figure out how to check the closed trades price. I mean suppose you trade all day with dozens of closed trades and right now you ve got 2 open trades. And you decide to close the 1 of the 2. How will you check the last one order when there are dozens of other trades in the

Post live trading orders/actions to web/MySql

Hi all. I ve searched a lot but i havent found anything in this forum or web that could help enough to answer my question. I try to post/export live trading orders (instant and pending) from MT4 account to my web hosting/MySQL (or through any other solution available). From what i ve understood the

Does 3DOscillator repaints?

Hi Does 3DOscillator CI repaints? According to some backtests ive done it seems it does. I m quite suprised since in the code i can only see using iRSI&iCCI. Is there a way to fix this? https://www.mql5.com/en/code

EA Framework

Hi anyone knows if there is any sort of sample EA framework with build in features like MM, SL-Trailing SL, TP, Limits Orders etc? I just dont want to reinvent the wheel on the basic parts of an EA Thanks

Data Window Question

Hi Is it possible to display on data window any variable other then the buffers? If so how? Thanks