Any rookie question, so as not to clutter up the forum. Professionals, don't pass by. Nowhere without you - 6. - page 971
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
Afternoon. I wrote a simple indicator for RSI exit from overbought/oversold zones.
right, draws arrows where it's supposed to. But only in real time.
Question: how to make it draw on history for n number of bars?
#property indicator_chart_windowYou can't tell anything without the code.
Afternoon. I wrote a simple indicator for RSI exit from overbought/oversold zones.
right, draws arrows where it's supposed to. But only in real time.
Question: how to make it draw on history for n number of bars?
Insert the code according to the rules, get acquainted earlier! Click on the SRC to the left of the video button, and delete the "sheet"!
This is only for the first chart, I did not do further interferes with the pop-up window.
The script processes all open charts. The current one is processed last. As scripts terminate their work when changing timeframe, the window warning of the script terminating will be popped only once. On all charts, the timeframe will be changed for the specified one
The script processes all open charts. The current one is processed last. As scripts terminate their work when changing timeframe, the window warning of the script terminating will be popped only once. On all charts the timeframe will be changed to the specified one
Ai)))well done!!!!Thank you!!!
Good afternoon,
I declare an array
double gdClose_array[];
ArrayResize(gdClose_array, 1);
Copying the data into the array with the last closed bar, from the current chart
iX=CopyClose(Symbol(),PERIOD_CURRENT,1,1,gdClose_array) ;
Output value of the array
double dX=NormalizeDouble(gdClose_array[0],Digits);
Print ("NormalizeDouble(dX,Digits) ", dX);
I get a number but it is obviously incorrect:
NormalizeDouble(dX,Digits) 1.0644.
Although there is no such value in the chart (according to the visualization)
And this value does not change in the course of testing.
I added
ArraySetAsSeries(gdClose_array,true);
situation has not changed.
Where is the error?
Afternoon,
...Copying data into an array with closing by the last closed bar, from the current chart
iX=CopyClose(Symbol(),PERIOD_CURRENT,1,1,gdClose_array) ;
Here you have written only the name of the array without specifying the index of the array element. Since you have previously ArrayResize(gdClose_array, 1); you have set the number of array elements as 1, its index is 0. That's why it must be done this way:
And a couple more questions/tips.
1) If you only need to store 1 value, you can use a variable instead of an array. Then instead of:
make
double gdClose_array;
and then do the rest like your original code.
2) If you need an array, but know right away that it will only have 1 element, then declare a static array with 1 element instead of declaring a dynamic one and then resizing it. There's no need in extra operations.
Instead of
write
then
and then like your original code.
Hi, Question to programmers.
I have an Expert Advisor that is triggered when an order is opened and places a Stop Loss and Take Profit on it according to a specified amount of points.
My question.
Can we change the code so that instead of the Stop Loss, the EA exposes a pending reverse stop order of the same size.
What should I change in the code for that?
Thank you.
Good afternoon !
Again I can't get out of what seems to be an elementary thing - why everything seems to be according to the help, but the result prints 0.0 ?
Why isn't the fractal value being extracted?
Good afternoon !
Again I can't get out of what seems to be an elementary thing - why everything seems to be according to the help, but the result prints 0.0 ?
Why isn't the fractal value being extracted?