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

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 point is to average open-close over n candles
it just draws a downward pointing line
what is wrong ?
1) correct the inner loop
k not from 1 but from i
2) in the very first steps, go beyond the story
I would also like to see an example, how to do it correctly.
What could be more complicated than that?
The 0-th element of the array will have the price of the last tick, the 1st element will have the price 1 tick ago, the 2nd element will have the price 2 ticks ago etc.
Or maybe I misunderstood something and meant something else?
The point is to average open-close over n candles
it just draws a downward pointing line
what is wrong ?
What could be more complicated than that?
The 0-th element of the array will have the price of the last tick, the 1st element will have the price 1 tick ago, the 2nd element will have the price 2 ticks ago etc.
Or did I misunderstand something and meant something else?
For example, for you "bubble sorting" is an element of the alphabet, while I've only heard of it, and not having an example in front of me, would write it all over again :))
Anyone have a ready-made skip next bar function? :)
if(iTime(Symbol(),period_bar,number_of_ bars_to_skip)>OrderOpenTime()
Skip_bar_to_skip
0 - skip current one, 1 - current one and next one etc.
I recently read on this forum that if we open 2 differently directed orders with the same SL at the same time, then after one of them closes, we can try to end up with a profit. Has anybody checked this idea or not? Maybe there is a similar EA?
Expert Grid v.2.
"Copyright©2008 EAfactory.com and Expert-4x.com - "Revision: 264".
Opens positions both ways and closes both if the difference is on the plus side.
Enlighten me, how is it possible to be on the plus side if the orders are equal in terms of lot size? The total position will always be minus the double spread.
Another thing is if the orders have different lots: then the stop loss of the smaller one is not the same, but the stop loss of the bigger one is equal to the take profit. Then their simultaneous closing leads, if you know how to calculate, to a profit.
Hi all, how do I save a Statement.htm report using MQL? Does anyone know?
I can't figure out how to make the lines display, either by this script or by pushing away from this script, or maybe I'm wrong:
that is, when this price reaches this level, the orders are closed, and I want to see this price on the chart as a line or a small record in a square and with a dash.
guide me in the right direction