[ARCHIVE!] Any rookie question, so as not to clutter up the forum. Professionals, don't pass by. Can't go anywhere without you - 4. - page 127
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
Please help. Can the conditions below be met???
We need to make so that if the current price crosses the MA, the algorithm in { } is triggered:
Does it make no difference which way it crosses? Genius tactic I guess...
Expert Advisors with MA crossing and other indicators in kodobase are many, no need to re-do the wheel ;)
You need to whisk the previous price in a static variable, and compare each tick so that the waving is between them (the current previous price)
Like this?
Error 130 is coming up. I have read the help, I don't understand what the error is...
130 - Stops too close or incorrectly calculated or non-normalised prices in the stops (or in the opening price of the pending order). The attempt can only be repeated if the error has occurred due to price obsolescence. It is necessary to refresh the data after a delay of 5 seconds or more using the RefreshRates function and try again. If the error persists, you should stop all trading attempts and change the program logic.
See here.
Error 130. Incorrect stops
Probably, too close to the market which is not allowed by your brokerage company but most probably you should set an order without stops and profits and then modify the order during the next cycle and add profit and stop, as most brokerage companies now require.
Is it possible to output the Commments from the EA to another chart with a different TF? Thank you in advance!