[Archive!] Any rookie question, so as not to clutter up the forum. Professionals, don't pass it by. Couldn't go anywhere without you - 2. - page 71

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
The MagicNumber does not change in this case, unless it is provided by the EA code.
Thank you all!
Solution:
For buy (sell - by analogy):
1. MA fracture - get MA values on bars 3, 2 and 1 - compare. If MA values on bars 3>2 and 2<1, it is a break.
2. then - fractal - penetration - a signal to make a deal
As far as the enumeration of MA is concerned - place it in external (optimizable) variables:
Period_MA (you can set from 2 to 240 with step 2), MODE - (method of calculation of MA - range of changes from 0 to 3 step 1), PRICE_TYPE - (price constant - range of changes from 0 to 6 step 1), I heard that when working within the day MA count on the average values (closing price is not important), when working on the day candles MA count on the closing prices of the days.
PERIOD - you change it manually with each subsequent optimization - 1,5,15,30,60,240...
Press F1 on the iMA - carefully read everything there again.
And of course optimize TP and Stop Loss as usual.
P.S. Don't forget to write an information on the results of the tests... :-)))When a position is partially closed, you can change the magik. I'm sure you can easily write this.
You probably have knowledge that is not available to the mql-community or you just don't understand the question or you are naively deluded that the OrderClose function changes the magik.
I understand that I don't have an initial flag[i+1] setting. If so, where and how do I do it ?
If I set 1, then when I start the indicator, it (the indicator) will wait for the change.
The correct way to do it is this:
with the condition that uninitialised flag =0 (or take EMPTY_VALUE....)the right thing to do is this:
With the condition that uninitialised flag =0 (or take EMPTY_VALUE....)Thank you all. I did what I wanted to do.
Test results on TF=1 min did not yield profitable options, even if you optimise the EA once a day.
The lower the TF, the higher the noise...
The lower the TF, the higher the noise...
Yes, but if the strategy is correct, it should, it seems to me, work on any TF, just with different parameters. The result of the tests on TF=5 min did not give any profitable options either.
The strategy is correct there. I am drunk now. I am having a rest.
you still have an error in your code.
Remember: Stops and Takeovers in pending orders are not based on the current price but on the opening price of the order.
Special thanks and respect to you :)))))
Corrected errors (hopefully all of them now :)) ) + added limiters. It will be very useful for those who really need to assign Magic number to placed orders.
Enjoy it!
there's a true strangia there. I'm high as a kite right now. I'm resting.