[ARCHIVE] Any rookie question, so as not to clutter up the forum. Professionals, don't pass by. Nowhere without you - 3. - page 454

You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
:-) That's our way. I was beginning to realise that the mats were directed at inept helpers to solve your problem. :-)
That's what I thought too, good thing I was wrong.
Hello, I have a question relating to the strategy tester. I know not all of us use it and are sceptical about the tester. My question, in the tester's Model selection window, there are three lines to choose from: by opening prices, all ticks, control points
Yes, after the designation there is an explanation, which to me, unfortunately, is not fully understood. All the time I worked with the tester I was using open prices, but I decided to try All ticks. I got two drastically different results and wondered why?
Please explain!
And by the way, Merry Christmas!
It's just that your EA is not designed for this model, and maybe not for others either. There are a number of features
see the method editor in help how the iLowest and iLow functions work
It's just that your EA is not designed for this model, and maybe not for others either. There are a number of special features
Complicated, but I'll give it a try. At the opening prices, the take and stops should not be inside the zero bar.
If the take and stops are outside the zero bar, the other two models allow for a more accurate assessment of the EA's performance.
If non-minute timeframe is used, the results will be approximately equal
Complicated, but I'll give it a try. At the opening prices, the take and stops should not be inside the zero bar.
If the take and stops are outside the zero bar, the other two models allow for a more accurate assessment of the EA's performance.
If non-minute timeframe is used, the results will be approximately equal
Thank you very much! By the way, I have a question: what is meant by a zero bar? Is it a value equal to 0?
The zero bar is the current bar. The one that hasn't closed yet (the rightmost one on the chart).
Simply put, Victor meant - if you use Ask and Bid (current prices) for stops and takes or closing/opening prices, you can only test by ticks
If you set stops and takes at the open/close/high/low price of a non-zero bar and also open with the opening of a new bar, you can also test by the open prices
The zero bar is the current bar. The one that has not yet closed (the rightmost one on the chart).
Simply put, what Victor meant to say is - if you use Ask and Bid (current prices) for stops and takes or closing/opening prices, then you can only test by ticks
Hello all, can't attach to the candle hour
вот сделал так, но тут идет привязка к дате (дню) а мне нужно чтобы проверял только час, то есть переменная start равнялась 1 часу не важно какому дню
нашел int Hour() но не понял как им пользоваться int start = int Hour(1) пробовал писать не получается, помогите пожалуйста
Hello Gentlemen Traders! As I understand it correctly, newcomers to MQL4 are allowed to ask questions here.
Question: The Expert Advisor makes a Buy trade when the condition (CCI > 100) arisesand closes it at TakePrfit = (1 - 2p). However, if after the take profit the price keeps going up again, the condition (CCI> 100) arisesand the EA keeps opening until the StopLoss is triggered on a pullback or reversal.
How to make first buy also last until next cross
CCI<100.
P.S. The criterion of crossing CCI level <100 is not acceptable, because it is short term and I can't make it wait for the other signals.
extern double TP=1;
extern double SL = 10;
extern int VCCI34 = 100;
extern inttern NCCI34 = -100;
//+------------------------------------------------------------------+
//| expert start function |
//+------------------------------------------------------------------+
int start()
{
//----
double Lot=0.01;
int total = OrdersTotal();
int x1 = iCCI(Symbol(),0,34,PRICE_TYPICAL,0);
int x2 = iCCI(Symbol(),0,34,PRICE_TYPICAL,1);
if (x1 > VCCI34 && x2 < VCCI34 && total == 0)
{
OrderSend(Symbol(),OP_BUY,Lot,Ask,3,Ask-SL*Point,Ask+TP*Point, "myi order",0,0,CLR_NONE );
}
if (x1 < NCCI34 && x2 > NCCI34 && total == 0)
{
OrderSend(Symbol(),OP_SELL,Lot,Ask,3,Bid+SL*Point,Bid-TP*Point, "myi order",0,0,CLR_NONE);
}
//----
return(0);
}
//+------------------------------------------------------------------+