[ARCHIVE] Any rookie question, so as not to clutter up the forum. Professionals, don't pass by. Nowhere without you - 3. - page 331
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
Guys, a hint... Here is the code section where market entry conditions are calculated. Why with given values of timeframes obtained during optimization...
Well, I'm controlling a new bar this way. I have not noticed any problems similar to yours. May they be corrected?
int start()PS. Thanks for the information on the optimisation!
drknn:
Если OrderClosePrice()==OrderStopLoss() - то стопудово ордер закрыт по лосс-приказу.
Well, I control the new bar this way. I haven't noticed any problems like yours. Can they correct it?
int start()PS. Thanks for the information on optimization!
Yes he has another problem: on every new H4 bar the entry conditions from the days are repeated.
He has a different problem: on each new H4 bar the entry conditions from the days are repeated.
Well then I don't get it :-(
I can't find anything useful in search engine.
I can't find anything useful in search or maybe somebody will suggest something.
Thank you
It makes sense to make the signal_period variable global and assign a value to it in init()
And change the control of the new bar
Victor, thank you, your code helped me, at least when it comes to entering the market ONLY by the open of a daily candle and no matter what TF the test is on ... Entry as it is in the variables
i.e. next.
Although on market exiting by stop or take, there are still some differences, but at the same time I do not exclude that this is a feature of the tester, i.e., as you just wrote, the lower is the used timeframe, the more clearly stop and take levels are fulfilled. The charts in the tester are the same regardless of the timeframe being charged, but differences in stop and take levels are present... Here are the screens - the first test on H4, the second one - on the daily timeframe, the third one - on H1... It looks like it should be... Differences by time of execution are marked in red only for the first ones I met... Looks like it should be so...
Н4:
Execution of the stop on the days:
On H1:
I.e., the smaller the TF used, the sicker the stop execution is in the tester, so it turns out...if I'm not mistaken...
Comment, guys, who knows exactly...
Victor, thank you from the bottom of my heart, for the answer to my question on this topic.
Victor, thank you, your code helped me, at least when it comes to market entry ONLY on the open of a daily candle and no matter what TF is tested ... Entry as it is in the variables
I.e. further.
Although there are still some differences in exiting the market by stop or take, but at the same time, I do not exclude that this is a feature of the tester, i.e., as you just wrote, the lower the used timeframe is, the more clearly stop and take levels are fulfilled. The charts in the tester are the same regardless of the timeframe being charged, but differences in stop and take levels are present... Here are the screens - the first test on H4, the second one - on the daily timeframe, the third one - on H1... It looks like it should be... Differences by time of execution are marked in red only for the first ones I met... Looks like it should be so...
Н4:
Execution of the stop on the days:
On H1:
I.e., the smaller the TF used, the sicker the exact execution of stops in the tester, so it turns out...if I'm not mistaken...
Comment, guys, who knows exactly...
Victor, thank you from the bottom of my heart, for your reply to my question on this topic.
There is not much to comment on. You have managed to draw the right conclusion on your own
I have nothing much to comment on. You've managed to draw the right conclusion yourself
I see. I'm just saying that the output is more accurate using stops(takeout...:-)), with a smaller TF used...
Thank you, Victor.
With similar question (on other owl - on my variant of Avalanche... :-)) I have addressed earlier, in this branch, to find page - now there is no desire, to me PapaYozh recommended to look at time of transactions and compare, at those or other values of these variables..., that also is RIGHT. You gave a specific recommendation, what and which variant of the code to try - I figured it out, thank you.
snail09:
...
PS. Thank you for the information on optimisation!
Make use of it, remembering... (just kidding) that "everyone" is "so-and-so" (A. Elder)... SOUL... :-)))