[ARCHIVE]Any rookie question, so as not to clutter up the forum. Professionals, don't pass it by. Can't go anywhere without you - 5. - page 41
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
A funny question has come up. For example, I decide to open a buy order on a condition:
1. the fast wave1 crossed the slow wave2 from bottom to top. (What is important is not the moment of crossing, but that fast wave1 is higher than slow wave2).
2. The candlestick touched the fast 1, so we open a buy order.
I thought about it, and so I understand that we need to create conditions that if the price of the candle is approximately equal to the price of fast wave1 apparently with some specified deviation, right?
Basically, since the candlestick is currently at the top once the fastmask1 crosses the slowmask1 from the bottom, then over we need to compare the candlestick's low with the price of the fastmask1?
i.e.
But in this case the point is not taken into account that the candlestick is unlikely to be exactly at the price of iMA(fast), because the price can quickly jump through it and go further or rebound. So, we need to specify some range.
How to do it correctly?
Read all and set/correct!
- SOFTWARE SOLUTIONS
Where do I start as a beginner?HOW do I find the price of the last fractal?
HOW do I get a signal when two MAs cross?
HOW do I check MA crossing with respect to the required divergence?
...
It will be redrawn visually.
Cycle through the last N bars and if there was a signal then signal=true
And then you can do whatever you want with any other non redrawing indicators.
PostMessageA (WindowHandle(Symbol(), Period()), 0x0111, 33324, 0);
Where to insert? At the beginning of Start?
Thank you.
Before you call the indicator (you can also put it at the beginning of start()).
P.S. Everyone is "running" from redrawing, and you are behind it - unconventionally... :))
Another question, I have 2 charts of one and the same currency open and it redraws in all windows at once. How to make it redraw only in 1 window? Is it a Hendle search?
Can you provide me with a code and example?
Read all about it and install/modify!
- SOFTWARE SOLUTIONS
Where do I start as a beginner?HOW do I find the price of the last fractal?
HOW do I get a signal when two MAs cross?
HOW do I check the MA crossing considering the required divergence?
...
I am not interested in checking for a MA crossing, I need to open an order when a candle touches the MA...
I'm not interested in checking for an MA crossing, I need to open an order when the MA is touched by a candle...
IMHO
Condition more or equal to Bid >= iMA (...) if touching from bottom to top and check on every tick.
OR check that Higth[0] of a bar is greater than or equal to >-iMA (...).
OR CLOSE[0] and the same.
if (fast0>=slow0 && Close[0]>=fast0) Print("Crossing UP");
Buy
I'm not interested in checking for MA crossings, I need to open an order when a candle touches the MA...
It goes something like this.
In short, that's the way it should be done:
ThenParse it, compare it and get what you're looking for.
Roman, that's what I was asking. In fact, I was thinking along the same lines, but wanted to make sure I was thinking correctly by checking with the pros. Thank you.
here is an excerpt from the indicator itself
Hi all ... guys, tell me what's wrong ... my two-line code won't hum .(
here's an excerpt from the indicator itself
The indicator call is missing one variable - the buffer!!!
There is one variable missing from the indicator call - the buffer!!!
Three buffers are called in the indicator...thanks...I'll try it both ways...maybe it will work by gut feeling.