[WARNING CLOSED!] Any newbie question, so as not to clutter up the forum. Professionals, don't go by. Can't go anywhere without you. - page 239

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
Dear forum users!
I wrote an indicator and the problem is that I can't draw moving average (Buf_2), here is the code:
Help me to understand what's the problem?And why would it be drawn if you don't enter the loop after //average and i<0 otherwise you won't come out of the previous loop
Good afternoon)
Sorry for the intrusion, I have already asked this question, but do not get the answer( Anyway, during the week, nothing has moved on
Can you tell me how to write a function placing a pending order?
What should I put instead of Bid or Ask? I need a pending order at High of one of the candlesticks. I get this value and how should I enter it into the function? This price may not be in the trade flow. I wonder if you could put out the code for putting a pending order and, more importantly, where to get its setting price from!
For example (example of setting a buy stop) :
(it is not at all necessary for the set price to be in the quote stream in order to set a pending order.
you may dance with the current price or take any price, as long as you adhere to the stop level from CURRENT PRICE TO THE STOP PRICE)
( 'EURUSD - Trends, Forecasts & Consequences' )
Instead of
double priceBUY=..... ....
enter your formula
I am writing an indicator, the essence of which is as follows: if a candle is bullish, the indicator line is up, bearish down. well, volume is added to all this (so that each candle has a volume weight). And the second line is a moving average of the current line
problems: the main line draws peaks when a doji is formed, and the moving average is not drawn?I am writing an indicator, the essence of which is as follows: if a candle is bullish, the indicator line is up, bearish down. well, volume is added to all this (so that each candle has a volume weight). And the second line is the moving average of the current line
problems: the main line draws peaks during doji formation and the moving average is not drawn?The block of ifs can be replaced with a more efficient
[i + 1] - since the index arrays are numbered from right to left. Now the candlesticks with zero bodies will be processed correctly.
With the middle line buf_2 from the code it is not clearat all what the author wanted.
The if-value block can be replaced with a more efficient one
[i + 1] - because index arrays are numbered from right to left. Now the candlesticks with zero body will be processed correctly.
With the middle line buf_2 from the code it is not clearat all what the author wanted.
wanted it to be a moving average with a period of 14, based on the value of the indicator
wanted it to be a moving average with a period of 14, plotted against the value of the indicator
Then it goes like this:
Just look at this thread.
Or read task 27 in Kovalev's textbook. There are code examples and a detailed explanation of how it works.